Skip to content

Commit

Permalink
bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
dimdenGD committed Jul 19, 2024
1 parent 42e08b5 commit 25cdcc4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
40 changes: 23 additions & 17 deletions layouts/home/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,23 +77,29 @@ setTimeout(() => {
data.lastVersion.split('.').slice(0, data.lastVersion.split('.').length <= 3 ? 100 : -1).join('.') !== chrome.runtime.getManifest().version.split('.').slice(0, chrome.runtime.getManifest().version.split('.').length <= 3 ? 100 : -1).join('.')
) {
let opened = Date.now();
// createModal(html`
// <h2 style="margin:0;margin-bottom:10px;color:var(--darker-gray);font-weight:300">(OldTwitter) ${LOC.new_version.message} - ${chrome.runtime.getManifest().version}</h2>
// <span id="changelog" style="font-size:14px;color:var(--default-text-color)">
// <ul>
// <li>Added viewing likes bypass lol</li>
// </ul>
// </span>
// `, 'changelog-modal', () => {}, () => Date.now() - opened > 1250);
// let changelog = document.getElementById('changelog');
// let text = changelog.innerText;
// let lang = LANGUAGE ? LANGUAGE : navigator.language ? navigator.language : "en";
// if(!lang.startsWith('en')) {
// changelog.innerHTML += html`<span class="tweet-translate">${LOC.view_translation.message}</span>`;
// changelog.querySelector('.tweet-translate').addEventListener('click', () => {
// openInNewTab('https://translate.google.com/?sl=en&tl=' + lang + '&text=' + encodeURIComponent(text) + '&op=translate');
// });
// }
createModal(html`
<h2 style="margin:0;margin-bottom:10px;color:var(--darker-gray);font-weight:300">(OldTwitter) ${LOC.new_version.message} - ${chrome.runtime.getManifest().version}</h2>
<span id="changelog" style="font-size:14px;color:var(--default-text-color)">
<ul>
<li>Added option to customize name of downloaded media</li>
<li>Better "User doesn't exist" and "User was suspended" pages</li>
<li>Fixed external links not opening in new tab (this was especially annoying on PWA because it reset current browsing session on visiting external links)</li>
<li>Fixed custom color links not appearing in home timeline often</li>
<li>Fixed tweets with pending community notes not loading</li>
<li>Fixed layout shift on modal opens</li>
<li>Fixed image viewer being hard to close on some phones</li>
</ul>
</span>
`, 'changelog-modal', () => {}, () => Date.now() - opened > 1250);
let changelog = document.getElementById('changelog');
let text = changelog.innerText;
let lang = LANGUAGE ? LANGUAGE : navigator.language ? navigator.language : "en";
if(!lang.startsWith('en')) {
changelog.innerHTML += html`<span class="tweet-translate">${LOC.view_translation.message}</span>`;
changelog.querySelector('.tweet-translate').addEventListener('click', () => {
openInNewTab('https://translate.google.com/?sl=en&tl=' + lang + '&text=' + encodeURIComponent(text) + '&op=translate');
});
}
chrome.storage.local.set({lastVersion: chrome.runtime.getManifest().version});
} else {
if(!data.nextPlug) {
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.6",
"version": "1.8.7",
"manifest_version": 3,
"homepage_url": "https://github.com/dimdenGD/OldTwitter",
"background": {
Expand Down

0 comments on commit 25cdcc4

Please sign in to comment.