-
Notifications
You must be signed in to change notification settings - Fork 0
/
blur-bypass.js
50 lines (41 loc) · 1.35 KB
/
blur-bypass.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// ==UserScript==
// @name Blur Bypass - Passei Direto - Responde Aí
// @namespace https://github.com/wilssola/blur-bypass
// @version 0.2
// @description Blur Bypass - Passei Direto - Responde Aí
// @author Wilson Oliveira Lima
// @match *://*.passeidireto.com/*
// @match *://*.respondeai.com.br/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setTimeout(blurBypass, 1000);
})();
function blurBypass() {
const body = document.getElementsByTagName('body')[0];
if (body) {
body.innerHTML = body.innerHTML.replaceAll('blur', '');
}
const style = document.createElement('style');
if (style) {
style.innerHTML = '*, div, div *, .disable-blur, .disable-blur * { filter: blur(0) !important; -webkit-filter: blur(0) !important; }';
}
const head = document.getElementsByTagName('head')[0];
if (head) {
head.appendChild(style);
}
const paywall = document.querySelectorAll('[data-testid="free-trial-paywall"]')[0];
if (paywall) {
paywall.remove();
}
const divs = document.getElementsByTagName('div');
for (let div of divs) {
if (!div) continue;
if (!div.classList) continue;
div.classList.add('disable-blur');
if (div.className.includes('banner')) {
div.remove();
}
}
}