Greasy Fork is available in English.

jigsawexplorer anti-troll

Add an anti troll system for message popup and the Shift+R feature as a button

질문, 리뷰하거나, 이 스크립트를 신고하세요.
// ==UserScript==
// @name         jigsawexplorer anti-troll
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  Add an anti troll system for message popup and the Shift+R feature as a button
// @author       zaykho
// @match        https://www.jigsawexplorer.com/*
// @grant        none
// @run-at       document-end
// ==/UserScript==

(function() {
var x_toolbar=document.getElementsByClassName("jigex-toolbar-center");
var x_popup=document.getElementById("jigex-toast-pnl");
var x_div_new=[];
var x_troll=0;
var x_image="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAJYAAAAyCAYAAAC+jCIaAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAADm1JREFUeNrsXHt0jkceniQkpKjULe6EKBG3Q5CSFJWKLSlqU4vaTV12t6lu3RYtpfa4rSVHV5dSf3SjFmtbDiIVW5Uidi0q4l6XJkETSdySCEnMPs9k3m8/ORVJ5Ptkj/md8zOXd97JOzPP/G4zHxcppTBkqKLJxQDLkAGWIQMsQwZYZhYMGWAZMsAyZIBlyJABliEDrP+DCXBxeaz3zcY0wDLAMsB6osBqBPYEV9flbPAdcKFmUoHO38P85RsYGWCVBKw/gYPA3cvYxV/BR8CXwecwn8cMrMoILLa9f/++KCwstKkAV1dX4ebmxgVqmJmZ6Xnv3r3qdevWFVWrVs1BORflQm9v70K2R1vbTkf7gkoCrLpI/gEOZrlhw4bCw8NDVKtWTY0rNzdXZGdnPzDmgoICVcbYVL4Y7QfvBc9H+1wDrPIDq32VKlXWYoE66mZX0eYa0nw882AFyrl2kiEPzAm/xZ2Ofq6Az+J5IheJ/VqL9cwzzzgDWDuRhPr5+Ym1a9eKTp06FQ3i6lWRlpYm8vPzRfXqRVqRALPGkZeXp0B369YtcfToUXH58mVx9uxZcfz4cavr8+AIjOdbA6xSAoupfq8lQHUAk+2N/E3UndaAcQVXIzbAbuCaxBe70GUXOzu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("visibility", "hidden", "important");x_div_new[0].style.backgroundPosition="-50px -7px";}else{x_troll=0;x_popup.style.setProperty("visibility", "visible", "important");x_div_new[0].style.backgroundPosition="0px -7px"; }}
function x_func_b(){document.dispatchEvent(new KeyboardEvent("keydown",{key:"r",keyCode:82,which:82,shiftKey:true}));}
x_div_new[0]=document.createElement("div");
x_div_new[0].id="x-troll-btn";
x_div_new[0].className += "niftybar-icon-button";
x_div_new[0].className += "main-tb-btn";
x_div_new[0].setAttribute("data-tooltip", "Anti Troll Mode: Disable message popup and mute sound");
x_div_new[0].style="width:36px;height:36px;padding:0 6px 0 6px;color:white;cursor:pointer;background:rgba(0, 0, 0, 0) url("+x_image+") no-repeat 0px -7px;";
x_toolbar[0].insertBefore(x_div_new[0], x_toolbar[0].firstChild);
x_div_new[0].onclick=function(){x_func_a()};
x_div_new[1]=document.createElement("div");
x_div_new[1].id="x-shift_r-btn";
x_div_new[1].className += "niftybar-icon-button";
x_div_new[1].className += "main-tb-btn";
x_div_new[1].setAttribute("data-tooltip", "Add the Shift+R shorcut as a button");
x_div_new[1].style="width:36px;height:36px;padding:0 6px 0 6px;color:white;cursor:pointer;background:rgba(0, 0, 0, 0) url("+x_image+") no-repeat -101px -7px;";
x_toolbar[0].insertBefore(x_div_new[1], x_toolbar[0].childNodes[5]);
x_div_new[1].onclick=function(){x_func_b()};
})();