Skip to content

Commit 4fc0fb9

Browse files
committed
fix
1 parent 118f732 commit 4fc0fb9

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@
8282
// @include http*://greasyfork.org/*/scripts/*
8383
// @include http*://sleazyfork.org/*/forum/*discussion*
8484
// @include http*://greasyfork.org/*/forum/*discussion*
85-
// @version 3.22.25
85+
// @version 3.22.26
8686
// @grant GM_notification
8787
// @grant GM_xmlhttpRequest
8888
// @grant GM_setClipboard
@@ -758,10 +758,10 @@
758758
offset:45,
759759
hideOd:true,
760760
run:function(){
761-
if(location.href=="https://www.acgpy.com/login0202.html"){
761+
if(/www\.acgpy\.com\/login\d+\.html/.test(location.href)){
762762
var date=new Date();
763763
date.setTime(date.getTime()+14400*60*1000);
764-
document.cookie="trade0202=A32; expires="+date.toGMTString();
764+
document.cookie="trade"+location.href.replace(/.*.com\/login(\d+)\..*/,"$1")+"=A32; expires="+date.toGMTString();
765765
top.location='wpx';
766766
}
767767
var downBtn=document.querySelector("a.downbtn");

0 commit comments

Comments
 (0)