Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
fatjing opened this issue Sep 11, 2024 · 8 comments
Open

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

fatjing opened this issue Sep 11, 2024 · 8 comments

Comments

@fatjing
Copy link

fatjing commented Sep 11, 2024

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
Copy link
Owner

hoothin commented Sep 12, 2024

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

@fatjing
Copy link
Author

fatjing commented Sep 12, 2024

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

@hoothin
Copy link
Owner

hoothin commented Sep 12, 2024

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

@hoothin
Copy link
Owner

hoothin commented Sep 12, 2024

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

@fatjing
Copy link
Author

fatjing commented Sep 12, 2024

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

@hoothin
Copy link
Owner

hoothin commented Sep 12, 2024

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

@fatjing
Copy link
Author

fatjing commented Sep 12, 2024

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

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

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

@hoothin
Copy link
Owner

hoothin commented Sep 13, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants