Fix Twitter Share Link

Replace `twitter` to `vxtwitter` when sharing links

< 脚本Fix Twitter Share Link的反馈

评价:一般 - 脚本能用,但还有一些问题

§
发表于: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');
solstice23作者
§
发表于:2023-10-18

Updated, thank you

发表回复

登录以发表回复。