This is a bookmarklet for ๐ (Twitter) that will automatically click the "Show" button on sensitive content.
You were going to click it anyway. Let this bookmarklet do it for you!
The bookmarklet currently supports English and Japanese. If you'd like it to support your language let me know what "Show" appears as in your language.
- Create a new bookmark.
- The bookmark name can be anything you want.
- Copy paste this minified javascript and use it as the bookmark URL.
- Save your new bookmark.
javascript:(()=>{if(!["twitter.com","x.com"].includes(window.location.hostname))return;const t=["Show","่กจ็คบ"],e=setInterval((()=>document.querySelectorAll('div[role="button"]').forEach((e=>{t.some((t=>t===e.textContent.trim()))&&e.click()}))),1e3);setTimeout((()=>clearInterval(e)),6e5)})();
- Click your new bookmark when you see content hidden behind the "Show" button.
- Watch everything magically reveal itself!
The bookmarklet will continue working for 10 minutes before automatically stopping. It will also stop if you navigate away from ๐ or reload the site.
Simply click the bookmark again if needed.
In Microsoft Edge, activating the bookmarklet from the favorites dropdown menu may not work. You will need to activate it from the favorites bar, which can be toggled with Ctrl+Shift+B.
This is the unminified javascript code. It should work on all major modern browsers.
javascript:(() => {
const targetHosts = ['twitter.com', 'x.com'];
if (!targetHosts.includes(window.location.hostname)) {
return;
}
const showText = ['Show', '่กจ็คบ'];
const showAll = () => document.querySelectorAll('div[role="button"]').forEach(button => {
if (showText.some(str => str === button.textContent.trim())) button.click();
});
const timeoutDelay = 600000; // 600,000 ms = 10 min
const intervalDelay = 1000; // 1,000 ms = 1 sec
const intervalId = setInterval(showAll, intervalDelay);
setTimeout(() => clearInterval(intervalId), timeoutDelay);
})();
Please like and share this with anyone that might find it useful.
You can also follow me on ๐ @ NeonNoodle22.
I appreciate it!