Skip to content

Commit

Permalink
chore: 更新了脚本跳转位置
Browse files Browse the repository at this point in the history
  • Loading branch information
14790897 committed Dec 27, 2024
1 parent 3a21eca commit 3bf546e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/cron_bypassCF.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: readLike(自动阅读随机点赞)
# GitHub.secrets优先级最高,即使没有设置对应的变量,它也会读取,这时变量为空值,导致报错,.env读取的变量无法覆盖这个值,使用了${PASSWORD_ESCAPED//\#/\\#}来对#转义,需要两个\,但是我直接在env文件使用这种方法是不行的,GitHub action是有效
on:
schedule:
# 每天 UTC 时间 18:40 运行
- cron: "40 18 * * *"
# 每天 UTC 时间 19:40 运行
- cron: "40 19 * * *"
workflow_dispatch: # 允许手动触发

jobs:
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name Auto Read
// @namespace http://tampermonkey.net/
// @version 1.4.1
// @version 1.4.2
// @description 自动刷linuxdo文章
// @author liuweiqing
// @match https://meta.discourse.org/*
Expand Down Expand Up @@ -291,7 +291,7 @@
} else {
// 如果是Linuxdo,就导航到我的帖子
if (BASE_URL == "https://linux.do") {
window.location.href = "https://linux.do/t/topic/13716/518";
window.location.href = "https://linux.do/t/topic/13716/700";
} else {
window.location.href = `${BASE_URL}/t/topic/1`;
}
Expand Down

0 comments on commit 3bf546e

Please sign in to comment.