Guest User

Untitled

a guest
Jan 24th, 2020
466
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         Remove SMWF popups
  3. // @version      0.1
  4. // @author       The God
  5. // @match        https://stickman.hu/*
  6. // @grant        GM.getValue
  7. // @grant        GM.setValue
  8. // ==/UserScript==
  9.  
  10. (async () => {
  11.     if (!!(await GM.getValue('notificationSidebar', false))) {
  12.         $(".notification-sidebar").remove();
  13.     } else {
  14.         const timer = setInterval(() => {
  15.             if ($(".notification-sidebar .closing-x").size()) {
  16.                 clearInterval(timer);
  17.                 $(".notification-sidebar .closing-x").removeAttr('onclick').click(() => {
  18.                     GM.setValue('notificationSidebar', true);
  19.                     $(".notification-sidebar").remove();
  20.                 })
  21.             }
  22.         }, 10);
  23.     }
  24.     $("#forum-table .msg-left").each((i, el) => {
  25.         if ($(el).find(".name a").html() === 'BanĂ¡n') {
  26.             $(el).find('.avatar').attr('src', 'https://media.giphy.com/media/3o72FkjhEttH7AudS8/giphy.gif').css('object-fit', 'cover');
  27.             $(el).find(".rang").html('Dead inside').css('color', '#BFCC32');
  28.         }
  29.     });
  30. })();
Advertisement
Add Comment
Please, Sign In to add comment