Skip to content

Commit 8393f2c

Browse files
committed
fix
1 parent ac37f4a commit 8393f2c

1 file changed

Lines changed: 27 additions & 1 deletion

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
// @include http*://yui-nya.com/*
7373
// @include http*://www.l-sj.cc/*
7474
// @include http*://htacg.cc/*
75-
// @version 3.20.76
75+
// @version 3.20.77
7676
// @grant GM_notification
7777
// @grant GM_xmlhttpRequest
7878
// @grant GM_setClipboard
@@ -740,6 +740,32 @@
740740
if(isHttps)addInsertHandler([["img"],[['p(:\\\/\\\/static\.gmgard\.com)','ps$1']]]);
741741
curSite.preRocket=function(){unsafeWindow.$('#dllist a').mouseenter();};
742742
break;
743+
case "绅士交易":
744+
var downBtn=document.querySelector("a.downbtn");
745+
if(downBtn){
746+
GM_xmlhttpRequest({
747+
method: 'GET',
748+
url: downBtn.href,
749+
onload: function(d) {
750+
var doc = null;
751+
try {
752+
doc = document.implementation.createHTMLDocument('');
753+
doc.documentElement.innerHTML = d.responseText;
754+
}
755+
catch (e) {
756+
console.log('parse error');
757+
}
758+
if (!doc) {
759+
return;
760+
}
761+
downBtn.parentNode.insertBefore(doc.querySelector("div.list"),downBtn);
762+
process();
763+
},
764+
onerror: function(e) {
765+
console.log(e);
766+
}
767+
});
768+
}
743769
}
744770
}
745771
if(curSite && curSite.downloadUrl && curSite.downloadUrl.test(location.href)){

0 commit comments

Comments
 (0)