diff --git a/dist/twitter-shortcuts.user.js b/dist/twitter-shortcuts.user.js index c75f719..c073bd2 100644 --- a/dist/twitter-shortcuts.user.js +++ b/dist/twitter-shortcuts.user.js @@ -1,7 +1,7 @@ // ==UserScript== // @name Twitter - Shortcuts // @namespace mkobayashime -// @version 0.3.0 +// @version 0.3.1 // @description Refined shortcuts in Twitter for web // @author mkobayashime // @homepage https://github.com/mkobayashime/userscripts @@ -67,7 +67,7 @@ const config = {}; const normalizedURL = `${window.location.origin}${window.location.pathname}`; if (/^https:\/\/twitter\.com\/\S+\/status\/\d+$/.test(normalizedURL)) { e.preventDefault(); - window.location.href = `${normalizedURL}/likes`; + window.open(`${normalizedURL}/likes`); } } }); diff --git a/src/userscripts/meta/index.ts b/src/userscripts/meta/index.ts index 22c2cb1..263dd4d 100644 --- a/src/userscripts/meta/index.ts +++ b/src/userscripts/meta/index.ts @@ -200,7 +200,7 @@ export const meta: { [name: string]: UserScriptMeta | undefined } = { icon: "https://www.google.com/s2/favicons?domain=twitter.com", match: "https://twitter.com/*", name: "Twitter - Shortcuts", - version: "0.3.0", + version: "0.3.1", }, "zoom-web-shortcuts": { description: "Google Meet-like Ctrl-d/e shortcuts in Zoom", diff --git a/src/userscripts/twitter-shortcuts.user.ts b/src/userscripts/twitter-shortcuts.user.ts index e877bc4..8e63893 100644 --- a/src/userscripts/twitter-shortcuts.user.ts +++ b/src/userscripts/twitter-shortcuts.user.ts @@ -58,7 +58,7 @@ const config = {}; const normalizedURL = `${window.location.origin}${window.location.pathname}`; if (/^https:\/\/twitter\.com\/\S+\/status\/\d+$/.test(normalizedURL)) { e.preventDefault(); - window.location.href = `${normalizedURL}/likes`; + window.open(`${normalizedURL}/likes`); } } });