sanitysama

Remove Filtered Galleries

Dec 14th, 2013
257
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name        Remove Filtered Galleries
  3. // @namespace   95.211.209.53-e85f8079-b847-455f-b080-8467e2977711@sanitysama
  4. // @version     1
  5. // @include     /^https?://(g\.e-|ex)hentai\.org/$/
  6. // @include     /^https?://(g\.e-|ex)hentai\.org/\?.*/
  7. // @include     /^https?://(g\.e-|ex)hentai\.org/tag*/
  8. // @require     http://ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js
  9. // @run-at      document-end
  10. // ==/UserScript==
  11.  
  12. $(document).ready(function() {
  13.  
  14.     function clean() {
  15.         $('.id1').each(function() {
  16.             $(this).find('img[src$="blank.gif"]').map(function() {
  17.                 $(this).parents(".id1").hide();
  18.             });
  19.         });
  20.     }
  21.    
  22.     $('#dmo').after('<button id="cleanup" class="stdbtn" name="cleanup" style="position:absolute;float:left">Clean</button>');
  23.     $("button#cleanup").click(function() {
  24.         clean();
  25.     });
  26. });
Advertisement
Add Comment
Please, Sign In to add comment