Skip to content

Commit bd71f2e

Browse files
committed
fix
1 parent f70a925 commit bd71f2e

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

Easy offline/Easy offline.user.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// @namespace http://tampermonkey.net/
99
// @require https://cdn.jsdelivr.net/jquery/1.7.2/jquery.min.js
1010
// @require https://cdn.jsdelivr.net/hi-base64/0.2.0/base64.min.js
11-
// @version 1.5.1
11+
// @version 1.5.2
1212
// @author Hoothin
1313
// @mail rixixi@gmail.com
1414
// @include http*://*/*
@@ -710,7 +710,9 @@
710710
var regStr=$(configInput).val();
711711
var baiduPathStr=$(baiduPath).val();
712712
if(baiduPathStr)GM_setValue("baiduPath",baiduPathStr);
713-
if(!/^\s*$/.test(regStr)){
713+
if(/^\s*$/.test(regStr)){
714+
GM_deleteValue("eoReg");
715+
}else{
714716
var regStrs=regStr.split("\n");
715717
for(var reg of regStrs){
716718
try{

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,8 @@
5454
// @include http*://acg18.us/*
5555
// @include http*://*.acg18.us/*
5656
// @include http*://*.acg44.com/*
57-
// @include http*://zuiacg.com/*
57+
// @include http*://zuiacg.*
58+
// @include http*://www.zuiacg.*
5859
// @include http*://www.galacg.me/*
5960
// @include http*://www.mhecy.com/*
6061
// @include http*://acgzone.org/*
@@ -76,10 +77,11 @@
7677
// @include http*://htacg.cc/*
7778
// @include http*://www.htacg.cc/*
7879
// @include http*://www.xiu.moe/*
80+
// @include http*://www.cld1.net/*
7981
// @include http*://sleazyfork.org/*/scripts/*
8082
// @include http*://greasyfork.org/*/scripts/*
8183
// @include http*://*yfork.org/*/forum/*discussion*
82-
// @version 3.22.17
84+
// @version 3.22.18
8385
// @grant GM_notification
8486
// @grant GM_xmlhttpRequest
8587
// @grant GM_setClipboard
@@ -209,7 +211,7 @@
209211
},
210212
{
211213
name:"最ACG网",
212-
url:"http://zuiacg.com/",
214+
url:"http://zuiacg.cc/",
213215
regex:/zuiacg\./,
214216
hideOd:true,
215217
offset:75
@@ -226,7 +228,8 @@
226228
url:"https://www.oomoe.moe/",
227229
regex:/oomoe\.moe/,
228230
hideOd:true,
229-
offset:10
231+
offset:55,
232+
articleSel:"section.card"
230233
},
231234
{
232235
name:"ACG和谐区/里世界/毛站",
@@ -348,6 +351,7 @@
348351
regex:/l\-sj\.cc/,
349352
articleSel:"section.card",
350353
hideOd:true,
354+
offset:55,
351355
downloadUrl:/l\-sj\.cc\/download\?id=/
352356
},
353357
{
@@ -369,7 +373,7 @@
369373
{
370374
name:"咻咻动漫",
371375
url:"http://www.xiu.moe/",
372-
regex:/xiu\.moe/,
376+
regex:/xiu\.moe|cld1\.net/,
373377
contentArea:'#post-content',
374378
commArea:'commentlist',
375379
offset:55,
@@ -688,7 +692,7 @@
688692
}
689693
var downloadBtn=document.querySelector('a[data-action=download]');
690694
if(downloadBtn){
691-
if(/\.com\/download\//.test(location.href)){
695+
if(/\/download\//.test(location.href)){
692696
let cd=document.querySelector('div.single-content>p>input');
693697
if(cd){
694698
downloadBtn.href+="#"+cd.value;
@@ -823,9 +827,7 @@
823827
}
824828
}
825829
var curRegs=style.innerHTML.pmatch(/background\-image:\s*url\('?([^\')]+)'?\)/gi);
826-
for(var curReg of curRegs){
827-
bgUrls+=curReg[0]+"\n";
828-
}
830+
bgUrls=curRegs.join("\n\r")+"\n\r";
829831
var rmBg=document.querySelector("div.large");
830832
if(rmBg)bgUrls+=getComputedStyle(rmBg).backgroundImage.replace(/url\("?([^"]+)"?\)/,"$1");
831833
GM_setClipboard(bgUrls);

0 commit comments

Comments
 (0)