hoothin / UserScripts

Greasemonkey scripts ( Pagetual / Picviewer CE+ / DownloadAllContent ) 油猴腳本集 ユーザースクリプト集
https://greasyfork.org/users/8227-hoothin
3.03k stars 510 forks source link

Pagetual: Add a button to manually start auto-paging process #730

Open fatjing opened 3 weeks ago

fatjing commented 3 weeks ago

Hi, thanks for the great script!

Currently, the auto-paging functionality seems to be tied to URL-based blacklists or whitelists. However, I often find myself on random paginated webpages where I'd like to manually trigger the auto-paging feature without having the URL recorded or affecting other pages from the same site.

I've unchecked 'Auto enable (blacklist mode)', and I suggest adding a button to manually start auto-paging on the current page. This would provide greater control and flexibility, especially for per-page usage.

hoothin commented 3 weeks ago

开启了白名单之后,命令菜单中的启用自动翻页就是你要的“按钮”

fatjing commented 3 weeks ago

是`Enable automatic page turning'吗? 点击之后整个网站都启用了。我的意思是只需要在某个网站的某个网页临时用一下,访问这个站的其他页面不开自动翻页。就是在某页面一次性用一下,但是网站不加入白名单,不影响其他页面。

hoothin commented 3 weeks ago

不可行。 目前白名单模式下是不会初始化环境的,因此如果是白名单模式,在当前页启用后页面必须要刷新。 这就导致如果只想“临时一次性用一下”不保存启用状态,刷新之后没办法判断你的选择。 此外如果想要仅在当前页面生效,仅有自定义规则一种方法。

hoothin commented 3 weeks ago

或者我可以添加一个仅生效一次的“启用标识”,页面加载完毕就自动删除标识。 我想知道你为什么会有这种奇怪的需求。

fatjing commented 3 weeks ago

因为时时打开自动翻页功能对我来说侵略性太大了。比如翻译插件有网页加载完自动翻译的功能,我也是关闭的。希望插件脚本平时可以隐身,当需要功能时自己主动去触发。

hoothin commented 3 weeks ago

比如说发现某个网页需要自动翻页时,什么情况下会仅需要临时翻页,下次打开这个网页却不需要再次启用翻页了呢? 我是疑惑这个。

fatjing commented 3 weeks ago

比如说发现某个网页需要自动翻页时,什么情况下会仅需要临时翻页,下次打开这个网页却不需要再次启用翻页了呢? 我是疑惑这个。

比如我有个脚本会对论坛帖子进行一些处理,但是不会对翻页拼接上来的页面生效。默认不想要启用翻页。

但这个例子不是重点,即使没有这个例子,也不想脚本时时自动生效,不符合个人的使用习惯。如前面说的,希望脚本平时可以隐身,当需要功能时使用者自己主动去触发。

hoothin commented 3 weeks ago

加上了,新增了一个临时启用翻页的选项