Skip to content

Commit

Permalink
maybe fix endless load
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Apr 1, 2024
1 parent d15b73b commit e6bf845
Show file tree
Hide file tree
Showing 29 changed files with 90 additions and 233 deletions.
2 changes: 1 addition & 1 deletion layouts/bookmarks/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
Expand Down
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/history/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box" hidden>
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/home/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/itl/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/lists/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text">
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(), 1500);
return // setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/notifications/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
return // setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/profile/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span><br>
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(), 1500);
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/search/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
return // setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/settings/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="preconnect" href="https://twitter.com">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/topics/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box" hidden>
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
return // setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/tweet/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<link rel="preconnect" href="https://dimden.dev">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box">
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
return // setTimeout(() => location.reload(), 1500);
}
try {
document.getElementById('wtf-refresh').addEventListener('click', async () => {
renderDiscovery(false);
});
} catch(e) {
setTimeout(() => location.reload(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
2 changes: 1 addition & 1 deletion layouts/unfollows/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<link rel="preconnect" href="https://twitter.com">
<link rel="manifest" href="/manifest.json" crossorigin="use-credentials">
</head>
<body>
<body id="injected-body">
<div id="loading-box" hidden>
<div id="loading-box-container">
<span id="loading-box-text"></span>
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(), 1500);
// setTimeout(() => location.reload(), 1500);
console.error(e);
return;
}
Expand Down
4 changes: 2 additions & 2 deletions 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.3",
"version": "1.8.3.4",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down Expand Up @@ -78,7 +78,7 @@
{
"matches": ["https://twitter.com/*"],
"exclude_matches": ["https://twitter.com/*?*newtwitter=true*", "https://twitter.com/settings/download_your_data", "https://twitter.com/i/flow/login*", "https://twitter.com/i/tweetdeck", "https://twitter.com/i/communitynotes", "https://twitter.com/i/broadcasts/*"],
"js": ["scripts/blockBeforeInject.js", "scripts/config.js", "scripts/helpers.js", "scripts/apis.js", "scripts/injection.js"],
"js": ["scripts/blockBeforeInject.js", "scripts/config.js", "scripts/helpers.js", "scripts/apis.js", "scripts/twchallenge.js", "scripts/injection.js"],
"css": ["libraries/viewer.min.css"],
"all_frames": true,
"run_at": "document_start"
Expand Down
Loading

0 comments on commit e6bf845

Please sign in to comment.