Last active
July 12, 2023 02:00
-
-
Save tnhung2011/2da633d5d224716f9e1a1239fd10ad2e to your computer and use it in GitHub Desktop.
Grab unused files on a page of Special:UnusedFiles
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
Array.prototype.forEach.call([].slice.call(document.querySelector("#gallery-0").childNodes, 1), function(elem) { | |
console.log(decodeURI(/(File:.+?)\?/gm.exec(elem.childNodes[0].href)[1])); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment