From e8c0117bf77e232b4d91d85ff921519a2404b06d Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 31 Dec 2021 16:57:48 +0800
Subject: [PATCH 0001/1538] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E5=B1=8F?=
=?UTF-8?q?=E8=94=BD=E9=A6=96=E9=A1=B5=E8=A7=86=E9=A2=91]=20=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 26 +++++++++++++-------------
1 file changed, 13 insertions(+), 13 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 495b5b505..266cb0892 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.6
+// @version 1.8.7
// @author X.I.U
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
@@ -147,9 +147,9 @@ function getCollapsedAnswerObserver() {
if (!mutation.target.classList.contains('RichContent')) continue
for (const addedNode of mutation.addedNodes) {
if (addedNode.nodeType != Node.ELEMENT_NODE) continue
- //console.log(addedNode, addedNode.offsetHeight)
+ console.log(addedNode, addedNode.offsetHeight)
if (addedNode.className == 'RichContent-inner' && addedNode.offsetHeight < 400) return
- //console.log(addedNode.offsetHeight)
+ console.log(addedNode.offsetHeight)
const button = addedNode.querySelector('.ContentItem-actions.Sticky [data-zop-retract-question]');
if (button) {
mutation.target.setAttribute('script-collapsed', '');
@@ -854,10 +854,10 @@ function blockKeywords(type) {
function blockType(type) {
let name;
// 一开始加载的信息流 + 添加标签样式
- if (type === 'search') {
+ if (type === 'search') { // 搜索页
if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle') && !menu_value('menu_blockTypeTopic') && !menu_value('menu_blockTypeSearch')) return
if (menu_value('menu_blockTypeSearch') && location.pathname === '/search') setTimeout(function(){document.querySelector('.RelevantQuery').parentElement.parentElement.hidden = true;;}, 1000)
- name = 'h2.ContentItem-title a, a.KfeCollection-PcCollegeCard-link, h2.SearchTopicHeader-Title a'
+ name = 'h2.ContentItem-title a:not(.zhihu_e_toQuestion), a.KfeCollection-PcCollegeCard-link, h2.SearchTopicHeader-Title a'
addSetInterval_(name);
} else if (type === 'question') { // 问题页
if (!menu_value('menu_blockTypeVideo')) return
@@ -866,9 +866,8 @@ function blockType(type) {
document.querySelectorAll(name).forEach(function(item){blockType_(item);})
} else { // 首页
if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle')) return
- // 移除相关搜索
- if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none !important;}`;
- name = 'h2.ContentItem-title a'
+ if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `.Card .ZVideoItem-video {display: none !important;}`;
+ name = 'h2.ContentItem-title a:not(.zhihu_e_toQuestion)'
document.querySelectorAll(name).forEach(function(item){blockType_(item);})
}
@@ -891,9 +890,10 @@ function blockType(type) {
function blockType_(titleA) {
if (!titleA) return // 判断是否为真
+ console.log(titleA.href)
if (location.pathname === '/search') { // 搜索页
if (location.search.indexOf('type=content') === -1) return // 仅限搜索页的 [综合]
- if (titleA.href.indexOf('/zvideo/') > -1) { // 如果是视频
+ if (titleA.href.indexOf('/zvideo/') > -1 || titleA.href.indexOf('video.zhihu.com') > -1) { // 如果是视频
if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card').hidden = true;
} else if (titleA.href.indexOf('zhuanlan.zhihu.com') > -1) { // 如果是文章
if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card SearchResult-Card').hidden = true;
@@ -905,14 +905,14 @@ function blockType(type) {
} else if (location.pathname.indexOf('/question/') > -1) { // 问题页
if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'List-item').hidden = true;
} else { // 首页
- if (titleA.href.indexOf('/zvideo/') > -1) { // 如果是视频
- if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
+ if (titleA.href.indexOf('/zvideo/') > -1 || titleA.href.indexOf('video.zhihu.com') > -1) { // 如果是视频
+ if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem-isRecommend').hidden = true;
} else if (titleA.href.indexOf('/answer/') > -1) { // 如果是问题(视频回答)
if (findParentElement(titleA, 'ContentItem AnswerItem').querySelector('.VideoAnswerPlayer')) {
- if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
+ if (menu_value('menu_blockTypeVideo')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem-isRecommend').hidden = true;
}
} else if (titleA.href.indexOf('zhuanlan.zhihu.com') > -1) { // 如果是文章
- if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem--old TopstoryItem-isRecommend').hidden = true;
+ if (menu_value('menu_blockTypeArticle')) findParentElement(titleA, 'Card TopstoryItem TopstoryItem-isRecommend').hidden = true;
}
}
}
From d1f4e86e4ed951adaac8f7263983525fb2a2cba0 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Fri, 31 Dec 2021 16:58:51 +0800
Subject: [PATCH 0002/1538] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20[=E5=B1=8F?=
=?UTF-8?q?=E8=94=BD=E9=A6=96=E9=A1=B5=E8=A7=86=E9=A2=91]=20=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 266cb0892..6d245cc7a 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -890,7 +890,7 @@ function blockType(type) {
function blockType_(titleA) {
if (!titleA) return // 判断是否为真
- console.log(titleA.href)
+ //console.log(titleA.href)
if (location.pathname === '/search') { // 搜索页
if (location.search.indexOf('type=content') === -1) return // 仅限搜索页的 [综合]
if (titleA.href.indexOf('/zvideo/') > -1 || titleA.href.indexOf('video.zhihu.com') > -1) { // 如果是视频
From 2f198be7a70c8d3242634c76eb6bc3065a7bb2f6 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jan 2022 00:31:01 +0800
Subject: [PATCH 0003/1538] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E7=BB=86?=
=?UTF-8?q?=E8=8A=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 6d245cc7a..1e491f0be 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -147,9 +147,9 @@ function getCollapsedAnswerObserver() {
if (!mutation.target.classList.contains('RichContent')) continue
for (const addedNode of mutation.addedNodes) {
if (addedNode.nodeType != Node.ELEMENT_NODE) continue
- console.log(addedNode, addedNode.offsetHeight)
+ //console.log(addedNode, addedNode.offsetHeight)
if (addedNode.className == 'RichContent-inner' && addedNode.offsetHeight < 400) return
- console.log(addedNode.offsetHeight)
+ //console.log(addedNode.offsetHeight)
const button = addedNode.querySelector('.ContentItem-actions.Sticky [data-zop-retract-question]');
if (button) {
mutation.target.setAttribute('script-collapsed', '');
@@ -866,7 +866,7 @@ function blockType(type) {
document.querySelectorAll(name).forEach(function(item){blockType_(item);})
} else { // 首页
if (!menu_value('menu_blockTypeVideo') && !menu_value('menu_blockTypeArticle')) return
- if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `.Card .ZVideoItem-video {display: none !important;}`;
+ if (menu_value('menu_blockTypeVideo')) document.lastChild.appendChild(document.createElement('style')).textContent = `.Card .ZVideoItem-video, nav.TopstoryTabs > a[aria-controls="Topstory-zvideo"] {display: none !important;}`;
name = 'h2.ContentItem-title a:not(.zhihu_e_toQuestion)'
document.querySelectorAll(name).forEach(function(item){blockType_(item);})
}
From 1c2da59893a36a4a594112a24ee9f6c574d14a55 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jan 2022 10:50:46 +0800
Subject: [PATCH 0004/1538] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=20=E4=B8=93?=
=?UTF-8?q?=E6=A0=8F=E9=A1=B5=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD=E5=A4=B1?=
=?UTF-8?q?=E6=95=88=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Zhihu-Enhanced.user.js | 17 +++++++++++------
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/Zhihu-Enhanced.user.js b/Zhihu-Enhanced.user.js
index 1e491f0be..c45b9c72d 100644
--- a/Zhihu-Enhanced.user.js
+++ b/Zhihu-Enhanced.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 知乎增强
-// @version 1.8.7
+// @version 1.8.8
// @author X.I.U
// @description 移除登录弹窗、屏蔽首页视频、默认收起回答、快捷收起当前回答/评论(左键两侧空白处)、快捷回到顶部(右键两侧空白处)、屏蔽用户 (发布的内容)、屏蔽关键词(标题/评论)、移除高亮链接、屏蔽盐选内容、净化标题消息、展开问题描述、置顶显示时间、完整问题时间、区分问题文章、直达问题按钮、默认高清原图、默认站外直链
// @match *://www.zhihu.com/*
@@ -194,7 +194,9 @@ function defaultCollapsedAnswer() {
// 一键收起回答(全部)
function collapsedAnswer() {
if (!menu_value('menu_collapsedAnswer')) return
- if (document.querySelector('.CornerAnimayedFlex')) {
+ console.log('1111', document.querySelector('.CornerAnimayedFlex'))
+ if (document.querySelector('.CornerAnimayedFlex') && !document.getElementById('collapsed-button')) {
+ console.log('2222')
document.head.appendChild(document.createElement('style')).textContent = '.CornerButton{margin-bottom:8px !important;}.CornerButtons{bottom:45px !important;}';
document.querySelector('.CornerAnimayedFlex').insertAdjacentHTML('afterBegin', '');
document.getElementById('collapsed-button').onclick = function () {
@@ -1308,7 +1310,7 @@ function topTime_zhuanlan() {
ContentItemTime.style.cssText = 'padding:0px 0px 0px 0px; margin-top: 14px'
let temp_time = ContentItemTime.cloneNode(true);
// ContentItemTime.style.display = 'none';
- if (location.href.indexOf("column") > -1){
+ if (location.href.indexOf('/column/') > -1){
document.querySelector('.ContentItem-meta').insertAdjacentElement('beforeEnd', temp_time);
} else {
document.querySelector('.Post-Header').insertAdjacentElement('beforeEnd', temp_time);
@@ -1522,9 +1524,12 @@ function questionInvitation(){
setInterval(topTime_zhuanlan, 300); // 置顶显示时间
blockUsers(); // 屏蔽指定用户
} else if (location.pathname.indexOf('/column/') > -1) { // 专栏 //
- collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
- setInterval(topTime_zhuanlan, 300); // 置顶显示时间
- blockUsers(); // 屏蔽指定用户
+ setTimeout(function(){
+ collapsedAnswer(); // 一键收起回答
+ collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
+ setInterval(topTime_zhuanlan, 300); // 置顶显示时间
+ blockUsers(); // 屏蔽指定用户
+ }, 300);
} else if (location.pathname.indexOf('/people/') > -1 || location.href.indexOf('org') > -1) { // 用户主页 //
if (location.pathname.split('/').length === 3) addTypeTips();addToQuestion(); // 区分问题文章、直达问题按钮
collapsedNowAnswer('main div'); // 收起当前回答 + 快捷返回顶部
From 2ad0e048670f1642851b6fde2fe2e2634f18a63a Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sat, 1 Jan 2022 12:27:35 +0800
Subject: [PATCH 0005/1538] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E7=88=B1?=
=?UTF-8?q?=E6=BC=AB=E7=94=BB]=20=E5=85=B6=E4=BB=96=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 6659fcb67..0aa7c39f1 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.2.8
+// @version 4.2.9
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -2802,7 +2802,7 @@ function: {
}
}, // 漫画皮 - 分类页
imanhuaw: {
- host: 'www.imanhuaw.com',
+ host: ['www.imanhuaw.net', 'www.imanhuaw.com'],
functionS: function() {
if (getCSS('.mh-search-result')) {
curSite = DBSite.imanhuaw_list;
From 470b22a625005a1e44115339f3e25b57711c350f Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Sun, 2 Jan 2022 17:24:02 +0800
Subject: [PATCH 0006/1538] =?UTF-8?q?=E8=A7=A3=E5=86=B3=20=E8=BF=9C?=
=?UTF-8?q?=E6=99=AF=E8=AE=BA=E5=9D=9B=E4=BC=9A=E6=B8=85=E7=90=86=E9=A1=B5?=
=?UTF-8?q?=E7=A0=81=E6=A0=B7=E5=BC=8F=E7=9A=84=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 10 ++++++----
1 file changed, 6 insertions(+), 4 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 0aa7c39f1..437107936 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.2.9
+// @version 4.3.0
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
@@ -7202,9 +7202,11 @@ function: {
return
}
// 插入网页
- let _html = `
-
${pageNum._now}
`
- document.documentElement.insertAdjacentHTML('beforeend', _html);
+ let _style = ``,
+ _html = `${pageNum._now}
`
+ document.documentElement.insertAdjacentHTML('beforeend', _style + _html);
+ // 解决 远景论坛 会清理掉前面插入的 CSS 样式的问题
+ if (location.hostname === 'bbs.pcbeta.com') {setTimeout(function(){document.documentElement.insertAdjacentHTML('beforeend', _style);}, 500);}
if (curSite.pager && curSite.pager.type == 5) window.top.document.xiu_pausePage = pausePage
// 点击事件(临时暂停翻页)
getCSS('#Autopage_number').onclick = function () {
From f40ed9f68903498e107b3b810fff83345eed4e8d Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 09:24:50 +0800
Subject: [PATCH 0007/1538] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F3=20=E5=9C=A8=20B=E7=AB=99=20=E7=9A=84=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DarkMode.user.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/DarkMode.user.js b/DarkMode.user.js
index f2e9c56c8..5ae3686d7 100644
--- a/DarkMode.user.js
+++ b/DarkMode.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 护眼模式
-// @version 1.3.2
+// @version 1.3.3
// @author X.I.U
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
// @match *://*/*
@@ -335,8 +335,8 @@
style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`,
style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`,
style_22_firefox = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important; background-image: url();}`,
- style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} .mode-fullscreen video, img[alt="[公式]"] {filter: none !important;}`,
- style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} .mode-fullscreen video, img[alt="[公式]"] {filter: none !important;}`;
+ style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`,
+ style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`;
// Firefox 浏览器需要特殊对待
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
From 50027553a4111e000633793ee3db3b643d517d80 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 09:38:17 +0800
Subject: [PATCH 0008/1538] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F3=20=E5=9C=A8=20B=E7=AB=99=20=E7=9A=84=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C=20(=E9=9A=90=E8=97=8F=E8=A7=86?=
=?UTF-8?q?=E9=A2=91=E7=99=BD=E8=BE=B9)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DarkMode.user.js | 12 +++++++++---
1 file changed, 9 insertions(+), 3 deletions(-)
diff --git a/DarkMode.user.js b/DarkMode.user.js
index 5ae3686d7..dc7ffafd1 100644
--- a/DarkMode.user.js
+++ b/DarkMode.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 护眼模式
-// @version 1.3.3
+// @version 1.3.4
// @author X.I.U
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
// @match *://*/*
@@ -335,8 +335,14 @@
style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`,
style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`,
style_22_firefox = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important; background-image: url();}`,
- style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`,
- style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`;
+ style_31 = `html {filter: invert(${style_30[0]}%) !important;}
+img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;}
+img[alt="[公式]"] {filter: none !important;}
+.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`,
+ style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();}
+img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;}
+img[alt="[公式]"] {filter: none !important;}
+.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`;
// Firefox 浏览器需要特殊对待
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
From df94de9beff824c2b00e88f4cafba3f1a91b7284 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 09:51:08 +0800
Subject: [PATCH 0009/1538] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F3=20=E5=9C=A8=20B=E7=AB=99=20=E7=9A=84=E6=98=BE?=
=?UTF-8?q?=E7=A4=BA=E6=95=88=E6=9E=9C=20(=E5=AD=97=E4=BD=93=E5=8A=A0?=
=?UTF-8?q?=E7=B2=97)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DarkMode.user.js | 11 +++--------
1 file changed, 3 insertions(+), 8 deletions(-)
diff --git a/DarkMode.user.js b/DarkMode.user.js
index dc7ffafd1..41b29dc52 100644
--- a/DarkMode.user.js
+++ b/DarkMode.user.js
@@ -335,14 +335,8 @@
style_21_firefox = `html {filter: brightness(${style_20[0]}%) sepia(${style_20[1]}%) !important; background-image: url();}`,
style_22 = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important;}`,
style_22_firefox = `html {filter: brightness(${style_20[2]}%) sepia(${style_20[3]}%) !important; background-image: url();}`,
- style_31 = `html {filter: invert(${style_30[0]}%) !important;}
-img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;}
-img[alt="[公式]"] {filter: none !important;}
-.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`,
- style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();}
-img, video, [style*="background"][style*="url"], #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;}
-img[alt="[公式]"] {filter: none !important;}
-.bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;}`;
+ style_31 = `html {filter: invert(${style_30[0]}%) !important;} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`,
+ style_31_firefox = `html {filter: invert(${style_30[0]}%) !important; background-image: url();} img, video, [style*="background"][style*="url"] {filter: invert(1) !important;} img[alt="[公式]"] {filter: none !important;}`;
// Firefox 浏览器需要特殊对待
if (navigator.userAgent.toLowerCase().indexOf('firefox') > -1) {
@@ -375,6 +369,7 @@ img[alt="[公式]"] {filter: none !important;}
break;
case 3:
style += style_31;
+ if (location.hostname.indexOf('.bilibili.com') > -1) {style += `#bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;} * {font-weight: bold !important;}`}
break;
}
style_Add.id = 'XIU2DarkMode';
From 8640b686810b1b2e17440c1aca177bd11739dab6 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 21:15:42 +0800
Subject: [PATCH 0010/1538] =?UTF-8?q?=E8=A1=A5=E5=85=85=20=E5=85=B6?=
=?UTF-8?q?=E4=BB=96=E5=88=86=E6=9E=90=E9=93=BE=E6=8E=A5=E5=9F=9F=E5=90=8D?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Lanzou-Enhanced.user.js | 7 ++-----
1 file changed, 2 insertions(+), 5 deletions(-)
diff --git a/Lanzou-Enhanced.user.js b/Lanzou-Enhanced.user.js
index 0213e53dc..fb8720ad9 100644
--- a/Lanzou-Enhanced.user.js
+++ b/Lanzou-Enhanced.user.js
@@ -1,12 +1,9 @@
// ==UserScript==
// @name 蓝奏云网盘增强
-// @version 1.3.6
+// @version 1.3.7
// @author X.I.U
// @description 刷新不回根目录、后退返回上一级、右键文件显示菜单、点击直接下载文件、自动显示更多文件、自定义分享链接域名、自动打开/复制分享链接、带密码的分享链接自动输密码、拖入文件自动显示上传框、输入密码后回车确认、调整描述(话说)编辑框初始大小
-// @match *://*.lanzous.com/*
-// @match *://*.lanzoux.com/*
-// @match *://*.lanzoui.com/*
-// @match *://*.lanzouo.com/*
+// @include /^https:\/\/.+\.lanzou[a-z]\.com\/.*$/
// @match *://pan.lanzou.com/*
// @match *://lanzou.com/u
// @match *://www.lanzou.com/account.php*
From b5c5b7e4ac215534cd61f3a6fcf9d63fc55f3ca7 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 22:13:58 +0800
Subject: [PATCH 0011/1538] =?UTF-8?q?=E4=BC=98=E5=8C=96=20=E6=A8=A1?=
=?UTF-8?q?=E5=BC=8F=203=20=E5=9C=A8=20B=20=E7=AB=99=E8=A7=86=E9=A2=91?=
=?UTF-8?q?=E7=9A=84=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
DarkMode.user.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/DarkMode.user.js b/DarkMode.user.js
index 41b29dc52..d6b6d9c9d 100644
--- a/DarkMode.user.js
+++ b/DarkMode.user.js
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 护眼模式
-// @version 1.3.4
+// @version 1.3.5
// @author X.I.U
// @description 简单有效的全网通用护眼模式(夜间模式、暗黑模式、深色模式)
// @match *://*/*
@@ -369,7 +369,7 @@
break;
case 3:
style += style_31;
- if (location.hostname.indexOf('.bilibili.com') > -1) {style += `#bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3 {box-shadow: none !important;} * {font-weight: bold !important;}`}
+ if (location.hostname.indexOf('.bilibili.com') > -1) {style += `#bilibiliPlayer video {filter: none !important;} #bilibiliPlayer:not(.mode-fullscreen), #bilibiliPlayer:not(.mode-fullscreen) .bilibili-player-video-sendbar {filter: invert(1) !important;} .bilibili-player.bilibili-player-area-v1, .bilibili-player.bilibili-player-area-v3, #bilibiliPlayer {box-shadow: none !important;} * {font-weight: bold !important;}`}
break;
}
style_Add.id = 'XIU2DarkMode';
From 66a94aae21389bba5a632d99f4b660acb2984638 Mon Sep 17 00:00:00 2001
From: xiu2 <54703944+XIU2@users.noreply.github.com>
Date: Mon, 3 Jan 2022 22:56:56 +0800
Subject: [PATCH 0012/1538] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E4=BC=98?=
=?UTF-8?q?=E9=85=B7=E6=BC=AB=E7=94=BB]=E3=80=81[=E8=B0=B7=E6=AD=8C?=
=?UTF-8?q?=E5=AD=A6=E6=9C=AF=20-=20=E5=85=B6=E4=BB=96=E9=95=9C=E5=83=8F?=
=?UTF-8?q?=E7=AB=99]=20=E6=94=AF=E6=8C=81?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Autopage.user.js | 99 +++++++++++++++++++++++++++++++++++++++++++++++-
1 file changed, 97 insertions(+), 2 deletions(-)
diff --git a/Autopage.user.js b/Autopage.user.js
index 437107936..0ec62cfa5 100644
--- a/Autopage.user.js
+++ b/Autopage.user.js
@@ -1,9 +1,10 @@
// ==UserScript==
// @name 自动无缝翻页
-// @version 4.3.0
+// @version 4.3.1
// @author X.I.U
// @description 无缝拼接下一页内容(瀑布流),目前支持:[所有「Discuz!、Flarum、phpBB、Xiuno、XenForo、DUX/XIU/D8/Begin(WP主题)」网站]、百度、谷歌、必应、搜狗、头条搜索、360 搜索、微信搜索、贴吧、豆瓣、知乎、微博、NGA、V2EX、B 站(Bilibili)、Pixiv、蓝奏云、煎蛋网、糗事百科、龙的天空、起点小说、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、CS.RIN.RU、片库、茶杯狐、NO视频、低端影视、奈菲影视、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画 DB、动漫之家、拷贝漫画、包子漫画、古风漫画网、Mangabz、PubMed、GreasyFork、Github、StackOverflow(以上仅一小部分,更多的写不下了...
// @match *://*/*
+// @connect www.ykmh.com
// @connect www.xuexiniu.com
// @connect bbs.xuexiniu.com
// @connect www.tujigu.net
@@ -3017,6 +3018,40 @@ function: {
scrollD: 1000
}
}, // 动漫戏说 - 分类页
+ ykmh: {
+ host: 'www.ykmh.com',
+ functionS: function() {if (indexOF(/\/\d+\.html/)) {
+ let chapterScroll = getCSS('#qiehuan_txt') // 强制为 [上下滚动阅读] 模式
+ if (localStorage.getItem('chapterScroll') != '"scroll"') {
+ localStorage.setItem('chapterScroll', '"scroll"'); location.reload()
+ } else {
+ setTimeout(ykmh_init, 100);
+ curSite = DBSite.ykmh;
+ }
+ } else if (indexOF('/list') || indexOF('/search')) {
+ curSite = DBSite.ykmh_list;
+ }},
+ insStyle: 'p.img_info {display: none !important;} #images > img {display: block !important;margin: 0 auto !important; border: none !important; padding: 0 !important; max-width: 99% !important; height: auto !important;}',
+ history: true,
+ pager: {
+ type: 4,
+ nextL: ykmh_nextL,
+ insertP: ['css;#images', 3],
+ insertE: ykmh_insertE,
+ replaceE: 'css;.head_title, span.head_wz',
+ interval: 2000,
+ scrollD: 3000
+ }
+ }, // 优酷漫画
+ ykmh_list: {
+ pager: {
+ type: 1,
+ nextL: 'css;li.next > a',
+ pageE: 'css;li.list-comic',
+ replaceE: 'css;ul.pagination',
+ scrollD: 1000
+ }
+ }, // 优酷漫画 - 分类页
copymanga: {
host: /copymanga\./,
functionS: function() {if (indexOF('/chapter/')) {
@@ -4076,15 +4111,38 @@ function: {
}
}, // 科研通 - 帖子内
google_scholar: {
+ host: 'scholar.google.com',
+ functionS: function() {if (lp == '/scholar') {curSite = DBSite.google_scholar;}},
+ history: true,
pager: {
type: 1,
nextL: '//a[./span[contains(@class, "next")]]',
pageE: 'css;#gs_res_ccl_mid > *',
- replaceE: 'id("gs_n")',
+ insertP: ['css;#gs_res_ccl_mid', 3],
+ replaceE: 'css;#gs_n',
scriptT: 1,
scrollD: 2000
}
}, // 谷歌学术
+ google_scholar_: {
+ host: 'sc.panda321.com',
+ history: true,
+ pager: {
+ type: 1,
+ nextL: '//a[./span[contains(@class, "next")]]',
+ pageE: 'css;#gs_res_ccl_mid > *',
+ insertP: ['css;#gs_res_ccl_mid', 3],
+ replaceE: 'css;#gs_n',
+ scriptT: 1,
+ scrollD: 2000
+ },
+ function: {
+ bF: function(pageElems){
+ getCSS('#gs_n').remove();
+ return pageElems
+ }
+ }
+ }, // 谷歌学术 - 其他镜像站
bing_academic: {
insStyle: 'li.aca_algo_count {display: none !important;}',
pager: {
@@ -6195,6 +6253,42 @@ function: {
}
+ // [优酷漫画] 初始化(调整本话其余图片)
+ function ykmh_init(css) {
+ let host = SinMH.getChapterImage(1).split('/')[0] + '//' + SinMH.getChapterImage(1).split('/')[2];
+ if (!host) return
+ let _img = '';
+ for (let one of chapterImages) {_img += `
`;}
+ getOne(curSite.pager.insertP[0]).innerHTML = _img;
+ }
+ // [优酷漫画] 获取下一页地址
+ function ykmh_nextL() {
+ let url = comicUrl + nextChapterData.id + '.html'
+ if (url && url != '.html' && url != curSite.pageUrl) {
+ curSite.pageUrl = url;
+ getPageElems_(curSite.pageUrl);
+ }
+ }
+ // [优酷漫画] 插入数据
+ function ykmh_insertE(pageElems, type) {
+ //console.log(pageElems)
+ if (!pageElems) return
+ // 插入并运行