Skip to content

Instantly share code, notes, and snippets.

@tily
Created May 30, 2009 00:46
Show Gist options
  • Save tily/120302 to your computer and use it in GitHub Desktop.
Save tily/120302 to your computer and use it in GitHub Desktop.
// ==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