|
49 | 49 | // @include http*://htai.* |
50 | 50 | // @include http*://gmgard.com/* |
51 | 51 | // @include http*://*.gmgard.com/* |
52 | | -// @version 3.20.43 |
| 52 | +// @version 3.20.45 |
53 | 53 | // @grant GM_notification |
54 | 54 | // @grant GM_xmlhttpRequest |
55 | 55 | // @run-at document-end |
56 | | -// @require https://greasyfork.org/scripts/23522/code/od.js?version=158958 |
| 56 | +// @require https://greasyfork.org/scripts/23522/code/od.js?version=159035 |
57 | 57 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/components/core-min.js |
58 | 58 | // @require https://cdn.jsdelivr.net/crypto-js/3.1.2/rollups/aes.js |
59 | 59 | // @license MIT License |
|
80 | 80 | { |
81 | 81 | name:"sexacg", |
82 | 82 | url:"https://sexacg.com/", |
83 | | - regex:/sexacg\./ |
| 83 | + regex:/sexacg\./, |
| 84 | + contentArea:'article', |
| 85 | + commArea:'su-quote-inner' |
84 | 86 | }, |
85 | 87 | { |
86 | 88 | name:"acglover", |
|
92 | 94 | name:"acgtf", |
93 | 95 | url:"https://www.acg.tf/", |
94 | 96 | regex:/acg\.tf/, |
95 | | - offset:50 |
| 97 | + offset:50, |
| 98 | + articleSel:"div.dt-news-post" |
96 | 99 | }, |
97 | 100 | { |
98 | 101 | name:"tianshit", |
99 | 102 | url:"https://www.tianshit.com/", |
100 | | - regex:/tianshit\./ |
| 103 | + regex:/tianshit\./, |
| 104 | + contentArea:'.article-content' |
101 | 105 | }, |
102 | 106 | { |
103 | 107 | name:"acggj", |
104 | 108 | url:"https://www.acggj.com/", |
105 | 109 | regex:/www\.(acggj|acg44)\./, |
106 | 110 | hideOd:true, |
107 | 111 | bbs:/bbs\.acggj\./, |
108 | | - offset:55 |
| 112 | + offset:55, |
| 113 | + articleSel:"section.card" |
109 | 114 | }, |
110 | 115 | { |
111 | 116 | name:"acg12", |
112 | 117 | url:"https://acg12.com/", |
113 | 118 | regex:/acg12\./, |
114 | 119 | hideOd:true, |
115 | 120 | downloadUrl:/acg12\.com\/download/, |
116 | | - offset:55 |
| 121 | + offset:55, |
| 122 | + articleSel:"section.card" |
117 | 123 | }, |
118 | 124 | { |
119 | 125 | name:"acg15", |
120 | 126 | url:"http://www.acg15.com/", |
121 | 127 | regex:/acg15\.com/, |
122 | 128 | hideOd:true, |
123 | | - offset:55 |
| 129 | + offset:55, |
| 130 | + articleSel:"section.card" |
124 | 131 | }, |
125 | 132 | { |
126 | 133 | name:"lifan", |
127 | 134 | url:"http://lifanmoe.com/", |
128 | 135 | regex:/lifanmoe\./, |
129 | 136 | downloadUrl:/lifanmoe\.com\/download/, |
130 | | - offset:55 |
| 137 | + offset:55, |
| 138 | + articleSel:"section.card" |
131 | 139 | }, |
132 | 140 | { |
133 | 141 | name:"idanmu", |
|
140 | 148 | url:"https://www.sijihuisuo.club/", |
141 | 149 | regex:/sijihuisuo\.club/, |
142 | 150 | innerPage:/sijihuisuo\.club\/(sj\/\d|\?p=\d)/, |
143 | | - offset:115 |
| 151 | + offset:115, |
| 152 | + contentArea:".ds-comments" |
144 | 153 | }, |
145 | 154 | { |
146 | 155 | name:"acg18", |
|
159 | 168 | name:"galacg", |
160 | 169 | url:"http://www.galacg.me/", |
161 | 170 | regex:/galacg\./, |
162 | | - hideOd:true |
| 171 | + hideOd:true, |
| 172 | + articleSel:"div.article" |
163 | 173 | }, |
164 | 174 | { |
165 | 175 | name:"mhecy", |
166 | 176 | url:"http://www.mhecy.com/", |
167 | 177 | regex:/mhecy\./, |
168 | 178 | downloadUrl:/www\.mhecy\.com\/\?page_id=\d+/, |
169 | 179 | hideOd:true, |
170 | | - offset:55 |
| 180 | + offset:55, |
| 181 | + articleSel:"section.card" |
171 | 182 | }, |
172 | 183 | { |
173 | 184 | name:"oomoe", |
|
179 | 190 | { |
180 | 191 | name:"acgzone", |
181 | 192 | url:"http://www.uraban.me/", |
182 | | - regex:/acgzone\.org|uraban\.me/ |
| 193 | + regex:/acgzone\.org|uraban\.me/, |
| 194 | + contentArea:'article' |
183 | 195 | }, |
184 | 196 | { |
185 | 197 | name:"acgmoon", |
186 | 198 | url:"https://acgmoon.org/", |
187 | 199 | regex:/acgmoon\.(org|com)/, |
188 | | - offset:50 |
| 200 | + offset:50, |
| 201 | + contentArea:"div.post-content" |
189 | 202 | }, |
190 | 203 | { |
191 | 204 | name:"moe-acg", |
192 | 205 | url:"https://www.moe-acg.cc/", |
193 | 206 | regex:/moe-acg\./, |
194 | 207 | offset:55, |
195 | 208 | hideOd:true, |
196 | | - downloadUrl:/moe-acg\.cc\/download/ |
| 209 | + downloadUrl:/moe-acg\.cc\/download/, |
| 210 | + articleSel:"section.card" |
197 | 211 | }, |
198 | 212 | { |
199 | 213 | name:"htai", |
200 | 214 | url:"http://htai.co/", |
201 | | - regex:/htai\.(co|me)/ |
| 215 | + regex:/htai\.(co|me)/, |
| 216 | + contentArea:"div.post_content", |
| 217 | + commArea:'commentlist' |
202 | 218 | }, |
203 | 219 | { |
204 | 220 | name:"gmgard", |
205 | 221 | url:"https://gmgard.com/", |
206 | | - regex:/gmgard\.com/ |
| 222 | + regex:/gmgard\.com/, |
| 223 | + articleSel:"div.post" |
207 | 224 | }, |
208 | 225 | { |
209 | 226 | name:"mygalgame", |
210 | 227 | url:"https://www.mygalgame.com/", |
211 | | - regex:/mygalgame\.com/ |
| 228 | + regex:/mygalgame\.com/, |
| 229 | + articleSel:".article", |
| 230 | + commArea:'commentlist' |
212 | 231 | }, |
213 | 232 | { |
214 | 233 | name:"acgnz", |
215 | 234 | url:"http://www.acgnz.cc/", |
216 | 235 | regex:/acgnz\.cc/, |
217 | 236 | hideOd:true, |
218 | 237 | offset:55, |
219 | | - downloadUrl:/acgnz\.cc\/download/ |
| 238 | + downloadUrl:/acgnz\.cc\/download/, |
| 239 | + articleSel:"section.card" |
220 | 240 | }, |
221 | 241 | { |
222 | 242 | name:"moxacg", |
223 | 243 | url:"http://www.moxacg.com/", |
224 | 244 | regex:/moxacg\./, |
225 | 245 | hideOd:true, |
226 | | - offset:55 |
| 246 | + offset:55, |
| 247 | + articleSel:"section.card" |
227 | 248 | }, |
228 | 249 | { |
229 | 250 | name:"nacg", |
230 | 251 | url:"http://nacg.me/", |
231 | 252 | regex:/nacg\.me/, |
232 | 253 | hideOd:true, |
233 | | - offset:65 |
| 254 | + offset:65, |
| 255 | + contentArea:'.content' |
234 | 256 | } |
235 | 257 | ], |
236 | 258 | 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$/, |
|
249 | 271 | } |
250 | 272 |
|
251 | 273 | var t, curSite, curArticle; |
252 | | - var contentArea='.entry-content', commArea="comment-content"; |
253 | 274 | var originTitile = document.title; |
254 | | - var articleSel="article"; |
255 | 275 | var isHttps=location.protocol=="https:"; |
256 | 276 | if(isHttps){ |
257 | 277 | var refMeta = document.createElement('meta'); |
|
269 | 289 | break; |
270 | 290 | } |
271 | 291 | } |
| 292 | + var contentArea=curSite&&curSite.contentArea?curSite.contentArea:'.entry-content', commArea=curSite&&curSite.commArea?curSite.commArea:"comment-content",articleSel=curSite&&curSite.articleSel?curSite.articleSel:"article"; |
272 | 293 |
|
273 | 294 | if(/\.baidu\./.test(location.href)){ |
274 | 295 | if(location.hash.slice(1)){ |
|
281 | 302 | }else if(curSite){ |
282 | 303 | switch(curSite.name){ |
283 | 304 | case "acgtf": |
284 | | - articleSel="div.dt-news-post"; |
285 | 305 | var content=document.querySelector('.entry-content'); |
286 | 306 | if(content){ |
287 | 307 | var plist = content.querySelectorAll("p"); |
|
338 | 358 | createBlockBtn(); |
339 | 359 | break; |
340 | 360 | case "acg12": |
341 | | - articleSel="section.card"; |
342 | 361 | if(isHttps) |
343 | 362 | addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|static\\\.)?acg12','ps:$1$2acg12']]]); |
344 | 363 | break; |
345 | 364 | case "sijihuisuo": |
346 | 365 | if(curSite.innerPage.test(location.href)){ |
347 | | - contentArea=".ds-comments"; |
348 | 366 | t=window.setInterval(function(){ |
349 | 367 | if(document.querySelector(".ds-comments")){ |
350 | 368 | clearInterval(t); |
|
392 | 410 | } |
393 | 411 | if(isHttps)changeUrl(true,[["a","iframe"],[['http:','https:']]]); |
394 | 412 | break; |
395 | | - case "sexacg": |
396 | | - contentArea='article'; |
397 | | - commArea='su-quote-inner'; |
398 | | - break; |
399 | 413 | case "moxacg": |
400 | | - articleSel="section.card"; |
401 | 414 | if(isHttps)addInsertHandler([["body","a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?moxacg','ps:$1$2moxacg']]]); |
402 | 415 | break; |
403 | | - case "lifan": |
404 | | - articleSel="section.card"; |
405 | | - break; |
406 | | - case "moe-acg": |
407 | | - articleSel="section.card"; |
408 | | - break; |
409 | 416 | case "acggj": |
410 | | - articleSel="section.card"; |
411 | 417 | if(isHttps){ |
412 | 418 | changeUrl(true,[["a","img","script","link"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.|bbs\\\.)?acggj','ps:$1$2acggj']]]); |
413 | 419 | var baseUrl=document.querySelector('base'); |
|
421 | 427 | }*/ |
422 | 428 | break; |
423 | 429 | case "acgnz": |
424 | | - articleSel="section.card"; |
425 | 430 | if(isHttps)addInsertHandler([["a","img","link","script"],[['p:(\\\/\\\/|\\\\\\/\\\\\\/)(www\\\.)?acgnz','ps:$1$2acgnz']]]); |
426 | 431 | break; |
427 | | - case "nacg": |
428 | | - contentArea='.content'; |
429 | | - break; |
430 | | - case "tianshit": |
431 | | - contentArea='.article-content'; |
432 | | - break; |
433 | 432 | case "acglover": |
434 | 433 | changeUrl(true,[["a","img"],[['acglover\\\.net','acglover\\\.top']]]); |
435 | 434 | break; |
|
497 | 496 | } |
498 | 497 | } |
499 | 498 | break; |
500 | | - case "galacg": |
501 | | - articleSel="div.article"; |
502 | | - break; |
503 | 499 | case "acgmoon": |
504 | | - contentArea="div.post-content"; |
505 | 500 | var postContent=document.querySelector("div.post-content"); |
506 | 501 | if(postContent && postContent.classList.contains("hexie")){ |
507 | 502 | var hexieBtn=document.createElement("button"); |
|
529 | 524 | } |
530 | 525 | } |
531 | 526 | break; |
532 | | - case "acg15": |
533 | | - articleSel="section.card"; |
534 | | - break; |
535 | | - case "acgzone": |
536 | | - contentArea='article'; |
537 | | - break; |
538 | | - case "mhecy": |
539 | | - articleSel="section.card"; |
540 | | - break; |
541 | 527 | case "acg18": |
542 | 528 | changeUrl(true,[["a"],[['https?:\\\/\\\/[^\\\.]*(\\\.)?acg18\\\.us\\\/go\\\/\\\?url=','']]]); |
543 | 529 | break; |
544 | | - case "htai": |
545 | | - contentArea="div.post_content"; |
546 | | - commArea='commentlist'; |
547 | | - break; |
548 | 530 | case "mygalgame": |
549 | | - commArea='commentlist'; |
550 | | - articleSel=".article"; |
551 | 531 | var downBtn=document.querySelector("a.hint--right"); |
552 | 532 | if(downBtn){ |
553 | 533 | var innBtn=downBtn.querySelector(".btn-danger"); |
|
577 | 557 | break; |
578 | 558 | case "gmgard": |
579 | 559 | if(isHttps)addInsertHandler([["img"],[['p(:\\\/\\\/static\.gmgard\.com)','ps$1']]]); |
580 | | - articleSel="div.post"; |
581 | 560 | curSite.preRocket=function(){unsafeWindow.$('#dllist a').mouseenter();}; |
582 | 561 | break; |
583 | 562 | } |
|
0 commit comments