Skip to content

Commit 12c8103

Browse files
committed
修复 [自动签到] 功能在非 www.v2ex.com 域名下当天首次访问非首页时可能出现的问题
1 parent 15329a6 commit 12c8103

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

V2ex-Enhanced.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
// ==UserScript==
22
// @name V2EX 增强
3-
// @version 1.2.1
3+
// @version 1.2.2
44
// @author X.I.U
55
// @description 自动签到、链接转图片、自动无缝翻页、使用 SOV2EX 搜索、回到顶部(右键点击两侧空白处)、快速回复(左键双击两侧空白处)、新标签页打开链接、标签页伪装为 Github(摸鱼)
66
// @match *://v2ex.com/*
@@ -261,7 +261,7 @@
261261
// 后台获取签到状态(并判断是否需要签到)
262262
function qianDaoStatus_(timeNow) {
263263
GM_xmlhttpRequest({
264-
url: 'https://www.v2ex.com/mission/daily',
264+
url: location.origin + '/mission/daily',
265265
method: 'GET',
266266
timeout: 5000,
267267
onload: function (response) {

0 commit comments

Comments
 (0)