NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name CW: White Spiderweb // @version 1.3 // @description ты = (туннелер) ? мужик : не мужик; // @author rare meat // @copyright 2020 strongfish95 // @license MIT; https://opensource.org/licenses/MIT // @updateURL https://openuserjs.org/meta/ReReRe/CW_White_Spiderweb.meta.js // @include https://catwar.su/cw3/* // @grant GM_xmlhttpRequest // @grant GM.xmlHttpRequest // @require https://code.jquery.com/jquery-3.4.1.min.js // @require https://cdn.rawgit.com/meetselva/attrchange/master/js/attrchange.js // ==/UserScript== (function (win, $) { 'use strict'; if (typeof $ === 'undefined') return; const pageurl = window.location.href; const isCW3 = (/^https:\/\/catwar.su\/cw3(?!(\/kns|\/jagd))/.test(pageurl)); try { if (isCW3) cw3(); } catch (err) { win.console.error('White Spiderweb err: ', err); } function cw3() { $(document).ready(function () { $("head").append(`<style>div[style="background: url(\\"things/20.png\\") 100% 0% no-repeat, url(\\"things/20.png\\") 0% 0% no-repeat;"] { background-image: url("https://i.imgur.com/uPT1M1T.png") 100% 0% no-repeat, url("https://i.imgur.com/uPT1M1T.png") 0% 0% no-repeat !important; } div[style="background: url(\\"things/20.png\\") 0% 0% no-repeat;"] { background-image: url("https://i.imgur.com/uPT1M1T.png") !important; }</style>`); /* $(".cage_items").attrchange({ callback: function () { if ($(this).attr('style').indexOf('things/20.png') !== -1) { let link = $(this).attr('style'); link = link.replace('things/20.png', 'https://i.imgur.com/uPT1M1T.png'); $(this).attr('style', link); } } });*/ }); } })(window, jQuery);