Skip to content

Commit

Permalink
update require lib
Browse files Browse the repository at this point in the history
  • Loading branch information
WhiteSevs committed May 29, 2024
1 parent a9328a2 commit 3cf80f0
Show file tree
Hide file tree
Showing 20 changed files with 207 additions and 143 deletions.
10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"keywords": [],
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@whitesev/domutils": "^1.0.4",
"@whitesev/utils": "^1.0.3",
"qmsg": "^1.0.9",
"@whitesev/domutils": "^1.1.0",
"@whitesev/utils": "^1.2.1",
"qmsg": "^1.1.0",
"viewerjs": "^1.11.6",
"vue": "^3.4.27",
"vue-router": "^4.3.2"
Expand All @@ -24,8 +24,8 @@
"unplugin-element-plus": "^0.8.0",
"unplugin-icons": "^0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.11",
"vite-plugin-monkey": "^3.5.2",
"vite": "^5.2.12",
"vite-plugin-monkey": "4.0.0-alpha.1",
"vue-tsc": "^2.0.19"
}
}
2 changes: 1 addition & 1 deletion packages/CSDN优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716948797248,
"time": 1716950505312,
"version": "2024.5.29"
}
2 changes: 1 addition & 1 deletion packages/CSDN优化/dist/CSDN优化.min.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @supportURL https://github.com/WhiteSevs/TamperMonkeyScript/issues
// @match *://*.csdn.net/*
// @require https://update.greasyfork.org/scripts/494167/1376186/CoverUMD.js
// @require https://update.greasyfork.org/scripts/456485/1384463/pops.js
// @require https://update.greasyfork.org/scripts/456485/1384984/pops.js
// @require https://cdn.jsdelivr.net/npm/qmsg@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.2.1/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.1.0/dist/index.umd.js
Expand Down
2 changes: 1 addition & 1 deletion packages/CSDN优化/dist/CSDN优化.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
// @supportURL https://github.com/WhiteSevs/TamperMonkeyScript/issues
// @match *://*.csdn.net/*
// @require https://update.greasyfork.org/scripts/494167/1376186/CoverUMD.js
// @require https://update.greasyfork.org/scripts/456485/1384463/pops.js
// @require https://update.greasyfork.org/scripts/456485/1384984/pops.js
// @require https://cdn.jsdelivr.net/npm/qmsg@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.2.1/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.1.0/dist/index.umd.js
Expand Down
4 changes: 2 additions & 2 deletions packages/GreasyFork优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716910684202,
"version": "2024.5.28"
"time": 1716950880134,
"version": "2024.5.29"
}
4 changes: 2 additions & 2 deletions packages/【移动端】bilibili优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716884712420,
"version": "2024.5.28.16"
"time": 1716950510374,
"version": "2024.5.29"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 【移动端】bilibili优化
// @namespace https://github.com/WhiteSevs/TamperMonkeyScript
// @version 2024.5.28.16
// @version 2024.5.29
// @author WhiteSevs
// @description bilibili(哔哩哔哩)优化,免登录等
// @license GPL-3.0-only
Expand All @@ -10,10 +10,10 @@
// @match *://m.bilibili.com/*
// @match *://live.bilibili.com/*
// @require https://update.greasyfork.org/scripts/494167/1376186/CoverUMD.js
// @require https://update.greasyfork.org/scripts/456485/1384463/pops.js
// @require https://update.greasyfork.org/scripts/456485/1384984/pops.js
// @require https://cdn.jsdelivr.net/npm/qmsg@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.1.9/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.0.8/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.2.1/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.1.0/dist/index.umd.js
// @connect *
// @connect m.bilibili.com
// @connect www.bilibili.com
Expand Down Expand Up @@ -530,6 +530,14 @@
}
this.$listener.listenData.delete(deleteKey);
},
/**
* 判断该键是否存在
* @param key 键
*/
hasValue(key) {
let locaData = _GM_getValue(KEY, {});
return key in locaData;
},
/**
* 自动判断菜单是否启用,然后执行回调
* @param key
Expand All @@ -539,6 +547,10 @@
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
callback(value);
Expand All @@ -553,6 +565,10 @@
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
if (this.$data.oneSuccessExecMenu.has(key)) {
Expand All @@ -564,7 +580,7 @@
},
/**
* 根据key执行一次
* @param key
* @param key
*/
onceExec(key, callback) {
if (typeof key !== "string") {
Expand Down
4 changes: 2 additions & 2 deletions packages/【移动端】微博优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716897510714,
"version": "2024.5.28"
"time": 1716950838706,
"version": "2024.5.29"
}
4 changes: 2 additions & 2 deletions packages/【移动端】百度系优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716884578405,
"version": "2024.5.28"
"time": 1716950706737,
"version": "2024.5.29"
}

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 【移动端】百度系优化
// @namespace https://github.com/WhiteSevs/TamperMonkeyScript
// @version 2024.5.28
// @version 2024.5.29
// @author WhiteSevs
// @description 用于【移动端】的百度系列产品优化,包括【百度搜索】、【百家号】、【百度贴吧】、【百度文库】、【百度经验】、【百度百科】、【百度知道】、【百度翻译】、【百度图片】、【百度地图】、【百度好看视频】、【百度爱企查】、【百度问题】、【百度识图】等
// @license GPL-3.0-only
Expand All @@ -11,15 +11,15 @@
// @match *://www.tieba.com/*
// @match *://uf9kyh.smartapps.cn/*
// @require https://update.greasyfork.org/scripts/494167/1376186/CoverUMD.js
// @require https://update.greasyfork.org/scripts/456485/1384463/pops.js
// @require https://update.greasyfork.org/scripts/488179/1360581/showdown.js
// @require https://update.greasyfork.org/scripts/456485/1384984/pops.js
// @require https://update.greasyfork.org/scripts/488179/1384528/showdown.js
// @require https://cdn.jsdelivr.net/npm/vue@3.4.27/dist/vue.global.prod.js
// @require https://cdn.jsdelivr.net/npm/vue-router@4.3.2/dist/vue-router.global.js
// @require https://update.greasyfork.org/scripts/495227/1378053/Element-Plus.js
// @require https://cdn.jsdelivr.net/npm/@element-plus/icons-vue@2.3.1/dist/index.iife.min.js
// @require https://cdn.jsdelivr.net/npm/qmsg@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.1.9/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.0.8/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.2.1/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/viewerjs@1.11.6/dist/viewer.min.js
// @resource ElementPlusResourceCSS https://cdn.jsdelivr.net/npm/element-plus@2.7.2/dist/index.min.css
// @resource ViewerCSS https://cdn.jsdelivr.net/npm/viewerjs@1.11.6/dist/viewer.min.css
Expand Down Expand Up @@ -3406,6 +3406,14 @@ match-attr##srcid##sp_purc_atom
console.warn("没有找到对应的监听器");
}
},
/**
* 判断该键是否存在
* @param key 键
*/
hasValue(key) {
let locaData = _GM_getValue(KEY, {});
return key in locaData;
},
/**
* 自动判断菜单是否启用,然后执行回调
* @param key
Expand All @@ -3415,6 +3423,10 @@ match-attr##srcid##sp_purc_atom
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
callback(value);
Expand All @@ -3429,6 +3441,10 @@ match-attr##srcid##sp_purc_atom
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
if (this.$data.oneSuccessExecMenu.has(key)) {
Expand Down
4 changes: 2 additions & 2 deletions packages/小红书优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716884733905,
"version": "2024.5.28.16"
"time": 1716950730274,
"version": "2024.5.29"
}
32 changes: 16 additions & 16 deletions packages/小红书优化/dist/小红书优化.min.user.js

Large diffs are not rendered by default.

24 changes: 20 additions & 4 deletions packages/小红书优化/dist/小红书优化.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name 小红书优化
// @namespace https://github.com/WhiteSevs/TamperMonkeyScript
// @version 2024.5.28.16
// @version 2024.5.29
// @author WhiteSevs
// @description 屏蔽登录弹窗、屏蔽广告、优化评论浏览、优化图片浏览、允许复制、禁止唤醒App、禁止唤醒弹窗、修复正确跳转等
// @license GPL-3.0-only
Expand All @@ -10,10 +10,10 @@
// @match *://www.xiaohongshu.com/*
// @require https://update.greasyfork.org/scripts/494167/1376186/CoverUMD.js
// @require https://update.greasyfork.org/scripts/449471/1360565/Viewer.js
// @require https://update.greasyfork.org/scripts/456485/1384463/pops.js
// @require https://update.greasyfork.org/scripts/456485/1384984/pops.js
// @require https://cdn.jsdelivr.net/npm/qmsg@1.1.0/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.1.9/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.0.8/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/utils@1.2.1/dist/index.umd.js
// @require https://cdn.jsdelivr.net/npm/@whitesev/domutils@1.1.0/dist/index.umd.js
// @connect edith.xiaohongshu.com
// @grant GM_addStyle
// @grant GM_deleteValue
Expand Down Expand Up @@ -547,6 +547,14 @@
console.warn("没有找到对应的监听器");
}
},
/**
* 判断该键是否存在
* @param key 键
*/
hasValue(key) {
let locaData = _GM_getValue(KEY, {});
return key in locaData;
},
/**
* 自动判断菜单是否启用,然后执行回调
* @param key
Expand All @@ -556,6 +564,10 @@
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
callback(value);
Expand All @@ -570,6 +582,10 @@
if (typeof key !== "string") {
throw new TypeError("key 必须是字符串");
}
if (!PopsPanel.hasValue(key)) {
log.warn(`${key} 键不存在`);
return;
}
let value = PopsPanel.getValue(key);
if (value) {
if (this.$data.oneSuccessExecMenu.has(key)) {
Expand Down
6 changes: 3 additions & 3 deletions packages/小红书优化/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
},
"dependencies": {
"@element-plus/icons-vue": "^2.3.1",
"@whitesev/domutils": "^1.0.8",
"@whitesev/utils": "^1.1.9",
"@whitesev/domutils": "^1.1.0",
"@whitesev/utils": "^1.2.1",
"qmsg": "^1.1.0",
"viewerjs": "^1.11.6",
"vue": "^3.4.27",
Expand All @@ -30,7 +30,7 @@
"unplugin-element-plus": "^0.8.0",
"unplugin-icons": "^0.19.0",
"unplugin-vue-components": "^0.27.0",
"vite": "^5.2.11",
"vite": "^5.2.12",
"vite-plugin-monkey": "4.0.0-alpha.1",
"vue-tsc": "^2.0.19"
}
Expand Down
4 changes: 2 additions & 2 deletions packages/抖音优化/SCRIPT_VERSION.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"time": 1716884839207,
"version": "2024.5.28.16"
"time": 1716950504292,
"version": "2024.5.29"
}
Loading

0 comments on commit 3cf80f0

Please sign in to comment.