您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
A simple, minimalistic script that adds Companion Name to the Ghost Trappers companion page.
// ==UserScript== // @author pbcmatthew // @name Ghost Trappers Display Companion Name // @description A simple, minimalistic script that adds Companion Name to the Ghost Trappers companion page. // @version 1.0 // @changes // @include http://www.ghost-trappers.com/fb/setup.php?type=companion* // @include http://gt-1.diviad.com/fb/setup.php?type=companion* // @include http://www.ghost-trappers.com/fb/setup.php?action=changeSortFilter&type=companion* // @include http://gt-1.diviad.com/fb/setup.php?action=changeSortFilter&type=companion* // @namespace https://greasyfork.org/users/13142 // ==/UserScript== $(window).load(function(){ for (var i = 0; i<300; i++) { var petimglink = document.getElementsByClassName("smallImage")[i].src; var petimgpng = petimglink.split("/")[6]; var petimgname = petimgpng.split(".")[0]; var nickname = document.getElementsByClassName("smallName")[i]; petname = document.createElement("div"); var mapObj = { icon:"", png:"", _:" " }; petimgname = petimgname.replace(/icon|png|_/gi, function(matched){ return mapObj[matched]; }); petname.innerHTML = petimgname; nickname.appendChild(petname); } })