BigBisous

Redirection Google enlevée

Dec 13th, 2016
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name My Script
  3. // @namespace www.jadorre.com
  4. // @description nique la redirection de google y compris avec javasript désactiver (avec l'extension yesscript pour un ciblage non bourrin -aka noscript)-[/b]
  5. // @version 1.0
  6. // ==/UserScript==
  7. !function (a) {
  8.   'use strict';
  9.   function b(b) {
  10.     var c = b.getAttribute('onmousedown'),
  11.     d = /\/url\?(?:url|q)=([^&]*)/i,
  12.     e = /imgurl=([^&]*)/i;
  13.     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
  14.   }
  15.   function c() {
  16.     for (var c = document.querySelectorAll('#res a, #rhs a'), d = c.length, e = 0, f = 0; d > f; f++) e += b(c[f])
  17.   }
  18.   function d(a) {
  19.     switch (a.type) {
  20.       case 'DOMAttrModified':
  21.         'xfoot' === a.target.id && '' == a.b && (c(a), a.stopPropagation());
  22.         break;
  23.       case 'DOMNodeInserted':
  24.         'xfoot' == a.c.id && (c(a), a.stopPropagation())
  25.     }
  26.   }
  27.   '/search' == location.pathname && a.addEventListener('DOMContentLoaded', c, !1),
  28.   document.addEventListener('DOMAttrModified', d, !1)
  29. }(window);
Add Comment
Please, Sign In to add comment