mirror of
https://github.com/XIU2/UserScript.git
synced 2026-09-22 15:06:57 +00:00
新增 [Github - Notifications] 支持
This commit is contained in:
+14
-1
@@ -1,6 +1,6 @@
|
||||
// ==UserScript==
|
||||
// @name 自动无缝翻页
|
||||
// @version 2.8.1
|
||||
// @version 2.8.2
|
||||
// @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 *://*/*
|
||||
@@ -3077,6 +3077,8 @@
|
||||
curSite = DBSite.github_tags;
|
||||
} else if (location.pathname.indexOf('/commits') > -1) {
|
||||
curSite = DBSite.github_commits;
|
||||
} else if (location.pathname.indexOf('/notifications') > -1) {
|
||||
curSite = DBSite.github_notifications;
|
||||
} else if (location.pathname.indexOf('/search') > -1) {
|
||||
if (!location.search) return
|
||||
if (location.search.indexOf('type=Repositories') > -1 || location.search.indexOf('type=') === -1) {
|
||||
@@ -3163,6 +3165,17 @@
|
||||
scrollDelta: 3000
|
||||
}
|
||||
}, // Github - Commits 列表
|
||||
github_notifications: {
|
||||
SiteTypeID: 0,
|
||||
pager: {
|
||||
type: 1,
|
||||
nextLink: 'css;nav.paginate-container > a[aria-label="Next"]',
|
||||
pageElement: 'css;li.notifications-list-item',
|
||||
insertPosition: ['css;li.notifications-list-item:last-child', 4],
|
||||
replaceE: 'css;nav.paginate-container, .js-notifications-list-paginator-counts',
|
||||
scrollDelta: 3000
|
||||
}
|
||||
}, // Github - Notifications 列表
|
||||
github_search: {
|
||||
SiteTypeID: 0,
|
||||
pager: {
|
||||
|
||||
Reference in New Issue
Block a user