Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Remove SMWF popups
- // @version 0.1
- // @author The God
- // @match https://stickman.hu/*
- // @grant GM.getValue
- // @grant GM.setValue
- // ==/UserScript==
- (async () => {
- if (!!(await GM.getValue('notificationSidebar', false))) {
- $(".notification-sidebar").remove();
- } else {
- const timer = setInterval(() => {
- if ($(".notification-sidebar .closing-x").size()) {
- clearInterval(timer);
- $(".notification-sidebar .closing-x").removeAttr('onclick').click(() => {
- GM.setValue('notificationSidebar', true);
- $(".notification-sidebar").remove();
- })
- }
- }, 10);
- }
- $("#forum-table .msg-left").each((i, el) => {
- if ($(el).find(".name a").html() === 'Banán') {
- $(el).find('.avatar').attr('src', 'https://media.giphy.com/media/3o72FkjhEttH7AudS8/giphy.gif').css('object-fit', 'cover');
- $(el).find(".rang").html('Dead inside').css('color', '#BFCC32');
- }
- });
- })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement