Created
June 1, 2010 21:17
-
-
Save satyr/421511 to your computer and use it in GitHub Desktop.
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 pythonchallenge linkedlist | |
// @namespace http://twitter.com/m_satyr | |
// @include http://www.pythonchallenge.com/pc/def/linkedlist.php?nothing=* | |
// ==/UserScript== | |
addEventListener('DOMContentLoaded', function(){ | |
var [,next] = /next nothing is (\d+)/(document.body.textContent); | |
if(next) location.href = location.href.replace(/\d+/, next); | |
}, false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment