Greasy Fork is available in English.
讯飞星火助手工具
// ==UserScript==
// @name 讯飞星火助手
// @namespace http://tampermonkey.net/
// @version 0.0.3
// @description 讯飞星火助手工具
// @author kj
// @match https://xinghuo.xfyun.cn/desk
// @icon https://www.google.com/s2/favicons?sz=64&domain=xfyun.cn
// @grant none
// @run-at document-idle
// @license MIT
// ==/UserScript==
(function () {
'use strict';
const generateUUID = () => {
let d = new Date().getTime();
if (typeof performance !== 'undefined' && typeof performance.now === 'function') {
d += performance.now(); // use high-precision timer if available
}
return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, c => {
const r = (d + Math.random() * 16) % 16 | 0;
d = Math.floor(d / 16);
return (c === 'x' ? r : (r & 0x3 | 0x8)).toString(16);
});
}
let styleId = generateUUID();
let styleEl = document.getElementById(styleId);
if (!styleEl) {
styleEl = document.createElement('style');
styleEl.setAttribute('id', styleId);
styleEl.innerHTML = `div#watermark-wrapper{display:none!important;transform: translateX(100000000px);overflow: hidden;}`;
document.body.appendChild(styleEl);
}
})();