chore: cleanup
This commit is contained in:
@ -9,7 +9,7 @@
|
||||
// @description Dynamic Sidebar for Facebook Messenger (messenger.com)
|
||||
// @homepageURL https://gitlab.com/tretrauit/scripts
|
||||
// @supportURL https://gitlab.com/tretrauit/scripts/-/issues
|
||||
// @downloadURL https://gitlab.com/tretrauit/scripts/-/raw/main/userscripts/messenger-dynamic-sidebar.user.js
|
||||
// @downloadURL https://git.tretrauit.me/tretrauit/scripts/raw/branch/main/userscripts/messenger-dynamic-sidebar.user.js
|
||||
// ==/UserScript==
|
||||
|
||||
function injectCSS(css) {
|
||||
@ -22,7 +22,7 @@ function findElement(tag, properties) {
|
||||
const elements = document.querySelectorAll(tag);
|
||||
elementLoop: for (const element of elements) {
|
||||
for (const [key, value] of Object.entries(properties)) {
|
||||
if (element.getAttribute(key) != value) {
|
||||
if (element.getAttribute(key) !== value) {
|
||||
continue elementLoop;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user