Skip to content

Commit ee476e3

Browse files
committed
fix
1 parent abd712b commit ee476e3

2 files changed

Lines changed: 62 additions & 12 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 25 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
// @description:zh-TW 老司機工具箱,支持琉璃神社、靈夢禦所、純愛計劃、紳士二次元、萌心次元、次元軌跡、ACG調查小隊、幻天領域、天使二次元、櫻花漫舍、風鈴窩、次元の聖光、愛彈幕、幻想次元、司機會所、裏番萌、最ACG、紳士倉庫、紳士圖書館、ACG和諧區/裏世界、寂月神社、萌幻之鄕、紳士の庭、萌口組、九妖萌、CE家族社、喵窩、次元老司機、紳士ACG社等,神秘代碼轉換成下載鏈接,網盤自動填寫提取密碼,F8、Shift+F8站點切換,Alt+F8列表瀏覽,左右方向鍵文章跳轉,Ctrl+左右快捷翻頁,Ctrl+上下跳入跳出,下載鏈接嗅探,繞過重定向跳轉,各種和諧補丁
1010
// @description:ja 琉璃神社工具セット、秋の名山老運転手専用
1111
// @author hoothin
12-
// @icon https://www.liuli.in/favicon.ico
12+
// @icon https://www.liuli.uk/favicon.ico
1313
// @include http*://www.hacg.*/wordpress/*
1414
// @include http*://hacg.*/wordpress/*
1515
// @include http*://loli.cool/*
@@ -78,6 +78,9 @@
7878
// @include http*://jiyue.*
7979
// @include http*://www.moe-acg.*/*
8080
// @include http*://huan.moe*
81+
// @include http*://*.hmoe.moe/*
82+
// @include http*://*.hentaiclub.net*
83+
// @include http*://*.sshs.cc/*
8184
// @include http*://www.mygalgame.com/*
8285
// @include http*://www.mmgal.com/*
8386
// @include http*://htai.*
@@ -104,7 +107,7 @@
104107
// @include http*://greasyfork.org/*/scripts/*
105108
// @include http*://sleazyfork.org/*/forum/*discussion*
106109
// @include http*://greasyfork.org/*/forum/*discussion*
107-
// @version 3.22.62
110+
// @version 3.22.63
108111
// @grant GM_notification
109112
// @grant GM_xmlhttpRequest
110113
// @grant GM_setClipboard
@@ -115,8 +118,6 @@
115118
// @require https://greasyfork.org/scripts/23522/code/od.js?version=598400
116119
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js
117120
// @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js
118-
// @updateURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js
119-
// @downloadURL https://greasyfork.org/scripts/23316/code/HacgGodTurn.user.js
120121
// @license MIT License
121122
// @connect tts.baidu.com
122123
// @compatible chrome
@@ -150,7 +151,7 @@
150151
sites:[
151152
{
152153
name:"琉璃神社",
153-
url:"https://www.liuli.in/wp/",
154+
url:"https://www.liuli.uk/wp/",
154155
regex:/hacg\.|llss\.|liuli\./,
155156
run:function(){
156157
var feiZao,feiZaos=document.querySelectorAll("p1"),i;
@@ -562,11 +563,11 @@
562563
},
563564
{
564565
name:"萌幻之乡",
565-
url:"https://huan.moe/",
566-
regex:/moe-acg\.|huan\.moe/,
566+
url:"https://www.hmoe.moe/",
567+
regex:/moe-acg\.|huan\.moe|hmoe\.moe/,
567568
offset:55,
568569
hideOd:true,
569-
downloadUrl:/moe-acg\..*\/download/,
570+
downloadUrl:/(moe-acg|hmoe\.moe)\..*\/download/,
570571
articleSel:"section.card"
571572
},
572573
{
@@ -787,6 +788,17 @@
787788
hideOd:true,
788789
downloadUrl:/htacg\.cc\/download\?id/
789790
},
791+
{
792+
name:"绅士会所",
793+
url:"https://www.hentaiclub.net/",
794+
regex:/hentaiclub\.net/,
795+
articleSel:"article",
796+
offset:20,
797+
run:function(){
798+
var dlBox=document.querySelector("#dl-box");
799+
if(dlBox)document.querySelector("#dl-box").style.display="block";
800+
}
801+
},
790802
{
791803
name:"绅士交易",
792804
url:"https://www.acgpy.net/wpx/",
@@ -982,7 +994,7 @@
982994
disableSites:/hacg.*about\.html/,
983995
imgRegs:[[/^(?:https:)?(\/\/img\.2dfan|www\.moxtu\.cc|(?:pic|tc)\.(?:ffsky|rpgsky)|\/\/i\.tianshi\.info)/,'http:$1'],[/http(:\/\/(?:[^\.]*\.)?loli\.io)/,'https$1'],[/^https:\/\/galacg.me/,'https://www.galacg.me/'],[/^http:\/\/www\.moepicx\.cc/,'https://www.moepicx.cc']]
984996
};
985-
if (!Array.prototype.findSite) {
997+
/*if (!Array.prototype.findSite) {
986998
Array.prototype.findSite = function (siteName) {
987999
var arr = this;
9881000
for (var i = 0, length = arr.length; i < length; i++) {
@@ -991,7 +1003,7 @@
9911003
}
9921004
}
9931005
};
994-
}
1006+
}*/
9951007

9961008
var t, curSite, curArticle, siteListHtml;
9971009
var originTitile = document.title;
@@ -1055,9 +1067,10 @@
10551067
}
10561068
return;
10571069
}else if(location.hostname=="pan.baidu.com"){
1058-
if(location.hash.slice(1)){
1070+
var submitBtn=document.querySelector('.g-button,#submitBtn');
1071+
if(location.hash.slice(1) && submitBtn){
10591072
document.querySelector(".pickpw input,#accessCode").value=decodeURI(location.hash.slice(1).split("?")[0]);
1060-
document.querySelector('.g-button,#submitBtn').click();
1073+
submitBtn.click();
10611074
}
10621075
return;
10631076
}else if(config.disableSites.test(location.href)){

批量设置标签.js

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
var uids=[];[].forEach.call(document.querySelectorAll("td:first-child:not(.is-hidden)"), function(e){uids.push(e.innerText)});console.log(uids.join(","));
2+
3+
function Ajax(type, url, data, success, failed){
4+
var xhr = null;
5+
if(window.XMLHttpRequest){
6+
xhr = new XMLHttpRequest();
7+
}
8+
if(typeof data == 'object'){
9+
var str = '';
10+
for(var key in data){
11+
str += key+'='+data[key]+'&';
12+
}
13+
data = str.replace(/&$/, '');
14+
}
15+
if(type.toUpperCase() == 'POST'){
16+
xhr.open('POST', url, true);
17+
xhr.setRequestHeader("Content-type", "application/json;charset=utf-8");
18+
xhr.send(data);
19+
}
20+
xhr.onreadystatechange = function(){
21+
if(xhr.readyState == 4){
22+
if(xhr.status == 200){
23+
success(xhr.responseText);
24+
} else {
25+
if(failed){
26+
failed(xhr.status);
27+
}
28+
}
29+
}
30+
}
31+
}
32+
var data={user_ids: [], tag_ids: [1]};
33+
Ajax('post', '/customer/admin/userTag/batchAddUserTag', JSON.stringify(data), function(data){
34+
console.log(data);
35+
}, function(error){
36+
console.log(error);
37+
});

0 commit comments

Comments
 (0)