Skip to content

Commit

Permalink
slower reloads
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Apr 1, 2024
1 parent 62a42e1 commit d15b73b
Show file tree
Hide file tree
Showing 13 changed files with 20 additions and 20 deletions.
2 changes: 1 addition & 1 deletion layouts/bookmarks/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ setTimeout(async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/history/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ setTimeout(async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -412,7 +412,7 @@ setTimeout(async () => {

// weird bug
if(!document.getElementById('new-tweets')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
let lastNewTweetPress = Date.now();
Expand All @@ -438,7 +438,7 @@ setTimeout(async () => {
timeline.dataToUpdate = [];
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/itl/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ setTimeout(async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/lists/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -356,14 +356,14 @@ setTimeout(async () => {
}
// weird bug
if(!document.getElementById('wtf-refresh')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/notifications/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ setTimeout(async () => {

// weird bug
if(!document.getElementById('wtf-refresh')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/profile/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1810,7 +1810,7 @@ setTimeout(async () => {

// weird bug
if(!document.getElementById('new-tweets')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('new-tweets').addEventListener('click', () => {
Expand All @@ -1821,7 +1821,7 @@ setTimeout(async () => {
renderTimeline();
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/search/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,14 +296,14 @@ setTimeout(async () => {

// weird bug
if(!document.getElementById('wtf-refresh')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/settings/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ setTimeout(async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/topics/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -116,14 +116,14 @@ setTimeout(async () => {

// weird bug
if(!document.getElementById('wtf-refresh')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions layouts/tweet/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -783,14 +783,14 @@ setTimeout(async () => {
}
// weird bug
if(!document.getElementById('wtf-refresh')) {
return setTimeout(() => location.reload(), 500);
return setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/unfollows/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ setTimeout(async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 500);
setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "Old Twitter Layout (2024)",
"description": "__MSG_ext_description__",
"version": "1.8.3.1",
"version": "1.8.3.3",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down

0 comments on commit d15b73b

Please sign in to comment.