Converts Overwatch's watch list to an import HF-MTS can read
当前为
// ==UserScript==
// @name Overwatch to HF-MTS Export/Import
// @namespace http://kadauchi.com/
// @version 1.0.0
// @description Converts Overwatch's watch list to an import HF-MTS can read
// @author Kadauchi
// @icon http://i.imgur.com/oGRQwPN.png
// @match https://worker.mturk.com/overwatch_export
// @grant GM_log
// @grant GM_setClipboard
// ==/UserScript==
const HITFINDER = {};
const OVERWATCH = JSON.parse(localStorage.getItem('OverwatchDB')).serDB;
for (let key in OVERWATCH) {
HITFINDER[key] = {
term: key,
name: OVERWATCH[key].userName,
type:"voice",
sound:true,
notification:true,
pushbullet:true
};
}
GM_setClipboard(JSON.stringify(HITFINDER));
if (JSON.stringify(HITFINDER).length > 5) {
alert('Overwatch to HIT Finder export has been copied to your clipboard');
}