Greasy Fork 还支持 简体中文。

Fix Twitter Share Link

Replace `twitter` to `vxtwitter` when sharing links

< Feedback on Fix Twitter Share Link

مراجعة: OK - script works, but has bugs

§
Posted: 12-10-2023

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مؤلف
§
Posted: 18-10-2023

Updated, thank you

Post reply

تسجيل الدخول إلى مرحلة ما بعد الرد.