File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name Bypass Various Popups
3- // @version 0.3
3+ // @version 0.4
44// @downloadURL https://userscripts.codonaft.com/bypass-various-popups.js
55// @match https://*.archive.org/*
66// @match https://chat.qwen.ai/*
2121 const process = ( node , observer ) => {
2222 if ( node . nodeType !== 1 ) return ;
2323
24- if ( [ 'A' , 'BUTTON' ] . includes ( node . tagName ) && node . innerText . includes ( 'Stay logged out' ) ) {
25- setTimeout ( _ => node . click ( ) , randomPause ( 1000 , 1500 ) ) ;
26- return ;
27- }
28-
2924 if ( node . matches ?. ( 'div[role=dialog]' ) ) {
3025 setTimeout ( _ => {
3126 node . querySelectorAll ( 'button[aria-label="close"]' ) . forEach ( i => i . click ( ) ) ;
3227 node . querySelectorAll ( 'button.btn' ) . forEach ( i => {
33- if ( i . innerText . includes ( 'Not now' ) ) {
28+ if ( i . textContent . includes ( 'Not now' ) ) {
29+ i . click ( ) ;
30+ }
31+ } ) ;
32+ node . querySelectorAll ( 'a' ) . forEach ( i => {
33+ if ( i . textContent . includes ( 'Stay logged out' ) ) {
3434 i . click ( ) ;
3535 }
3636 } ) ;
Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name Improve Privacy
3- // @version 0.3
3+ // @version 0.4
44// @downloadURL https://userscripts.codonaft.com/improve-privacy.js
55// ==/UserScript==
66
2323 const newHref = url . toString ( ) ;
2424 if ( newHref !== href ) {
2525 node . href = newHref ;
26- if ( node . innerText . trim ( ) === href ) {
27- node . innerText = newHref ;
26+ if ( node . textContent . trim ( ) === href ) {
27+ node . innerHTML = newHref ;
2828 }
2929 }
3030 } ;
Original file line number Diff line number Diff line change 11// ==UserScript==
22// @name Remove Pseudocensorship
3- // @version 0.2
3+ // @version 0.3
44// @downloadURL https://userscripts.codonaft.com/remove-pseudocensorship.js
55// ==/UserScript==
66
1010 const process = node => {
1111 if ( node . nodeType !== 1 ) return ;
1212
13- if ( node . tagName === 'P' && node . innerText . includes ( 'НАСТОЯЩИЙ МАТЕРИАЛ (ИНФОРМАЦИЯ)' ) ) {
13+ if ( node . tagName === 'P' && node . textContent . includes ( 'НАСТОЯЩИЙ МАТЕРИАЛ (ИНФОРМАЦИЯ)' ) ) {
1414 node . style . display = 'none' ;
1515 return ;
1616 }
You can’t perform that action at this time.
0 commit comments