diff options
Diffstat (limited to 'misc/old-reddit-page-cleanup.js')
-rw-r--r-- | misc/old-reddit-page-cleanup.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/misc/old-reddit-page-cleanup.js b/misc/old-reddit-page-cleanup.js index 9326744..ab4007a 100644 --- a/misc/old-reddit-page-cleanup.js +++ b/misc/old-reddit-page-cleanup.js @@ -24,10 +24,10 @@ console.log(sidebar) sidebar.style.float = "none" sidebar.style.margin = "25px" while (sidebar.children[1]) - sidebar.children[1].remove() + sidebar.children[1].remove() /* wrap code in pre instead of p */ document.querySelectorAll("code").forEach(c => { - const pre = c.parentElement.parentElement.insertBefore(document.createElement("pre"), c.parentElement) - pre.appendChild(c) + const pre = c.parentElement.parentElement.insertBefore(document.createElement("pre"), c.parentElement) + pre.appendChild(c) }) |