Skip to content

Commit

Permalink
link-pfp v1.3.2 (#214)
Browse files Browse the repository at this point in the history
  • Loading branch information
eMGeeneer authored Apr 2, 2024
1 parent 9860a6f commit ba0e56d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/linkProfilePicture.plugin.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* @name Link-Profile-Picture
* @description Lets you click users' avatars on their profile page to view a bigger version in your browser.
* @version 1.3.1
* @version 1.3.2
* @author square
* @authorLink https://betterdiscord.app/developer/square
* @website https://betterdiscord.app/plugin/Link-Profile-Picture
Expand All @@ -15,7 +15,7 @@ module.exports = class linkProfilePicture {
document.addEventListener("click", LinkProfilePicture, true);
this.stop = document.removeEventListener.bind(document, "click", LinkProfilePicture, true);
function LinkProfilePicture({ target }) {
if (target.classList.contains("avatar__445f3") && target.parentElement?.parentElement?.classList.contains("header__7da4f")) {
if (target.classList.contains("avatar__445f3") && target.parentElement?.parentElement?.classList.contains("header_dda341")) {
window.open(target.querySelector("img").src.replace(/\?.*$/, "?quality=lossless&size=4096"), "_blank");
}
}
Expand Down

0 comments on commit ba0e56d

Please sign in to comment.