diff options
author | Tim Keller <tjkeller.xyz> | 2024-11-17 20:53:58 -0600 |
---|---|---|
committer | Tim Keller <tjkeller.xyz> | 2024-11-17 20:53:58 -0600 |
commit | 0ee3d4f4cd9674fbd9398615d8054de0ebd9c130 (patch) | |
tree | 2030f59f5e86aa3e1b4d5129b6c301252fc4c5b0 /misc/old-reddit-page-cleanup.js | |
parent | 5dd17fe3c88d8543cbff634116d76f1fb1692faf (diff) | |
download | userscripts-0ee3d4f4cd9674fbd9398615d8054de0ebd9c130.tar.xz userscripts-0ee3d4f4cd9674fbd9398615d8054de0ebd9c130.zip |
replace spaces with tabs
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) }) |