ShowVirtualMunzeeName

Show the virtual munzee names on the 'convert' page

目前为 2018-11-03 提交的版本,查看 最新版本

// ==UserScript==
// @name         ShowVirtualMunzeeName
// @namespace    VirtualMunzee
// @version      0.2
// @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 colourName = "";

for (var c=0; c<colours.length; c++)
{
    colours[c].innerHTML = colours[c].innerHTML.replace(/h3/g,'h6');

    colourName = colours[c].children[0].children[0].src;
    colourName = colourName.substring(colourName.indexOf("_")+1);
    colourName = colourName.substring(0,colourName.indexOf("."));

    colours[c].children[0].children[1].innerText += "\r\n" + colourName;
}