Forbes - Skip Welcome Screen2

Skips the welcome screen; The one with the "Thought of the Day" and the full page ad. Pretty much simulates clicking the link, "Skip this welcome screen", as soon as the welcome screen loads.

Stan na 15-09-2016. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name           Forbes - Skip Welcome Screen2
// @namespace      https://greatest.deepsurf.us/users/2329-killerbadger
// @description    Skips the welcome screen; The one with the "Thought of the Day" and the full page ad. Pretty much simulates clicking the link, "Skip this welcome screen", as soon as the welcome screen loads.
// @author         KillerBadger
// @version        0.05 : 15-Sep-2016
// @include        http://www.forbes.com/forbes/welcome/*
// ==/UserScript==
/*

Credits
============

============


History
-------------
0.05 : 15-Sep-2016 Updated to new redirect page.
0.04 : 05-Oct-2015 Added setTimeout to click, in case the script runs too early.
0.03 : 12-Oct-2014 Changed script to work
0.02 : 24-Sep-2008 Added @namespace
0.01 : 03-Jul-2008 Initial release
============

Known Issues
-------------
Fanboy's Enhanced Tracking List breaks the Forbes welcome page.
Users of that list should add the following exceptionrule (ABP Options > Add your own filters):
@@||images.forbes.com/scripts/omniture/*
============

Unnecessary Comments
-------------
I go to the site quite often and after so many days of seeing the welcome screen, I had to put something together. Grr!
============
*/
url = document.URL;
newURL = extractURL(url,"toURL=","&refURL");
redirect(newURL);

function redirect(nLoc) {
    document.title = 'Redirecting...';
    window.location.replace(nLoc);
}
function extractURL(rawElement, startString, endString) {
    b = String(rawElement);
    newLoc = b.substring(b.indexOf(startString)+startString.length,b.indexOf(endString));
    return newLoc;
}