您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tool to go to the profiler of a user from that user's comments in the forum
// ==UserScript== // @name Show Profiler in forum // @version 1.1 // @description Tool to go to the profiler of a user from that user's comments in the forum // @author A Meaty Alt // @include /fairview\.deadfrontier\.com\/onlinezombiemmo\/index\.php\?topic=/ // @grant none // @namespace https://greasyfork.org/users/150647 // ==/UserScript== (function() { 'use strict'; var commonLink = "http://www.dfprofiler.com/profile/view/"; function appendProfilerLink(container){ var userId = container.innerHTML.match(/u=(.*?)"/)[1]; var link = document.createElement("a"); link.href = commonLink + userId; var img = document.createElement("img"); img.src = "http://www.dfprofiler.com/images/favicon-96x96.png"; //git gud hotrods c: img.style.width = '32px'; img.style.height = 'auto'; link.appendChild(img); container.appendChild(link); } var dst = $("div[class='smalltext']"); //just even numbers for(var i=0; i<dst.length; i+=2){ if(!dst[i].querySelector("img")) continue; appendProfilerLink(dst[i]); } })();