Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name My Script
- // @namespace www.jadorre.com
- // @description nique la redirection de google y compris avec javasript désactiver (avec l'extension yesscript pour un ciblage non bourrin -aka noscript)-[/b]
- // @version 1.0
- // ==/UserScript==
- !function (a) {
- 'use strict';
- function b(b) {
- var c = b.getAttribute('onmousedown'),
- d = /\/url\?(?:url|q)=([^&]*)/i,
- e = /imgurl=([^&]*)/i;
- return c && - 1 != c.indexOf('return rwt(') ? (b.removeAttribute('onmousedown'), 1) : d.test(b.href) ? (b.href = a.decodeURIComponent(b.href.match(d) [1]), 1) : e.test(b.href) ? (b.href = a.decodeURIComponent(b.href.match(e) [1]), 1) : 0
- }
- function c() {
- for (var c = document.querySelectorAll('#res a, #rhs a'), d = c.length, e = 0, f = 0; d > f; f++) e += b(c[f])
- }
- function d(a) {
- switch (a.type) {
- case 'DOMAttrModified':
- 'xfoot' === a.target.id && '' == a.b && (c(a), a.stopPropagation());
- break;
- case 'DOMNodeInserted':
- 'xfoot' == a.c.id && (c(a), a.stopPropagation())
- }
- }
- '/search' == location.pathname && a.addEventListener('DOMContentLoaded', c, !1),
- document.addEventListener('DOMAttrModified', d, !1)
- }(window);
Add Comment
Please, Sign In to add comment