From 3d8fe13f0e21232b9378786d95f92f8cad6647ca Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 24 Sep 2021 08:23:46 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E4=BC=98=E5=8C=96=20[=E5=B1=8F=E8=94=BD?= =?UTF-8?q?=E9=A6=96=E9=A1=B5=E6=B4=BB=E5=8A=A8=E5=B9=BF=E5=91=8A]=20?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=EF=BC=88=E6=81=A2=E5=A4=8D=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E6=A8=AA=E6=9D=A1=E4=B8=BA=E9=BB=98=E8=AE=A4=E6=A0=B7=E5=BC=8F?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Zhihu-Beautification.user.js | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/Zhihu-Beautification.user.js b/Zhihu-Beautification.user.js index cc4e89a9d..1f3a42434 100644 --- a/Zhihu-Beautification.user.js +++ b/Zhihu-Beautification.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 知乎美化 -// @version 1.4.0 +// @version 1.4.1 // @author X.I.U // @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏、文章编辑页面与实际文章宽度一致 // @match *://www.zhihu.com/* @@ -175,15 +175,26 @@ function addStyle() { let style = `/* 屏蔽登录提示(问题页中间的元素) */ .Question-mainColumnLogin {display: none !important;} -/* 屏蔽首页广告 */ -.TopstoryItem--advertCard {display: none !important;} /* 屏蔽回答页广告 */ .Pc-card.Card {display: none !important;} /* 屏蔽文章页推荐文章 */ .Recommendations-Main {display: none !important;} +`, + style_index = `/* 屏蔽首页广告 */ +.TopstoryItem--advertCard {display: none !important;} /* 屏蔽首页活动广告 */ main.App-main > .Topstory > div:not(.Topstory-container) {display: none !important;} -`, +html[data-theme="light"] header.AppHeader {background-color: #ffffff !important; -webkit-box-shadow: 0 1px 3px rgba(18,18,18,.1) !important; box-shadow: 0 1px 3px rgba(18,18,18,.1) !important;} +html[data-theme="light"] header.AppHeader a[aria-label="知乎"] svg {filter: invert(57%) sepia(71%) saturate(949%) hue-rotate(190deg) brightness(86%) contrast(188%) !important;} +html[data-theme="light"] .AppHeader-TabsLink {color: #8590a6 !important; font-weight: normal !important;} +html[data-theme="light"] .AppHeader-userInfo Button svg, .SearchBar-searchButton svg {color: inherit !important;} +html[data-theme="light"] .Input-wrapper.Input-wrapper--grey {background: #f6f6f6 !important;} +html[data-theme="light"] .AppHeader-SearchBar input.Input {color: #121212 !important;} +html[data-theme="light"] .AppHeader-SearchBar input::-webkit-input-placeholder {color: #a4a4a4 !important;} +html[data-theme="light"] .AppHeader-SearchBar input:-moz-placeholder {color: #a4a4a4 !important;} +html[data-theme="light"] .AppHeader-SearchBar input::-moz-placeholder {color: #a4a4a4 !important;} +html[data-theme="light"] .Button--primary.Button--blue {color: #fff !important;background-color: #06f !important;} + `, style_widescreenDisplayIndex = `/* 宽屏显示 - 首页 */ .Topstory-mainColumn, .QuestionWaiting-mainColumn {width: inherit !important;} .GlobalSideBar {display: none !important;} @@ -419,6 +430,8 @@ html {filter: brightness(75%) sepia(30%) !important; background-image: url();} } } + if (location.pathname === '/' || location.pathname === '/hot' || location.pathname === '/follow') style += style_index; + // 宽屏显示 if (menu_value('menu_widescreenDisplayIndex')) style += style_widescreenDisplayIndex; if (menu_value('menu_widescreenDisplayQuestion') && location.pathname.indexOf('/question/') > -1) style += style_widescreenDisplayQuestion; From 314a5562e87e6c6a2b17e73ba337f4802a48a03a Mon Sep 17 00:00:00 2001 From: xiu2 <54703944+XIU2@users.noreply.github.com> Date: Fri, 24 Sep 2021 10:34:22 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20[=E8=BD=BB=E4=B9=8B?= =?UTF-8?q?=E6=96=87=E5=BA=93=E3=80=81=E6=89=B6=E5=A5=B9=E5=8A=A8=E6=BC=AB?= =?UTF-8?q?]=20=E6=94=AF=E6=8C=81;=20=E6=96=B0=E5=A2=9E=20[=E5=8A=A8?= =?UTF-8?q?=E6=BC=AB=E8=8A=B1=E5=9B=AD]=20=E5=85=B6=E4=BB=96=E5=9F=9F?= =?UTF-8?q?=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Autopage.user.js | 33 +++++++++++++++++++++++++++++++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/Autopage.user.js b/Autopage.user.js index 5e57aa13c..3845410e4 100644 --- a/Autopage.user.js +++ b/Autopage.user.js @@ -1,6 +1,6 @@ // ==UserScript== // @name 自动无缝翻页 -// @version 2.4.5 +// @version 2.4.6 // @author X.I.U // @description 无缝拼接下一页内容(瀑布流),目前支持:[所有使用「Discuz!、Flarum、DUX(WordPress)」的网站]、百度、谷歌、必应、搜狗、头条、360、微信、贴吧、豆瓣、微博、NGA、V2EX、龙的天空、起点小说、煎蛋网、IT之家、千图网、Pixabay、3DM、游侠网、游民星空、NexusMods、Steam 创意工坊、小霸王其乐无穷、CS.RIN.RU、FitGirl、茶杯狐、NO视频、低端影视、奈菲影视、91美剧网、真不卡影院、片库、音范丝、BT之家、萌番组、动漫花园、樱花动漫、爱恋动漫、AGE 动漫、Nyaa、SrkBT、RARBG、SubHD、423Down、不死鸟、扩展迷、极简插件、小众软件、动漫狂、漫画猫、漫画DB、HiComic、动漫之家、古风漫画网、PubMed、wikiHow、GreasyFork、Github、StackOverflow(以上仅一部分,更多的写不下了... // @match *://*/* @@ -1401,7 +1401,7 @@ }, // 爱恋动漫 dmhy: { SiteTypeID: 0, - host: 'dmhy.anoneko.com', + host: ['share.dmhy.org', 'dmhy.anoneko.com'], pager: { type: 1, nextLink: '//div[@class="nav_title"]/a[@href][contains(text(), "下一頁")]', @@ -1414,6 +1414,18 @@ after: function() {document.body.appendChild(document.createElement('script')).textContent = `$('#topic_list > tbody > tr:even:not(.even):not(.odd)').addClass('even'); $('#topic_list > tbody > tr:odd:not(.even):not(.odd)').addClass('odd');`;} } }, // 动漫花园 + futaacg: { + SiteTypeID: 0, + host: 'futaacg.com', + pager: { + type: 1, + nextLink: 'css;ul.pagination a[rel="next"]', + pageElement: 'css;.topic-list > div', + insertPosition: ['css;.topic-list', 3], + replaceE: 'css;ul.pagination', + scrollDelta: 1500 + } + }, // 扶她动漫 bangumi: { SiteTypeID: 0, host: 'bangumi.moe', @@ -1632,6 +1644,23 @@ scrollDelta: 900 } }, // 起点小说 - 阅读页 + linovel: { + SiteTypeID: 0, + host: 'www.linovel.net', + functionStart: function() {if (/\/book\/\d+\/.+\.html/.test(location.pathname)) { + document.lastElementChild.appendChild(document.createElement('style')).textContent = '.reward-section {display: none !important;}'; + } else if (location.pathname.indexOf('/cat/') > -1) { + curSite = DBSite.linovel; + }}, + pager: { + type: 1, + nextLink: '//ul[@class="pagination"]/li/a[contains(text(), "下一页")]', + pageElement: 'css;.rank-book-list > div', + insertPosition: ['css;.rank-book-list', 3], + replaceE: 'css;ul.pagination', + scrollDelta: 1000 + } + }, // 轻之文库 linovelib: { SiteTypeID: 0, host: 'www.linovelib.com',