Last active
July 25, 2025 16:30
-
-
Save imannms000/2472848da8b058035cd503ea2aa584e3 to your computer and use it in GitHub Desktop.
Convert pagination article into complete article
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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