Skip to content

Commit

Permalink
Support qq music
Browse files Browse the repository at this point in the history
  • Loading branch information
qsniyg committed Oct 19, 2024
1 parent 0c082e0 commit 619bf66
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Improvements:

* Various improvements/fixes to existing rules (including YouTube)

Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten, liamengland1, mantou, siloricity for their contributions and reports for this release
Special thanks to nimbuz, remlap, Solus, immewnity, Froktime, billkewl, Broly, fyhtma, vscum, acidzab, sn3akyb3ar, ValiumBear, fireattack, NeverForgotten, liamengland1, mantou, siloricity, adz for their contributions and reports for this release

---

Expand Down
7 changes: 7 additions & 0 deletions src/userscript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55511,6 +55511,13 @@ var $$IMU_EXPORT$$;
};
}

if (domain === "y.qq.com") {
// thanks to adz on discord:
// https://y.qq.com/music/photo_new/T002R800x800M000004B2OEg0Z6g8L.jpg
// https://y.qq.com/music/photo_new/T002M000004B2OEg0Z6g8L.jpg -- 1500x1500
return src.replace(/(\/music\/+photo_new\/+[^/]*)R[0-9]+x[0-9]+/, "$1");
}

if ((domain === "acg.ms" ||
domain === "m.acg.ms") &&
string_indexof(src, "/photo/") >= 0) {
Expand Down
6 changes: 6 additions & 0 deletions userscript.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -50633,6 +50633,12 @@ var $$IMU_EXPORT$$;
}
};
}
if (domain === "y.qq.com") {
// thanks to adz on discord:
// https://y.qq.com/music/photo_new/T002R800x800M000004B2OEg0Z6g8L.jpg
// https://y.qq.com/music/photo_new/T002M000004B2OEg0Z6g8L.jpg -- 1500x1500
return src.replace(/(\/music\/+photo_new\/+[^/]*)R[0-9]+x[0-9]+/, "$1");
}
if ((domain === "acg.ms" ||
domain === "m.acg.ms") &&
string_indexof(src, "/photo/") >= 0) {
Expand Down

0 comments on commit 619bf66

Please sign in to comment.