Created
May 30, 2009 00:46
-
-
Save tily/120302 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 AutoPagerize 'show everything by me' on Tumblr | |
// @namespace http://d.hatena.ne.jp/tily/ | |
// @include http://www.tumblr.com/show/everything/by/me | |
// @include http://www.tumblr.com/show/everything/by/me/* | |
// ==/UserScript== | |
var rewriteNextLink = function(doc) { | |
var a = Minibuffer.$X('id("pagination")/a[last()]', doc)[0] | |
a.href = a.href.replace( | |
/dashboard\/(\d+)\/\d+/, | |
"show/everything/by/me/$1" | |
) | |
} | |
//rewriteNextLink(document) | |
window.AutoPagerize.addDocumentFilter(rewriteNextLink) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment