// ==UserScript== // @name MISC29Test // @namespace http // @version 0.1 // @description try to take over the world! // @author You // @match https://www.google.com/* // @grant none // ==/UserScript== (function() { 'use strict'; function fuckOffAMP(){ // Check whether it's AMP html var h = document.getElementsByTagName('html'); if (h[0].getAttribute('amp') != null || h[0].getAttribute('⚡') != null || document.location.href.substr(0,29).toLowerCase() == 'https://www.google.com/amp/s/'){ console.log("eww vile... trying to redirect"); // Try and find a canonical link eles = document.getElementsByTagName('link'); for (var i=0; i