Skip to content

Commit

Permalink
Support tumblbug (fixes #1382)
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Nov 28, 2024
1 parent b543911 commit 71abbb3
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
10 changes: 9 additions & 1 deletion src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -96682,6 +96682,13 @@ var $$IMU_EXPORT$$;
// atob:
// = {"bucket":"gamerch-img-contents","key":"wiki\/3823\/entry\/1647314096.jpg","edits":{"webp":{"quality":85},"toFormat":"webp","resize":{"width":200,"fit":"cover"}}}
domain === "cdn.gamerch.com" ||
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1382
// https://img.tumblbug.com/eyJidWNrZXQiOiJ0dW1ibGJ1Zy1pbWctYXNzZXRzIiwia2V5Ijoic3RvcnkvNGRjNWQzMjItZDRhMy00NGY3LWIwZmItNDhjZTFiNGVkMDk2LzMyMmIzMzlkLTc3YmEtNGJhZS1iYWI1LWFhMjcwNjE5MWJhZi5qcGciLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjEyNDAsIndpdGhvdXRFbmxhcmdlbWVudCI6dHJ1ZX19fQ==
// https://img.tumblbug.com/eyJidWNrZXQiOiJ0dW1ibGJ1Zy1pbWctYXNzZXRzIiwia2V5Ijoic3RvcnkvNGRjNWQzMjItZDRhMy00NGY3LWIwZmItNDhjZTFiNGVkMDk2LzMyMmIzMzlkLTc3YmEtNGJhZS1iYWI1LWFhMjcwNjE5MWJhZi5qcGcifQ==
// https://img.tumblbug.com/story/4dc5d322-d4a3-44f7-b0fb-48ce1b4ed096/322b339d-77ba-4bae-bab5-aa2706191baf.jpg
// atob:
// = {"bucket":"tumblbug-img-assets","key":"story/4dc5d322-d4a3-44f7-b0fb-48ce1b4ed096/322b339d-77ba-4bae-bab5-aa2706191baf.jpg","edits":{"resize":{"width":1240,"withoutEnlargement":true}}}
domain === "img.tumblbug.com" ||
// thanks to anonymous for reporting:
// https://images.ams-prd.blv.cloud/eyJidWNrZXQiOiJpbWFnZXMtcHJkLTFvNHV6OXpieHd6cDF1Ym0iLCJrZXkiOiJkYTkwNjE5Yy0yOGVkLTRjMDYtOTkzNi03Y2EzNGE1NjI1MzQiLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjM2MCwiaGVpZ2h0IjozNjB9fX0=
// https://images.ams-prd.blv.cloud/eyJidWNrZXQiOiJpbWFnZXMtcHJkLTFvNHV6OXpieHd6cDF1Ym0iLCJrZXkiOiJkYTkwNjE5Yy0yOGVkLTRjMDYtOTkzNi03Y2EzNGE1NjI1MzQifQ==
Expand All @@ -96695,7 +96702,8 @@ var $$IMU_EXPORT$$;
match = src.match(/^([a-z]+:\/\/[^/]+\/+(?:resize\/+)?)([^-_/.]{20,})(?:[?#].*)?$/);
if (match) {
let orig_map = {
"cdn.gamerch.com": "https://cdn.gamerch.com/contents/"
"cdn.gamerch.com": "https://cdn.gamerch.com/contents/",
"img.tumblbug.com": "https://img.tumblbug.com/"
};

try {
Expand Down
10 changes: 9 additions & 1 deletion userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -87016,6 +87016,13 @@ var $$IMU_EXPORT$$;
// atob:
// = {"bucket":"gamerch-img-contents","key":"wiki\/3823\/entry\/1647314096.jpg","edits":{"webp":{"quality":85},"toFormat":"webp","resize":{"width":200,"fit":"cover"}}}
domain === "cdn.gamerch.com" ||
// thanks to Froktime on github: https://github.com/qsniyg/maxurl/issues/1382
// https://img.tumblbug.com/eyJidWNrZXQiOiJ0dW1ibGJ1Zy1pbWctYXNzZXRzIiwia2V5Ijoic3RvcnkvNGRjNWQzMjItZDRhMy00NGY3LWIwZmItNDhjZTFiNGVkMDk2LzMyMmIzMzlkLTc3YmEtNGJhZS1iYWI1LWFhMjcwNjE5MWJhZi5qcGciLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjEyNDAsIndpdGhvdXRFbmxhcmdlbWVudCI6dHJ1ZX19fQ==
// https://img.tumblbug.com/eyJidWNrZXQiOiJ0dW1ibGJ1Zy1pbWctYXNzZXRzIiwia2V5Ijoic3RvcnkvNGRjNWQzMjItZDRhMy00NGY3LWIwZmItNDhjZTFiNGVkMDk2LzMyMmIzMzlkLTc3YmEtNGJhZS1iYWI1LWFhMjcwNjE5MWJhZi5qcGcifQ==
// https://img.tumblbug.com/story/4dc5d322-d4a3-44f7-b0fb-48ce1b4ed096/322b339d-77ba-4bae-bab5-aa2706191baf.jpg
// atob:
// = {"bucket":"tumblbug-img-assets","key":"story/4dc5d322-d4a3-44f7-b0fb-48ce1b4ed096/322b339d-77ba-4bae-bab5-aa2706191baf.jpg","edits":{"resize":{"width":1240,"withoutEnlargement":true}}}
domain === "img.tumblbug.com" ||
// thanks to anonymous for reporting:
// https://images.ams-prd.blv.cloud/eyJidWNrZXQiOiJpbWFnZXMtcHJkLTFvNHV6OXpieHd6cDF1Ym0iLCJrZXkiOiJkYTkwNjE5Yy0yOGVkLTRjMDYtOTkzNi03Y2EzNGE1NjI1MzQiLCJlZGl0cyI6eyJyZXNpemUiOnsid2lkdGgiOjM2MCwiaGVpZ2h0IjozNjB9fX0=
// https://images.ams-prd.blv.cloud/eyJidWNrZXQiOiJpbWFnZXMtcHJkLTFvNHV6OXpieHd6cDF1Ym0iLCJrZXkiOiJkYTkwNjE5Yy0yOGVkLTRjMDYtOTkzNi03Y2EzNGE1NjI1MzQifQ==
Expand All @@ -87029,7 +87036,8 @@ var $$IMU_EXPORT$$;
match = src.match(/^([a-z]+:\/\/[^/]+\/+(?:resize\/+)?)([^-_/.]{20,})(?:[?#].*)?$/);
if (match) {
var orig_map = {
"cdn.gamerch.com": "https://cdn.gamerch.com/contents/"
"cdn.gamerch.com": "https://cdn.gamerch.com/contents/",
"img.tumblbug.com": "https://img.tumblbug.com/"
};
try {
var host = match[1];
Expand Down

0 comments on commit 71abbb3

Please sign in to comment.