Skip to content

Commit

Permalink
Support mpcautofill.com
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Apr 5, 2024
1 parent f85ab33 commit 029b1bf
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
2023.3.1 (in-dev)

Special thanks to fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f for their contributions and reports for this release
Special thanks to fireattack, nimbuz, Froktime, fyhtma, SakalliTavernaci, TheLastZombie, oifj34f34f, Solus for their contributions and reports for this release

---

Expand Down
12 changes: 12 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113516,6 +113516,18 @@ var $$IMU_EXPORT$$;
return decodeURIComponent(newsrc);
}

if (domain === "cdn.mpcautofill.com") {
// thanks to Solus on discord:
// https://cdn.mpcautofill.com/images/google_drive/small/1BuWUP0momWanMnej1PxpGWa60FMw8uh4.jpg
// https://cdn.mpcautofill.com/images/google_drive/large/1BuWUP0momWanMnej1PxpGWa60FMw8uh4.jpg
// https://cdn.mpcautofill.com/images/google_drive/small/13ogr4MIpI7csAJwEE1RvkpYYRlWTnqhB.jpg
// https://cdn.mpcautofill.com/images/google_drive/large/13ogr4MIpI7csAJwEE1RvkpYYRlWTnqhB.jpg
return {
url: src.replace(/(\/images\/+[^/]+\/+)small\/+/, "$1large/"),
can_head: false // 400
};
}




Expand Down
11 changes: 11 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -101908,6 +101908,17 @@ var $$IMU_EXPORT$$;
if (newsrc !== src)
return decodeURIComponent(newsrc);
}
if (domain === "cdn.mpcautofill.com") {
// thanks to Solus on discord:
// https://cdn.mpcautofill.com/images/google_drive/small/1BuWUP0momWanMnej1PxpGWa60FMw8uh4.jpg
// https://cdn.mpcautofill.com/images/google_drive/large/1BuWUP0momWanMnej1PxpGWa60FMw8uh4.jpg
// https://cdn.mpcautofill.com/images/google_drive/small/13ogr4MIpI7csAJwEE1RvkpYYRlWTnqhB.jpg
// https://cdn.mpcautofill.com/images/google_drive/large/13ogr4MIpI7csAJwEE1RvkpYYRlWTnqhB.jpg
return {
url: src.replace(/(\/images\/+[^/]+\/+)small\/+/, "$1large/"),
can_head: false // 400
};
}
// -- 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
Expand Down

0 comments on commit 029b1bf

Please sign in to comment.