Auto Reload

网页定时自动刷新

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

You will need to install an extension such as Tampermonkey to install this script.

You will need to install an extension such as Tampermonkey or Violentmonkey to install this script.

You will need to install an extension such as Tampermonkey or Userscripts to install this script.

You will need to install an extension such as Tampermonkey to install this script.

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(I already have a user style manager, let me install it!)

Autor
XVCoder
Installationen heute
0
Installationen gesamt
678
Bewertungen
4 2 0
Version
0.10
Erstellt am
20.11.2020
Letzte Aktualisierung
05.08.2022
Größe
16,5 KB
Lizenz
GPL-3.0-only
Wird angewandt auf
Alle Seiten

【概述】

screenshot

主要功能:

  • 自动刷新指定网页
  • 自定义刷新间隔

使用简介:

  • 脚本安装后默认自动匹配所有网页,打开或刷新网页后,在网页的右下角即可看到刷新倒计时提示。

  • 倒计时结束时网页自动刷新。

  • 点击暂停按钮 ❙❙ 时,显示折叠按钮 和设置按钮

  • 点击折叠按钮可将倒计时折叠,再次点击即可展开倒计时。

  • 设置按钮目前仅支持设定刷新间隔。

【自定义】

① 自定义需要定时刷新的网页:

  • 找到脚本代码第12行,修改「http*://*/*」为指定网页的地址,保存后刷新即可

    // @match        https://www.baidu.com/*
    
  • 如需匹配多个页面,则添加多行即可,如下所示:

    // @match        https://www.baidu.com/*
    // @match        https://www.taobao.com/*
    

    ② 自定义刷新间隔

如果默认预设值中没有想要的选项,可以在脚本中找到如下代码:

//倒计时选项(时长:min 可为小数)

let opts = {
opt1: 5,
opt2: 4,
opt3: 3,
opt4: 2,
opt5: 1
}

修改成想要的值即可。如:

let opts = {
opt1: 10,
opt2: 8,
opt3: 6,
opt4: 4,
opt5: 2
}

保存后刷新网页,间隔选项将改为:10min、8min、6min、4min、2min

【更新说明】

  • 2021-03-02 v0.10 修复 自定义倒计时时间选项无效的bug
  • 2020-11-23 v0.9 修复 倒计时bug
  • 2020-11-21 v0.8 优化 显示效果
  • 2020-11-20 v0.7 修改 信息完善,脚本源迁移到GitHub
  • 2020-11-20 v0.6 修改 默认匹配所有网页,修改match以指定需要自动刷新的网页
  • 2020-11-20 v0.5 新增 实现基本功能