Greasy Fork is available in English.

Fix Twitter Share Link

Replace `twitter` to `vxtwitter` when sharing links

< Feedback on Fix Twitter Share Link

Review: OK - script works, but has bugs

§
Posted: 2023.10.12.

Made a few tweaks for current twitter urls: added to header

// @match https://x.com/*

and adjusted lines 22 and 23 to the following:

        if (selected.match(/^https+:\/\/((.+)\.)?x\.com\/(.+)\/status\/(\d+)(\?.+)?$/)) {
            const newUrl = selected.replace(/^https+:\/\/((.+)\.)?x\.com\/(.+)\/status\/(\d+)(\?.+)?$/, 'https://vxtwitter.com/$3/status/$4');
solstice23Author
§
Posted: 2023.10.18.

Updated, thank you

Post reply

Sign in to post a reply.