ShowVirtualMunzeeName

Show the virtual munzee names on the 'convert' page

目前為 2018-10-22 提交的版本,檢視 最新版本

// ==UserScript==
// @name         ShowVirtualMunzeeName
// @namespace    VirtualMunzee
// @version      0.1
// @description  Show the virtual munzee names on the 'convert' page
// @author       CzPeet
// @match        https://www.munzee.com/m/*/*/admin/convert/
// @grant        none
// ==/UserScript==

var colours = document.querySelectorAll('.form');
var colours2 = [];

var html = "";

for (var c=0; c<colours.length; c++)
{
    html = colours[c].children[0].innerHTML;

    colours2.push(html);
    colours2[c] = colours2[c].replace(colours[c].children[0].text.trim(), colours[c].children[0].text.trim() + " <br> " + html.substring(html.indexOf("virtual_")+8, html.indexOf('.png'))).replace(/h3/g,'h6');
}

html = document.documentElement.innerHTML;
for (c=0; c<colours.length; c++)
{
    html = html.replace(colours[c].children[0].innerHTML, colours2[c]);
}
document.documentElement.innerHTML = html;

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址