Skip to content

Instantly share code, notes, and snippets.

@swdyh
Created July 13, 2009 12:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save swdyh/146093 to your computer and use it in GitHub Desktop.
Save swdyh/146093 to your computer and use it in GitHub Desktop.
// ==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