您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
xD
当前为
- // ==UserScript==
- // @name NI Revert item status icons
- // @version 1.0
- // @description xD
- // @author You
- // @match http*://*.margonem.pl/
- // @match http*://*.margonem.com/
- // @exclude http*://margonem.*/*
- // @exclude http*://www.margonem.*/*
- // @exclude http*://new.margonem.*/*
- // @exclude http*://forum.margonem.*/*
- // @exclude http*://commons.margonem.*/*
- // @exclude http*://dev-commons.margonem.*/*
- // @run-at document-body
- // @grant none
- // @namespace https://tampermonkey.net/
- // ==/UserScript==
- (function() {
- const replaceFunction = () => {
- if (!window.MargoTipsParser) {
- return setTimeout(replaceFunction, 500);
- }
- const original = MargoTipsParser.getTip;
- MargoTipsParser.getTip = function(){
- const res = original.apply(this, arguments);
- const { cl, stat } = arguments[0];
- const oldIcons = [cl, "binds", "soulbound", "permbound", "artisan_worthless", "noauction", "nodepo", "nodepoclan"];
- const stats = stat.split(";");
- const arr = $(res).toArray().filter(el => !el.classList.contains("s-8"));
- const head = arr[0];
- const oldHeadIcons = oldIcons.map(status => !isNaN(status) || stats.includes(status) ? `<div class='cl-icon icon-${status}'></div>` : undefined);
- head.lastChild.innerHTML += oldHeadIcons.filter(v => v).join("");
- return arr.map(item => item.outerHTML).join("");
- }
- }
- replaceFunction();
- })();