Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can x.com be added as a domain you intercept please #21

Open
dftf-stu opened this issue Jul 10, 2024 · 7 comments
Open

Can x.com be added as a domain you intercept please #21

dftf-stu opened this issue Jul 10, 2024 · 7 comments

Comments

@dftf-stu
Copy link

dftf-stu commented Jul 10, 2024

I'm increasingly finding links on websites to posts on X where the URL of that link begins "x.com".

Whenever I click one of these, I get re-directed to a Nitter instance, but it just displays the following error:
Page not found

As an example, and to replicate this issue, simply type one of these into your address-bar, then hit enter:

  • twitter.com/bbc <-- result: the X account loads in the selected Nitter instance
  • x.com/bbc <-- result: ERROR: Page Not Found

The only workaround each-time is to right-click the link, choose "Copy link", paste it into the address-bar and
then change the x.com domain at the start to twitter.com and then when I hit enter, everything works!

Do you perhaps need to issue an updated version of your extension to add the x.com domain to this list?

NitterRedirectMissingXCom

Thanks

@SigmaTheDJ
Copy link

While we're waiting to see if this gets updated, I've started using this userscript instead: -

https://gist.github.com/Beyarz/c3a95a3b675342f6eb33878f2d5bc333

That handles both x.com and twitter.com just fine. All you need to do is edit the following line to the particular Nitter instance you're using: -

const nitterInstance = 'nitter.net'

@dftf-stu
Copy link
Author

Just wondering if there's been any updates around this being fixed (the workaround by SigmaTheDJ above doesn't mean anything to me, sorry... wouldn't be sure what file I'm supposed to edit), as this issue is still ongoing.

Here are some example screenshots in-case my original issue report was perhaps unclear...

Example 1

Here is an example of a link on a website which links to an X post via the 'twitter.com' domain:

TwitterRedirect-Works

As you can see above, it loads the X-eet (or whatever a "Tweet" is now called?) successfully.

Example 2

However, here is another comment where the user has linked via the 'x.com' domain:

TwitterRedirect-Fails

And as you can see, it fails.

An update sure would be appreciated, as for now I still have to right-click -> copy URL -> paste URL -> manually change "x.com" to "twitter.com" -> hit ENTER

@SigmaTheDJ
Copy link

Just wondering if there's been any updates around this being fixed (the workaround by SigmaTheDJ above doesn't mean anything to me, sorry... wouldn't be sure what file I'm supposed to edit), as this issue is still ongoing.

Here's how to use that script: -

  1. Install the Violentmonkey add-on in your browser.

  2. In Violentmonkey's settings, click on "Installed scripts", then the + sign at the top of the page to add a new script, then "Install from URL". Paste in the following URL and install it: -

https://gist.githubusercontent.com/Beyarz/c3a95a3b675342f6eb33878f2d5bc333/raw/a371ad97974e3199eb68fcd3ff264c30e5a833c6/redirect-nitter.js

  1. Once the script is installed, click the edit button underneath its name, then edit the following line: -

const nitterInstance = 'nitter.net'

Replace "nitter.net" with the instance you're using. For example, if you're using this Nitter instance......

https://nitter.privacydev.net/

......you would edit the line so it says this: -

const nitterInstance = 'nitter.privacydev.net'

Then save your edit and you're done. Hope that helps!

@dftf-stu
Copy link
Author

Not just me, with this issue: here are some recent reviews on the Firefox Add-Ons site...

TwitterRedirect-FFReviews

I'm going to guess as it says the extension was last updated "4 years ago (26 Jul 2020)", it's not very-likely that the original creator is now going to ever update it again, so... can anyone suggest a replacement add-on which does the same thing?

Thanks

@dftf-stu
Copy link
Author

dftf-stu commented Sep 20, 2024

I've looked into the LibRedirect add-on that was mentioned in one of the reviews in my previous screenshot, but that add-on requires more permissions:

  • Access your data for all websites
  • Input data to the clipboard

Which isn't ideal.

Does anyone know of an add-on that only needs permissions to access the Twitter and X domains?

[Update: I tested one called "Traittor Redirect", but it doesn't seem to do anything; and one called "Twitter to Nitter" requests permission to "Access browser activity during navigation", which wouldn't be ideal. Surely there must be some add-on, similar to this one, which only requests access to the required domains?]

@SigmaTheDJ
Copy link

Does anyone know of an add-on that only needs permissions to access the Twitter and X domains?

Why not just use the script I linked you to? I posted full instructions on how to install and edit it above. It works perfectly.

@dftf-stu
Copy link
Author

@SigmaTheDJ: because I'd rather not install any add-ons unless necessary, especially ones which do far-more than what I'm looking for (and so would be more-complicated to use), and which need more permissions than is necessary.

For the ViolentMonkey one you suggested, Firefox advises it would require:

  • Access to all websites
  • Display notifications
  • Input data into the clipboard
  • Monitor all active tabs

That's rather a lot of permissions to trust in an add-on, when all I want to do is go to an X-alternative whenever I click on a twitter.com or x.com link.

However... I've just come-across one called X Cancelled (Nitter) which only requests permissions for the twitter.com and x.com domains, and it seems to work fine! 🥳🎉 It only supports redirecting to the xcancel.com alternative, and doesn't let you enter another one should that go down... but seeing as that's my current default server, this new add-on will do what I need for now.

I appreciate your suggestion, but some of us aren't coders or web-devs and just want something simple that does one thing!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants