SHARE
TWEET

Untitled

a guest Jan 29th, 2020 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name     baskets-of-guts dedegenerator
  3. // @grant    none
  4. // @include  https://acomics.ru/~baskets-of-guts/*
  5. // ==/UserScript==
  6.  
  7. var unsafeWindow = window.wrappedJSObject,
  8.     console = unsafeWindow.console,
  9.     $ = unsafeWindow.$,
  10.     ef
  11. ;
  12. if (GM.info) {
  13.   if (GM.info.scriptHandler === 'Tampermonkey') {
  14.       ef = (fn)=>{return fn}
  15.   } else if (GM.info.scriptHandler === 'Greasemonkey') {
  16.       ef = exportFunction
  17.   }
  18. }
  19.  
  20. $( ef( ()=>{
  21.   var ts = [
  22.       ['сов', 'куп'],
  23.       [' сов '],
  24.       [' сов.'],
  25.       [' сов,'],
  26.       [' сов!'],
  27.       [' сов?'],
  28.       [' совы '],
  29.       [' совы '],
  30.       [' совы.'],
  31.       [' совы,'],
  32.       [' совы!'],
  33.       [' совы?'],
  34.       ['Совы '],
  35.       ['(O)_(O)'],
  36.       ['Сова ']
  37.     ],
  38.     $comments = $()
  39.   ;
  40.   ts.forEach((t)=>{
  41.     var $tcomms = $('.inner:contains("' + t.join('"):contains("') + '")');
  42.     $tcomms.each(ef((idx, el)=>{
  43.         let $comm = $(el);
  44.       if ( $comm.has('.username:contains("Anonymous")').length ) {
  45.         $comments = $comments.add( $comm )
  46.       }
  47.     }, unsafeWindow))
  48.   });
  49.  
  50.   $comments = $.unique($comments);
  51.   $comments
  52.     .css('visibility','hidden')
  53.     .addClass('sowokup')
  54.     .siblings('.avatar')
  55.     .hover(
  56.       ef(function(ev){
  57.         $(this).siblings('.sowokup').css('visibility',false)
  58.       }, unsafeWindow),
  59.       ef(function(ev){
  60.         $(this).siblings('.sowokup').css('visibility','hidden')
  61.       }, unsafeWindow)
  62.     )
  63. }, unsafeWindow) )
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