mirror of
https://mirror.ghproxy.com/https://github.com/CxJuice/ScWeb_Chinese_Translate.git
synced 2024-12-23 06:13:45 +08:00
Update userscript.js
This commit is contained in:
parent
023013aa52
commit
be23ca1b32
@ -1,12 +1,12 @@
|
||||
// ==UserScript==
|
||||
// @name UEX汉化脚本
|
||||
// @namespace Violentmonkey Scripts
|
||||
// @match https://uexcorp.space/*
|
||||
// @grant none
|
||||
// @version 0.8.0
|
||||
// @license GNU GPLv3
|
||||
// @author CxJuice
|
||||
// @description 2022/7/28 12:48:01
|
||||
// @name UEX——CN
|
||||
// @name:zh-CN UEX汉化脚本
|
||||
// @namespace https://github.com/CxJuice/Uex_Chinese_Translate
|
||||
// @version 0.8.0
|
||||
// @description UEX——CN
|
||||
// @description:zh UEX汉化插件
|
||||
// @description:zh-CN UEX汉化插件
|
||||
// @author CxJuice
|
||||
// @match https://uexcorp.space/*
|
||||
// @match https://www.erkul.games/*
|
||||
// @grant GM_xmlhttpRequest
|
||||
@ -26,6 +26,7 @@ document.addEventListener('click', function(event) {
|
||||
myScript();
|
||||
});
|
||||
function myScript() {
|
||||
|
||||
(function() {
|
||||
'use strict';
|
||||
|
||||
@ -80,13 +81,11 @@ function myScript() {
|
||||
}
|
||||
|
||||
function shoudTranslateEl(el) {
|
||||
const blockIds = ["readme", "wiki-content"];
|
||||
const blockIds = [];
|
||||
const blockClass = [
|
||||
"mat-icon",
|
||||
"CodeMirror",
|
||||
"css-truncate" // 过滤文件目录
|
||||
];
|
||||
const blockTags = [];
|
||||
const blockTags = [ "IMG", "svg"];
|
||||
|
||||
if(blockTags.includes(el.tagName)) {
|
||||
return false;
|
||||
@ -198,6 +197,5 @@ function myScript() {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
})();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user