Skip to content

Commit

Permalink
Update reddit-stream-Enhancements.user.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick2bad4u committed Oct 29, 2024
1 parent 3312ef4 commit 4e6a165
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions reddit-stream-Enhancements.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@
handleHover(button);

button.addEventListener('click', function () {
window.scrollTo({
globalThis.scrollTo({
top: document.body.scrollHeight,
behavior: 'smooth'
});
Expand Down Expand Up @@ -125,7 +125,7 @@

const keepAtBottom = debounce(function () {
if (stayAtBottomCheckbox.checked) {
window.scrollTo({
globalThis.scrollTo({
top: document.body.scrollHeight,
behavior: 'smooth'
});
Expand Down Expand Up @@ -159,7 +159,7 @@

function startAutoReload10() {
reloadInterval10 = setInterval(() => {
window.location.reload();
globalThis.location.reload();
console.log("Page reloading every 10 seconds.");
}, 10000);
}
Expand Down Expand Up @@ -193,7 +193,7 @@

function startAutoReload30() {
reloadInterval30 = setInterval(() => {
window.location.reload();
globalThis.location.reload();
console.log("Page reloading every 30 seconds.");
}, 30000);
}
Expand Down

0 comments on commit 4e6a165

Please sign in to comment.