启用 JS 严格模式

This commit is contained in:
xiu2
2021-07-17 09:20:07 +08:00
parent 2fe4267aa6
commit ae84aee3d3
15 changed files with 16 additions and 0 deletions
+1
View File
@@ -12,6 +12,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
let style_Add = document.createElement('style');
style_Add.innerHTML = `
+1
View File
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_autoReply', '自动回复', '自动回复', true],
+1
View File
@@ -18,6 +18,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_rule', '隐藏版规', '隐藏版规', false]
+1
View File
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_autoClockIn', '自动签到', '自动签到', true],
+1
View File
@@ -36,6 +36,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
// 注册脚本菜单
GM_registerMenuCommand('反馈 & 欢迎申请支持', function () {window.GM_openInTab('https://github.com/XIU2/UserScript#xiu2userscript', {active: true,insert: true,setParent: true});window.GM_openInTab('https://greasyfork.org/zh-CN/scripts/419215/feedback', {active: true,insert: true,setParent: true});});
+1
View File
@@ -23,6 +23,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_runDuringTheDay', '白天保持开启 (比晚上亮一点点)', '白天保持开启', true],
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var backColor = '#ffffff';
var fontColor = '#888888';
+1
View File
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_streamline = GM_getValue('xiu2_menu_streamline');
var menu_streamline_ID, menu_feedBack_ID;
+1
View File
@@ -20,6 +20,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_autoSignIn', '自动签到', '自动签到', true],
+2
View File
@@ -30,6 +30,8 @@
// @supportURL https://github.com/XIU2/UserScript
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_open_fileSha', '自动打开分享链接', '自动打开分享链接', true],
+1
View File
@@ -20,6 +20,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_autoClockIn', '自动签到', '自动签到', true],
+1
View File
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_widescreenDisplay', '宽屏显示', '宽屏显示', true],
+1
View File
@@ -19,6 +19,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
var menu_ALL = [
['menu_collapsedAnswer', '一键收起回答', '一键收起回答', true],
['menu_collapsedNowAnswer', '收起当前回答/评论(点击两侧空白处)', '收起当前回答/评论', true],
+1
View File
@@ -12,6 +12,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
let style_Add = document.createElement('style');
style_Add.innerHTML = `
+1
View File
@@ -20,6 +20,7 @@
// @homepageURL https://github.com/XIU2/UserScript
// ==/UserScript==
'use strict';
(function() {
var menu_ALL = [
['menu_autoReply', '自动回复', '自动回复', true],