Skip to content

Commit e19f2c3

Browse files
committed
fix
1 parent d49a44e commit e19f2c3

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.86
7+
// @version 0.87
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
@@ -28,7 +28,7 @@
2828
if(document.querySelector('span.sign-in-link')){
2929
var otherSite=/greasyfork\.org/.test(location.hostname)?"sleazyfork":"greasyfork";
3030
if(/scripts\/\d+/.test(location.href)){
31-
if(!document.querySelector("#script-info") && (otherSite == "greasyfork" || document.querySelector("div.width-constraint>section>p>a"))){
31+
if(!document.querySelector("#script-info") && (otherSite == "greasyfork" || document.querySelector("div.width-constraint>section>p>a").href.indexOf("sign_in")!=-1)){
3232
location.href=location.href.replace(/\/\/([^\.]+\.)?(greasyfork|sleazyfork)\.org/,"//$1"+otherSite+"\.org");
3333
}
3434
}else if(/\/(scripts|users)(\/|.*(\?|&)q=|.*\?set=)/.test(location.href)){

0 commit comments

Comments
 (0)