From 28661c33d2b594672da121108a016e5968572fd9 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 27 Mar 2024 11:59:08 +0100 Subject: [PATCH 1/3] Fix typos in documentation --- CONTRIBUTING.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index b43e0e7d..3ba96a68 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -60,11 +60,11 @@ perfect though, I often get it wrong myself :) I can fix it up if you make a mis - `get_queries("https://example.com/?a=5&b=10")` -> `{a: 5, b: 10}` - `remove_queries`: Removes the specified queries: - - `remove_queries("https://example.com/?a=5&b=10&c=20", ["b, c"])` -> `"https://example.com/?a=5"` + - `remove_queries("https://example.com/?a=5&b=10&c=20", ["b", "c"])` -> `"https://example.com/?a=5"` - `remove_queries("https://example.com/?a=5&b=10&c=20", "b")` -> `"https://example.com/?a=5&c=20"` - `keep_queries`: Removes every query except for the specified queries: - - `keep_queries("https://example.com/?a=5&b=10&c=20", ["b", c"])` -> `"https://example.com/?b=10&c=20"` + - `keep_queries("https://example.com/?a=5&b=10&c=20", ["b", "c"])` -> `"https://example.com/?b=10&c=20"` - `keep_queries("https://example.com/?a=5&b=10&c=20", "b")` -> `"https://example.com/?b=10"` - `keep_queries("https://example.com/?a=5&b=10&c=20", ["b", "c"], {overwrite: {"c": 1, "d": 2}})` -> `"https://example.com/?b=10&c=1&d=2"` - `keep_queries("https://example.com/?a=5&b=10", ["b", "c"], {required: ["c"]})` -> `"https://example.com/?a=5&b=10"` From 6c189db0d07b8ec2f41f685b0d49189bbb2b1724 Mon Sep 17 00:00:00 2001 From: Sunny Date: Wed, 27 Mar 2024 12:00:00 +0100 Subject: [PATCH 2/3] Add Rausgegangen support --- src/userscript.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/userscript.ts b/src/userscript.ts index 5455eb58..e62bbc0f 100644 --- a/src/userscript.ts +++ b/src/userscript.ts @@ -113349,6 +113349,17 @@ var $$IMU_EXPORT$$; return src.replace(/(\/static\/+)img\/+[^/]+\/+/, "$1original/"); } + if (domain === "imageflow.rausgegangen.de") { + // https://imageflow.rausgegangen.de/url/https%3A//s3.eu-central-1.amazonaws.com/rausgegangen/KBEXIUNKRoqU9HgdGk5z_marz-11png?width=1200&height=900&mode=crop + // https://s3.eu-central-1.amazonaws.com/rausgegangen/KBEXIUNKRoqU9HgdGk5z_marz-11png + + newsrc = src.replace(/^.*?\/url\//, ""); + newsrc = decodeuri_ifneeded(newsrc); + newsrc = remove_queries(newsrc, ["width", "height", "mode"]); + + return newsrc; + } + From b593ed590d193c110ddd051be3212775cbaa1f30 Mon Sep 17 00:00:00 2001 From: TheLastZombie Date: Wed, 27 Mar 2024 11:01:35 +0000 Subject: [PATCH 3/3] Update userscript --- userscript.user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/userscript.user.js b/userscript.user.js index 7591853c..22fcf44a 100644 --- a/userscript.user.js +++ b/userscript.user.js @@ -101757,6 +101757,14 @@ var $$IMU_EXPORT$$; // https://vogue.com.tr/static/original/22-02/14/cdior-12_v_5apr12_rex_b.jpg return src.replace(/(\/static\/+)img\/+[^/]+\/+/, "$1original/"); } + if (domain === "imageflow.rausgegangen.de") { + // https://imageflow.rausgegangen.de/url/https%3A//s3.eu-central-1.amazonaws.com/rausgegangen/KBEXIUNKRoqU9HgdGk5z_marz-11png?width=1200&height=900&mode=crop + // https://s3.eu-central-1.amazonaws.com/rausgegangen/KBEXIUNKRoqU9HgdGk5z_marz-11png + newsrc = src.replace(/^.*?\/url\//, ""); + newsrc = decodeuri_ifneeded(newsrc); + newsrc = remove_queries(newsrc, ["width", "height", "mode"]); + return newsrc; + } // -- general rules -- if (src.match(/\/ImageGen\.ashx\?/)) { // http://www.lookalikes.info/umbraco/ImageGen.ashx?image=/media/97522/nick%20hewer%20-%20mark%20brown.jpeg&width=250&constrain=true