Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 31 additions & 2 deletions Autopage.user.js
Original file line number Diff line number Diff line change
@@ -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 *://*/*
Expand Down Expand Up @@ -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(), "下一頁")]',
Expand All @@ -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',
Expand Down Expand Up @@ -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',
Expand Down
21 changes: 17 additions & 4 deletions Zhihu-Beautification.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name 知乎美化
// @version 1.4.0
// @version 1.4.1
// @author X.I.U
// @description 宽屏显示、暗黑模式(4种)、暗黑模式跟随浏览器、屏蔽首页活动广告、隐藏文章开头大图、调整图片最大高度、向下翻时自动隐藏顶栏、文章编辑页面与实际文章宽度一致
// @match *://www.zhihu.com/*
Expand Down Expand Up @@ -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;}
Expand Down Expand Up @@ -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;
Expand Down