TwitterViewer
Bookmarklet

Twitter Bookmarklet: open any X link in one click

Open the X post you are viewing here. Use it on desktop, iPhone and Android.

On desktop

Drag this to your bookmarks bar. Click it on any X page.

Bookmarks bar hidden? Show it from the browser menu.

On mobile

Create a bookmark with the script as its address.

  1. 1Copy the script below.
  2. 2Create a bookmark, then edit its address.
  3. 3Paste the script and save.
javascript:(function(){var l=location;if(new RegExp("^(www\\.|mobile\\.)?(x|twitter)\\.com$",'i').test(l.hostname)){l.href="https://twitterviewer.app"+l.pathname+l.search+l.hash}else{alert("Open this on an X page.")}})()

It works on x.com and twitter.com. Other sites stay as they are.


What is a Twitter bookmarklet?

A Twitter bookmarklet is a browser bookmark that runs one line of code on the current tab. Ours reads the URL of an X post, profile or hashtag and opens the same path on TwitterViewer, so you read it without signing in. There is no extension to install. You can also paste any link into the Twitter Viewer home page.

How to install the Twitter Bookmarklet

  1. Show the bookmarks bar

    Press Ctrl+Shift+B, or Cmd+Shift+B on a Mac. In Safari, choose View, then Show Favorites Bar.

  2. Drag the button

    Drag Open in TwitterViewer from the On desktop card onto the bar. A plain click on the page only shows a hint.

  3. Open an X post

    Go to any post or profile on x.com or twitter.com. A profile opens in the Twitter Profile Viewer.

  4. Click the bookmark

    The same link opens here in the same tab; use the back button to return to X.

Ways to open X links here

Desktop bookmark
Drag one button to the toolbar in Chrome, Edge, Firefox or Safari
iPhone and iPad
Copy the script and paste it as a Safari bookmark address
Android bookmark
Paste the script, then start it from the address bar
Android share target
Install the site once, then use Share in the X app
Paste a link
Works anywhere; the home box accepts x.com links
Edit the host
Replace x.com with our address and keep the path

How it works

  • Checks the host

    The script matches x.com or twitter.com, with an optional www. or mobile. Lookalikes such as x.com.example.net do not match. On any other site it shows an alert and stops.

  • Reads only the address

    It reads the host, path, query and anchor of the tab. It never touches cookies, local storage, page text, messages or your account, and makes no request of its own.

  • Opens three kinds of page

    Posts open at /username/status/id, profiles at /username and hashtags at /hashtag/tag. For a profile's gallery or replies, use the Twitter Media Viewer or the Twitter Reply Viewer.

FAQ

Short answers. Click a question to open it.

Is the Twitter bookmarklet safe?

Yes. It reads the tab's URL, checks for x.com or twitter.com and swaps the host. It does not read cookies, content or your timeline, and you can read the full script on the page. Deleting the bookmark removes it.

Is there a browser extension?

No. The bookmark is the lightweight alternative: it runs only when you click and asks for no browser permissions.

Why does nothing happen when I click it?

Your browser or employer may block javascript: bookmarks, or the prefix was lost when you pasted. Check that the address starts with javascript:. Otherwise paste the link into the home box.

Can I read the replies too?

Yes. The post opens with its thread and public replies. To see one account's replies, use the Twitter Reply Viewer. Reading is free.

Does it open Community links?

The bookmark does not, but the Android share target does: a shared Community link opens the X Communities Exporter. The export needs a connected X account.

Can it follow a profile for new posts?

The bookmark only opens pages. To get alerts for new posts, add the account to your Watchlist, which is free with a sign-in.