Advertisement
Guest User

Untitled

a guest
Jul 26th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Go Away
  3. // @namespace   com.numerama.goaway
  4. // @description Remove Pokemon Go
  5. // @include     http://www.numerama.com/
  6. // @version     1
  7. // @grant       none
  8. // ==/UserScript==
  9. $(function ()
  10. {
  11.   var isPokemon = function($el)
  12.   {
  13.     return ($el.html().indexOf('pokemon') != -1);
  14.   }
  15.  
  16.   for(var i=1;i<=4;i++)
  17.   {
  18.     $('article.featured-news_feat'+i).each(function()
  19.     {
  20.       /*if (isPokemon($(this)))
  21.         $(this).remove();*/ // Casse l'affichage de la une, désactivé
  22.     })
  23.   }
  24.   $('article.post-grid.format-article').each(function ()
  25.   {
  26.     if (isPokemon($(this)))
  27.       $(this).remove();
  28.   });
  29.   $('section.universe-preview.preview-section').each(function()
  30.   {
  31.      if (isPokemon($(this)))
  32.        $(this).remove();
  33.   });
  34. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement