SHARE
TWEET

Contourner le blocage du journal Le Monde

bloginfo Mar 25th, 2016 (edited) 146 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        LeMonde
  3. // @namespace   AdBlock
  4. // @include     /^https?://(www\.)?(lmde|lemonde)\.fr(/|$)/
  5. // @version     1
  6. // @grant       http://www.dsfc.net
  7. // ==/UserScript==
  8. window.onload = function ()
  9. {
  10.   var s = window.location.href;
  11.   var r = document.referrer;
  12.   if (s.match(/^https?:\/\/(www\.)?lemonde\.fr\/modele-economique\/$/))
  13.   {
  14.     var Anchors = document.getElementsByTagName("a");
  15.     var Onclick;
  16.     var Anchor;
  17.     for (var i = 0; i < Anchors.length ; i++)
  18.     {
  19.       Anchor=Anchors[i];
  20.       Onclick=Anchor.getAttribute("onclick");
  21.       if(Onclick=="return xt_click(this,'C','','Dispositif_Adblock::Poursuite_visite','N','','')")
  22.       {
  23.         Anchor.setAttribute("href", r);
  24.         Anchor.click();
  25.         break;
  26.       }
  27.     }
  28.   }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top