Last active
October 19, 2025 13:31
-
-
Save Vocaned/6bb15f28530194f25dfff7ae8327846e to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name Twitter age bypass | |
| // @version 1.0.2 | |
| // @description A simple userscript for bypassing Twitter media age verification | |
| // @author voc | |
| // @namespace https://github.com/Vocaned | |
| // @downloadURL https://gist.github.com/Vocaned/6bb15f28530194f25dfff7ae8327846e/raw/twitter-age-bypass.user.js | |
| // @match https://x.com/* | |
| // @match https://twitter.com/* | |
| // @grant none | |
| // @run-at document-start | |
| // ==/UserScript== | |
| (function() { | |
| const s = ` | |
| (function () { | |
| const origPush = webpackChunk_twitter_responsive_web.push; | |
| webpackChunk_twitter_responsive_web.push = function (chunk) { | |
| const modules = chunk[1]; | |
| for (const moduleId in modules) { | |
| if (!modules.hasOwnProperty(moduleId)) continue; | |
| const fn = modules[moduleId]; | |
| if (fn.toString().includes("sensitiveMediaVisibilityResultsTombstoneConfig=")) { | |
| modules[moduleId] = function (module, exports, require) { | |
| fn(module, exports, require); | |
| try { | |
| module.exports.Z.sensitiveMediaVisibilityResultsTombstoneConfig.withBlurredMedia = false; | |
| } catch {} | |
| }; | |
| } | |
| } | |
| return origPush.call(this, chunk); | |
| }; | |
| })(); | |
| `; | |
| const blob = new Blob([s], {type: 'application/javascript'}); | |
| const script = document.createElement('script'); | |
| script.src = URL.createObjectURL(blob); | |
| document.documentElement.appendChild(script); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment