Skip to content

Commit

Permalink
Merge branch 'master' of qsniyg.github.com:qsniyg/maxurl
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Dec 4, 2023
2 parents f788698 + 8505919 commit bd38435
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- run: |
npm install
npm run build
- uses: stefanzweifel/git-auto-commit-action@v4
- uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: Update userscript
file_pattern: userscript.user.js
11 changes: 11 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47658,6 +47658,7 @@ var $$IMU_EXPORT$$;
domain === "tent.bloatcat.tk" ||
// https://tent.bloatcat.tk/image.php?file=1593557344_4.jpg
// https://tent.bloatcat.tk/image.php?file=1593557344_0.jpg
domain === "tent.bloat.cat" ||
domain === "tn.vern.cc" ||
domain === "tent.vern.cc" ||
domain === "bandcamp.vern.cc") {
Expand Down Expand Up @@ -109260,6 +109261,16 @@ var $$IMU_EXPORT$$;
return src.replace(/(\/[0-9]+)-[ms](\.[^/.]+)(?:[?#].*)?$/, "$1-orig$2");
}

if (domain_nosub === "awork.com") {
// awork is a project management tool and uploaded assets are private. The URLs in the below example won't work but are still included for illustration purposes.
// https://name-of-workspace.awork.com/api/v1/files/85ee1659-f903-4163-9361-bedf2b242ef9/download?crop=false&width=1024&height=1024&enlarge=false&v=1701093812740
// https://name-of-workspace.awork.com/api/v1/files/85ee1659-f903-4163-9361-bedf2b242ef9/download?crop=false&enlarge=false&v=1701093812740
match = src.match(/\/api\/v1\/files\/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\/download\?/);
if (match) {
return remove_queries(src, ["width", "height"]);
}
}

if (domain_nowww === "thetv.jp") {
// https://thetv.jp/assets/v3/img/lemon_quarter.svg
if (/\/assets\/+v3\/+img\/+lemon_quarter\./.test(src))
Expand Down
10 changes: 10 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -43468,6 +43468,7 @@ var $$IMU_EXPORT$$;
domain === "tent.bloatcat.tk" ||
// https://tent.bloatcat.tk/image.php?file=1593557344_4.jpg
// https://tent.bloatcat.tk/image.php?file=1593557344_0.jpg
domain === "tent.bloat.cat" ||
domain === "tn.vern.cc" ||
domain === "tent.vern.cc" ||
domain === "bandcamp.vern.cc") {
Expand Down Expand Up @@ -98018,6 +98019,15 @@ var $$IMU_EXPORT$$;
// https://kuvat.huuto.net/v1/c026/1d43294aac58f20e7ff11105728/511967992-orig.jpg
return src.replace(/(\/[0-9]+)-[ms](\.[^/.]+)(?:[?#].*)?$/, "$1-orig$2");
}
if (domain_nosub === "awork.com") {
// awork is a project management tool and uploaded assets are private. The URLs in the below example won't work but are still included for illustration purposes.
// https://name-of-workspace.awork.com/api/v1/files/85ee1659-f903-4163-9361-bedf2b242ef9/download?crop=false&width=1024&height=1024&enlarge=false&v=1701093812740
// https://name-of-workspace.awork.com/api/v1/files/85ee1659-f903-4163-9361-bedf2b242ef9/download?crop=false&enlarge=false&v=1701093812740
match = src.match(/\/api\/v1\/files\/[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}\/download\?/);
if (match) {
return remove_queries(src, ["width", "height"]);
}
}
if (domain_nowww === "thetv.jp") {
// https://thetv.jp/assets/v3/img/lemon_quarter.svg
if (/\/assets\/+v3\/+img\/+lemon_quarter\./.test(src))
Expand Down

0 comments on commit bd38435

Please sign in to comment.