summaryrefslogtreecommitdiff
path: root/plugins/shorten_expanded/init.js
diff options
context:
space:
mode:
authorsupahgreg <supahgreg@users.noreply.github.com>2025-10-14 22:43:09 +0000
committersupahgreg <supahgreg@users.noreply.github.com>2025-10-14 22:43:09 +0000
commit6d3619724735cad09bcb24110403d21479d1fd4d (patch)
tree1dd90b777cfdcea698ac2fd966eb13f46aa107b6 /plugins/shorten_expanded/init.js
parent73f9d7bd6c8f222145c29c91eeb43ba7c7677496 (diff)
Remove various Element and Array prototype extensions (and similar).
Diffstat (limited to 'plugins/shorten_expanded/init.js')
-rw-r--r--plugins/shorten_expanded/init.js5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/shorten_expanded/init.js b/plugins/shorten_expanded/init.js
index a89fe8e92..deb3b6393 100644
--- a/plugins/shorten_expanded/init.js
+++ b/plugins/shorten_expanded/init.js
@@ -55,10 +55,9 @@ Plugins.Shorten_Expanded = {
const row = App.byId(id);
if (row) {
- const content = row.querySelector(".content-shrink-wrap");
- const link = row.querySelector(".expand-prompt");
+ const link = row.querySelector('.expand-prompt');
- if (content) content.removeClassName("content-shrink-wrap");
+ row.querySelector('.content-shrink-wrap')?.classList.remove('content-shrink-wrap');
if (link) Element.hide(link);
}