Created
July 13, 2009 12:49
-
-
Save swdyh/146093 to your computer and use it in GitHub Desktop.
This file contains 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 AutoPagerizeGoogleImageFilter | |
// @namespace http://relucks.org/ | |
// @include http://images.google.* | |
// ==/UserScript== | |
// http://userscripts.org/topics/22000 | |
// { | |
// url: 'http://images\\.google\\.(\\w|\\.)+/images\\?', | |
// nextLink: 'id("navbar")//td[last()]/a', | |
// pageElement: 'id("navbar")/preceding-sibling::*', | |
// exampleUrl: '' | |
// } | |
(function() { | |
var reqfl = function(opt) { | |
if (opt.url.indexOf('gbv=2') == -1) { | |
opt.url += '&gbv=1' | |
} | |
else { | |
opt.url = opt.url.replace('gbv=2', 'gbv=1') | |
} | |
} | |
setTimeout(function() { | |
if (window.AutoPagerize && window.AutoPagerize.addRequestFilter) { | |
window.AutoPagerize.addRequestFilter(reqfl) | |
} | |
}, 0) | |
})() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment