Skip to content

Instantly share code, notes, and snippets.

@imannms000
Last active July 25, 2025 16:30
Show Gist options
  • Save imannms000/2472848da8b058035cd503ea2aa584e3 to your computer and use it in GitHub Desktop.
Save imannms000/2472848da8b058035cd503ea2aa584e3 to your computer and use it in GitHub Desktop.
Convert pagination article into complete article
const pageAll = function(){
let url = new URL(location);
if(!url.searchParams.has('page'))
{
url.searchParams.set('page', 'all');
location.href = url.href;
}
else
{
document.title = '✅ ' + document.title;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment