bypass sensitive tweets
This commit is contained in:
parent
e6231f6ace
commit
643faa0097
@ -1,6 +1,7 @@
|
||||
# Bypass Twitter Sensitive
|
||||
This userscript bypasses Twitter's "Caution: This profile may include
|
||||
potentially sensitive content" screen.
|
||||
potentially sensitive content" screen for profiles and "The following media
|
||||
includes potentially sensitive content" warnings for tweets. Use with caution!
|
||||
|
||||
## Installation
|
||||
First, install Violentmonkey for
|
||||
|
@ -1,8 +1,8 @@
|
||||
// ==UserScript==
|
||||
// @name Bypass Twitter Sensitive
|
||||
// @namespace https://bubbletea.dev/
|
||||
// @version 1.0
|
||||
// @description Bypasses Twitter's "Caution: This profile may include potentially sensitive content" page
|
||||
// @version 2.0
|
||||
// @description Bypasses Twitter's "Caution: This profile may include potentially sensitive content" page and "The following media includes potentially sensitive content" warnings.
|
||||
// @author shibao
|
||||
// @include https://twitter.com*
|
||||
// @downloadURL https://gitea.bubbletea.dev/shibao/bypass-twitter-sensitive/raw/branch/stable/bypass-twitter-sensitive.user.js
|
||||
@ -42,7 +42,7 @@ function eachNode(rootNode, callback) {
|
||||
for (const addedNode of mutation.addedNodes) {
|
||||
// recurses through all child nodes as well
|
||||
eachNode(addedNode, function (node) {
|
||||
if (node.nodeName == 'SPAN' && node.innerHTML == 'Yes, view profile') {
|
||||
if (node.nodeName == 'SPAN' && (node.innerHTML == 'Yes, view profile' || node.innerHTML == 'View')) {
|
||||
const viewProfileBtn = node.closest("div[role='button']");
|
||||
if (viewProfileBtn) { viewProfileBtn.click(); }
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user