Skip to content

Instantly share code, notes, and snippets.

@haakonn
Last active December 14, 2016 13:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haakonn/ba0f95b62dbe4fb193f5 to your computer and use it in GitHub Desktop.
Save haakonn/ba0f95b62dbe4fb193f5 to your computer and use it in GitHub Desktop.
Les abonnent-innhold på bt.no med Greasemonkey
// ==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);
}
@dooniem
Copy link

dooniem commented Dec 14, 2016

When active returns: "Finner ikke siden!"
Not working anymore?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment