Skip to content

Commit b26c776

Browse files
committed
fix
1 parent 04160db commit b26c776

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Greasyfork Search with Sleazyfork Results include/Greasyfork Search with Sleazyfork Results include.user.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
// @name:zh-TW 大人的Greasyfork
55
// @name:ja 大人のGreasyfork
66
// @namespace hoothin
7-
// @version 0.66
7+
// @version 0.67
88
// @description Merge adult results of sleazyfork into greasyfork when the script is no longer anonymously available, add rating score and version for scripts then
99
// @description:zh-CN 在Greasyfork的搜索结果中添加Sleazyfork上的成人脚本,增加评分与版本号,并在访问匿名不可用脚本时跳转至Sleazyfork
1010
// @description:zh-TW 在Greasyfork的搜索結果中添加Sleazyfork上的成人腳本,增加評分與版本號,並在訪問匿名不可用腳本時跳轉至Sleazyfork
@@ -31,7 +31,7 @@
3131
if(!document.querySelector("#script-info") && (otherSite == "greasyfork" || document.querySelector("div.width-constraint>section>p>a"))){
3232
location.href=location.href.replace(/\/\/([^\.]+\.)?(greasyfork|sleazyfork)\.org/,"//$1"+otherSite+"\.org");
3333
}
34-
}else if(/\/(scripts|users)(\/|\?)/.test(location.href)){
34+
}else if(/\/(scripts|users)(\/|\?q=)/.test(location.href)){
3535
GM_xmlhttpRequest({
3636
method: 'GET',
3737
url: location.href.replace(/\/\/([^\.]+\.)?(greasyfork|sleazyfork)\.org/,"//$1"+otherSite+"\.org"),

0 commit comments

Comments
 (0)