mirror of
https://github.com/BetterSEQTA/BetterSEQTA-Plus.git
synced 2026-06-06 03:34:40 +00:00
feat: reduce permissions for pageState script
This commit is contained in:
@@ -20,6 +20,10 @@ const handleNotificationClick = async (target: HTMLElement) => {
|
||||
|
||||
// Select the specific direct message
|
||||
ReactFiber.find('.Viewer__Viewer___32BH-').setState({ selected: new Set([matchingNotification.message.messageID]) });
|
||||
|
||||
// Close the notifications panel
|
||||
const notificationButton = document.querySelector('.notifications__notifications___3mmLY > button') as HTMLButtonElement | null;
|
||||
notificationButton?.click();
|
||||
};
|
||||
|
||||
const clickListeners = [
|
||||
@@ -29,9 +33,7 @@ const clickListeners = [
|
||||
},
|
||||
];
|
||||
|
||||
const registerClickListeners = () => {
|
||||
console.log("Registering click listeners...");
|
||||
|
||||
const registerClickListeners = () => {
|
||||
document.addEventListener('click', (e) => {
|
||||
const target = e.target as HTMLElement;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user