Skip to content

Commit

Permalink
Improve allkpop rule (fixes #1388)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Dec 14, 2024
1 parent 6bd8c5a commit 372f6f4
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 4 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
2024.11.0 (in-dev)
2024.12.0 (in-dev)

Improvements:

Expand All @@ -8,7 +8,7 @@ Bugfixes:

* Fix bad images preventing more than one fallback image from being tried

Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten, liamengland1, mantou, siloricity, adz, RAT, DoomTay, byjrg, Liz for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten, liamengland1, mantou, siloricity, adz, RAT, DoomTay, byjrg, Liz, azadandro for their contributions and reports for this release

---

Expand Down
10 changes: 9 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35248,6 +35248,9 @@ var $$IMU_EXPORT$$;
// https://mei.kuudere.pw/j0lL63uqpto-218x400.jpg
domain === "mei.kuudere.pw" ||
// thanks to anonymous for reporting:
// https://gizmodo.com/app/uploads/2020/01/omu3x1ljkuxngkz1ledn-1024x576.jpg
(domain_nowww === "gizmodo.com" && /\/app\/+uploads\//.test(src)) ||
// thanks to anonymous for reporting:
// https://cdn.entameclip.com/2024/10/pic20241023kimitoband1-300x225.jpg
// https://cdn.entameclip.com/2024/10/pic20241023kimitoband1.jpg
domain === "cdn.entameclip.com"
Expand Down Expand Up @@ -43664,7 +43667,12 @@ var $$IMU_EXPORT$$;
if (domain === "www.allkpop.com") {
// https://www.allkpop.com/upload/2018/02/af/12101614/clc.jpg
// https://www.allkpop.com/upload/2018/02/af_org/12101614/clc.jpg
return src.replace(/\/af\/([0-9]*\/[^/]*)$/, "/af_org/$1");
// thanks to azadandro on github for reporting: https://github.com/qsniyg/maxurl/issues/1388
// https://www.allkpop.com/upload/2024/12/content/141416/thumb/1734203817-aespawinter.jpg
// https://www.allkpop.com/upload/2024/12/content/141416/1734203817-aespawinter.jpg
return src
.replace(/\/af\/([0-9]*\/[^/]*)$/, "/af_org/$1")
.replace(/(\/content\/+[0-9]+\/+)thumb\/+/, "$1");
}

if (domain === "cwcontent.asiae.co.kr") {
Expand Down
10 changes: 9 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -32353,6 +32353,9 @@ var $$IMU_EXPORT$$;
// https://mei.kuudere.pw/j0lL63uqpto-218x400.jpg
domain === "mei.kuudere.pw" ||
// thanks to anonymous for reporting:
// https://gizmodo.com/app/uploads/2020/01/omu3x1ljkuxngkz1ledn-1024x576.jpg
(domain_nowww === "gizmodo.com" && /\/app\/+uploads\//.test(src)) ||
// thanks to anonymous for reporting:
// https://cdn.entameclip.com/2024/10/pic20241023kimitoband1-300x225.jpg
// https://cdn.entameclip.com/2024/10/pic20241023kimitoband1.jpg
domain === "cdn.entameclip.com") {
Expand Down Expand Up @@ -39980,7 +39983,12 @@ var $$IMU_EXPORT$$;
if (domain === "www.allkpop.com") {
// https://www.allkpop.com/upload/2018/02/af/12101614/clc.jpg
// https://www.allkpop.com/upload/2018/02/af_org/12101614/clc.jpg
return src.replace(/\/af\/([0-9]*\/[^/]*)$/, "/af_org/$1");
// thanks to azadandro on github for reporting: https://github.com/qsniyg/maxurl/issues/1388
// https://www.allkpop.com/upload/2024/12/content/141416/thumb/1734203817-aespawinter.jpg
// https://www.allkpop.com/upload/2024/12/content/141416/1734203817-aespawinter.jpg
return src
.replace(/\/af\/([0-9]*\/[^/]*)$/, "/af_org/$1")
.replace(/(\/content\/+[0-9]+\/+)thumb\/+/, "$1");
}
if (domain === "cwcontent.asiae.co.kr") {
return src
Expand Down

0 comments on commit 372f6f4

Please sign in to comment.