Skip to content

Commit 97a586b

Browse files
committed
fix
1 parent eeb8db8 commit 97a586b

2 files changed

Lines changed: 51 additions & 21 deletions

File tree

HacgGodTurn/HacgGodTurn.user.js

Lines changed: 47 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,12 @@
1414
// @include http*://hacg.*/wordpress/*
1515
// @include http*://www.hacg.*/wp/*
1616
// @include http*://hacg.*/wp/*
17+
// @include http*://loli.cool/*
18+
// @include http*://www.nicemoe.*
1719
// @include http*://www.hacg.lol/*
1820
// @include http*://hacg.lol/*
1921
// @include http*://hacg.riwee.com/*
22+
// @include http*://9iacg.*
2023
// @include http*://hacg.me/*
2124
// @include http*://hacg.in/*
2225
// @include http*://hacg.be/*
@@ -45,11 +48,12 @@
4548
// @include http*://www.acgnz.cc/*
4649
// @include http*://nacg.me/*
4750
// @include http*://www.tianshit.com/*
48-
// @include http*://www.oomoe.moe/*
51+
// @include http*://www.tianshif.com/*
52+
// @include http*://www.oomoe.*
4953
// @include http*://www.kaze5.com/*
5054
// @include http*://www.acg15.com/*
5155
// @include http*://www.acglover.*
52-
// @include http*://lifanmoe.com/*
56+
// @include http*://lifanmoe.*
5357
// @include http*://www.idanmu.*
5458
// @include http*://*.sijihuisuo.club/*
5559
// @include http*://sijihuisuo.club/*
@@ -88,7 +92,7 @@
8892
// @include http*://greasyfork.org/*/scripts/*
8993
// @include http*://sleazyfork.org/*/forum/*discussion*
9094
// @include http*://greasyfork.org/*/forum/*discussion*
91-
// @version 3.22.43
95+
// @version 3.22.45
9296
// @grant GM_notification
9397
// @grant GM_xmlhttpRequest
9498
// @grant GM_setClipboard
@@ -323,8 +327,8 @@
323327
},
324328
{
325329
name:"天使二次元",
326-
url:"https://www.tianshit.com/",
327-
regex:/tianshit\./,
330+
url:"https://www.tianshif.com/",
331+
regex:/tianshi.\./,
328332
contentArea:'.article-content'
329333
},
330334
{
@@ -350,9 +354,9 @@
350354
},
351355
{
352356
name:"里番萌",
353-
url:"http://lifanmoe.com/",
357+
url:"http://lifanmoe.mobi/",
354358
regex:/lifanmoe\./,
355-
downloadUrl:/lifanmoe\.com\/download/,
359+
downloadUrl:/lifanmoe\.mobi\/download/,
356360
offset:55,
357361
articleSel:"section.card"
358362
},
@@ -482,8 +486,8 @@
482486
},
483487
{
484488
name:"樱花漫舍",
485-
url:"https://www.oomoe.moe/",
486-
regex:/oomoe\.moe/,
489+
url:"https://www.oomoe.org/",
490+
regex:/oomoe\./,
487491
hideOd:true,
488492
offset:55,
489493
articleSel:"section.card"
@@ -810,6 +814,40 @@
810814
regex:/sexacg\./,
811815
contentArea:'article',
812816
commArea:'su-quote-inner'
817+
},
818+
{
819+
name:"梦幻二次元",
820+
url:"http://www.mhecy.com/",
821+
regex:/mhecy\./,
822+
downloadUrl:/www\.mhecy\.com\/\?download\?id=/,
823+
hideOd:true,
824+
offset:55,
825+
articleSel:"section.card"
826+
},
827+
{
828+
name:"里次元",
829+
url:"http://loli.cool/",
830+
regex:/loli\.cool/,
831+
hideOd:true,
832+
offset:55,
833+
articleSel:"article.post",
834+
},
835+
{
836+
name:"玖爱萌",
837+
url:"https://9iacg.com/",
838+
regex:/9iacg\./,
839+
hideOd:true,
840+
offset:55,
841+
articleSel:"article.card",
842+
},
843+
{
844+
name:"好萌",
845+
url:"https://www.nicemoe.com/",
846+
regex:/nicemoe\./,
847+
hideOd:true,
848+
offset:55,
849+
downloadUrl:/\/\?download\?id=/,
850+
articleSel:"section.card"
813851
}
814852
/*{
815853
name:"咻咻动漫",
@@ -819,15 +857,6 @@
819857
commArea:'commentlist',
820858
offset:55,
821859
articleSel:"article,.article-link>li"
822-
},
823-
{
824-
name:"梦幻二次元",
825-
url:"http://www.mhecy.com/",
826-
regex:/mhecy\./,
827-
downloadUrl:/www\.mhecy\.com\/\?page_id=\d+/,
828-
hideOd:true,
829-
offset:55,
830-
articleSel:"section.card"
831860
}*/
832861
],
833862
rocketReg:/magnet:\?xt|pan\.baidu\.com\/s|yunpan\.cn|howfile\.com\/file|mega\.|ed2k:\/\/\|file|bt\.cosxcos\.com\/view|du\.acgget\.com\/go\/|\.mediafire\.com\/download\/|\.torrent$/,

Picviewer CE+/Picviewer CE+.user.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,7 +1011,7 @@
10111011
// 通配型规则,无视站点.
10121012
var tprules=[
10131013
function(img, a) { // 解决新的dz论坛的原图获取方式.
1014-
var regs = [/(.+\/attachments?\/.+)\.thumb\.\w{2,5}$/i,/(wp-content\/uploads\/.*)\-\d+x\d+/i,/.*(?:url|src)=(https?:\/\/.*\.(?:jpg|jpeg|png|gif|bmp)).*/i];
1014+
var regs = [/(.+\/attachments?\/.+)\.thumb\.\w{2,5}$/i,/(wp-content\/uploads\/.*)\-\d+x\d+/i,/.*(?:url|src)=(https?:\/\/.*\.(?:jpg|jpeg|png|gif|bmp)).*/i,/.*thumb\.php\?src=([^&]*).*/i];
10151015
var oldsrc = this.src,newsrc = this.src;
10161016
if (oldsrc){
10171017
for(let reg of regs){
@@ -1021,7 +1021,7 @@
10211021
}
10221022
}
10231023
var original=this.getAttribute('data-original');
1024-
if(original)return original;
1024+
if(original && original!=oldsrc)return original;
10251025
else if(/\.sinaimg\.(cn|com)\/mw\d+\//.test(oldsrc)){
10261026
newsrc=oldsrc.replace(/.*(https?:\/\/[^\.]+\.sinaimg\.(cn|com))\/mw\d+\//,"$1/large/");
10271027
}else if(/gravatar\.com\/avatar\/.*[\?&]s=/.test(oldsrc)){
@@ -6476,6 +6476,7 @@ left: -45px;\
64766476
var shiftRotateStep=prefs.imgWindow.shiftRotateStep / (180/Math.PI);//转成弧度
64776477

64786478
var moveHandler=function(e){
6479+
self.rotateIndicator.style.display='block';
64796480
var radians=lastRotatedRadians + Math.atan2( e.clientY - origin.y, e.clientX - origin.x );
64806481
if(radians>=2*PI){
64816482
radians-=2*PI;
@@ -7113,7 +7114,7 @@ left: -45px;\
71137114
};
71147115

71157116
var rIS=this.rotateIndicator.style;
7116-
rIS.display='block';
7117+
//rIS.display='block';
71177118
rIS.top=origin.y + 'px';
71187119
rIS.left=origin.x + 'px';
71197120

0 commit comments

Comments
 (0)