Last active
December 14, 2016 13:48
-
-
Save haakonn/ba0f95b62dbe4fb193f5 to your computer and use it in GitHub Desktop.
Les abonnent-innhold på bt.no med Greasemonkey
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 bt-abonnent | |
// @namespace haakonnilsen.com | |
// @include http://www.bt.no/* | |
// @version 2 | |
// @grant none | |
// ==/UserScript== | |
// Only works with JavaScript disabled. You can use YesScript for this. | |
var salesposter = document.getElementsByClassName("salesposter") | |
if (salesposter.length > 0) { | |
var redirectTo = content.document.location.href + '?service=preview'; | |
window.location.replace(redirectTo); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When active returns: "Finner ikke siden!"
Not working anymore?