Skip to content

Commit

Permalink
Support twpl.togetter.com
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Oct 7, 2023
1 parent 79492bd commit 542907a
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82951,6 +82951,15 @@ var $$IMU_EXPORT$$;
}
}

if (domain === "twpl.togetter.com") {
// thanks to fireattack on discord:
// https://togetter.com/li/945517
// https://twpl.togetter.com/show/thumb/hWWWl
// https://twpl.togetter.com/show/large/hWWWl
// https://twpl.togetter.com/show/orig/hWWWl
return src.replace(/(\/show\/+)(?:thumb|large)\/+/, "$1orig/");
}

if (domain_nowww === "hot.ag") {
// http://hot.ag/BodyPainting/BodyPainting%20Thumbnails/World-Cup-Body-Paint.jpg
// http://hot.ag/BodyPainting/World-Cup-Body-Paint.jpg
Expand Down
8 changes: 8 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -74644,6 +74644,14 @@ var $$IMU_EXPORT$$;
return hex_to_ascii(match[1]);
}
}
if (domain === "twpl.togetter.com") {
// thanks to fireattack on discord:
// https://togetter.com/li/945517
// https://twpl.togetter.com/show/thumb/hWWWl
// https://twpl.togetter.com/show/large/hWWWl
// https://twpl.togetter.com/show/orig/hWWWl
return src.replace(/(\/show\/+)(?:thumb|large)\/+/, "$1orig/");
}
if (domain_nowww === "hot.ag") {
// http://hot.ag/BodyPainting/BodyPainting%20Thumbnails/World-Cup-Body-Paint.jpg
// http://hot.ag/BodyPainting/World-Cup-Body-Paint.jpg
Expand Down

0 comments on commit 542907a

Please sign in to comment.