Skip to content

Instantly share code, notes, and snippets.

@samleb
Created January 17, 2012 21:40
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samleb/1629095 to your computer and use it in GitHub Desktop.
Save samleb/1629095 to your computer and use it in GitHub Desktop.
[userscript] LinkBucks: Redirect to target URL skipping countdown
// ==UserScript==
// @name LinkBucks.com - Auto redirect
// @namespace samleb.github.com
// @description Redirect to target URL skipping countdown.
// @include http*://*.linkbucks.com/
// ==/UserScript==
(function() {
var REGEXP = /TargetUrl\s*=\s*([^;\n]*)/,
urlLiteral = document.body.innerHTML.match(REGEXP)[1],
url = eval(urlLiteral);
window.onbeforeunload = null;
window.location = url;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment