Last active
December 17, 2015 13:09
-
-
Save sillero/5614778 to your computer and use it in GitHub Desktop.
Wired.com annoying paging/gallery workaround
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
// ==UserScript== | |
// @name Wired.com annoying paging/gallery workaround | |
// @namespace http://www.wired.com/ | |
// @version 0.1 | |
// @description Auto view all pages/pictures | |
// @match http://www.wired.com/* | |
// @copyright 2012+, You | |
// ==/UserScript== | |
(function(){ | |
var $links = document.getElementsByTagName('a'); | |
for (var k=0;k<$links.length;k++) { if (/http:\/\/www.wired\.com\/[\w\W]+\/\d{4}\/\d{2}\/[\w\W]+\//.test($links[k].href)) $links[k].href += 'all/?viewall=true' } | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment