File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name 自动无缝翻页
3- // @version 4.2.9
3+ // @version 4.3.0
44// @author X.I.U
55// @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(以上仅一小部分,更多的写不下了...
66// @match *://*/*
@@ -7202,9 +7202,11 @@ function: {
72027202 return
72037203 }
72047204 // 插入网页
7205- let _html = `<style>#Autopage_number {top: calc(75vh) !important;left: 0 !important;width: 32px;height: 32px;padding: 6px !important;display: flex;position: fixed !important;opacity: 0.5;transition: .2s;z-index: 9999 !important;cursor: pointer;user-select: none !important;flex-direction: column;align-items: center;justify-content: center;box-sizing: content-box;border-radius: 0 50% 50% 0;transform-origin: center !important;transform: translateX(-8px);background-color: #eee;-webkit-tap-highlight-color: transparent;box-shadow: 1px 1px 3px 0px #aaa !important;color: #000 !important;font-size: medium;} #Autopage_number:hover {opacity: 0.9;transform: translateX(0);}</style>
7206- <div id="Autopage_number" title="1. 此处数字为 [当前页码] (可在脚本菜单中关闭) 2. 鼠标左键点击此处 [临时暂停本页自动无缝翻页](再次点击可恢复)">${ pageNum . _now } </div>`
7207- document . documentElement . insertAdjacentHTML ( 'beforeend' , _html ) ;
7205+ let _style = `<style>#Autopage_number {top: calc(75vh) !important;left: 0 !important;width: 32px;height: 32px;padding: 6px !important;display: flex;position: fixed !important;opacity: 0.5;transition: .2s;z-index: 9999 !important;cursor: pointer;user-select: none !important;flex-direction: column;align-items: center;justify-content: center;box-sizing: content-box;border-radius: 0 50% 50% 0;transform-origin: center !important;transform: translateX(-8px);background-color: #eee;-webkit-tap-highlight-color: transparent;box-shadow: 1px 1px 3px 0px #aaa !important;color: #000 !important;font-size: medium;} #Autopage_number:hover {opacity: 0.9;transform: translateX(0);}</style>` ,
7206+ _html = `<div id="Autopage_number" title="1. 此处数字为 [当前页码] (可在脚本菜单中关闭) 2. 鼠标左键点击此处 [临时暂停本页自动无缝翻页](再次点击可恢复)">${ pageNum . _now } </div>`
7207+ document . documentElement . insertAdjacentHTML ( 'beforeend' , _style + _html ) ;
7208+ // 解决 远景论坛 会清理掉前面插入的 CSS 样式的问题
7209+ if ( location . hostname === 'bbs.pcbeta.com' ) { setTimeout ( function ( ) { document . documentElement . insertAdjacentHTML ( 'beforeend' , _style ) ; } , 500 ) ; }
72087210 if ( curSite . pager && curSite . pager . type == 5 ) window . top . document . xiu_pausePage = pausePage
72097211 // 点击事件(临时暂停翻页)
72107212 getCSS ( '#Autopage_number' ) . onclick = function ( ) {
You can’t perform that action at this time.
0 commit comments