3 ms·
This can also be automated with a simple script: // ==UserScript== // @name FT Free articles Hack // @namespace // @description red
by octoploid 12y ago
This can also be automated with a simple script:
// ==UserScript==
// @name FT Free articles Hack
// @namespace
// @description redirect FT to content via google
// @include http://*.ft.com/*
// @include http://www.google.co.uk/url?*
// ==/UserScript==
var s = window.location.href;
if (s.indexOf('google')>0){
var mylink = document.getElementsByTagName("a");
mylink[0].click();
}
else{
if (s.indexOf(',Authorised=false')>0){
var t = s.substring(s.indexOf('s/')+4,s.indexOf(','));
var y = "http://www.google.co.uk/url?sa=t&source=web&url=http%3A%2F%2Fwww.ft.com%2Fcms%2Fs%2F0%2F";
var z = ".html";
window.location.href = y+t+z;
}
if (s.indexOf('registration')>0 && s.indexOf('location')>0 ){
var y = "http://www.google.co.uk/url?sa=t&source=web&url=";
var z = s.substring(s.indexOf('location=')+9,s.indexOf('&referer'));
window.location.href = y+z;
}
}