您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tool to go to the profiler of a user from that user's profile
// ==UserScript== // @name Show profiler in profile // @version 1.0 // @description Tool to go to the profiler of a user from that user's profile // @author A Meaty Alt // @include /action=profile/ // @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 = $("#flashMain1").find("param[name='flashvars']").attr("value").match(/userID=(.*?)&/)[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' img.style.float = "right"; link.appendChild(img); container.appendChild(link); } var dst = $(".titlebg")[0].firstElementChild; appendProfilerLink(dst); })();