forked from cristimc8/Scribd-Unblur
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathJS code
36 lines (34 loc) · 1.13 KB
/
JS code
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
// ==UserScript==
// @name Scribd Unblur
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Removes the popups and unblurs the text <3
// @author cristimc8
// @match http*://*.scribd.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
setInterval(function(){
var elements = document.getElementsByClassName("auto__doc_page_webpack_doc_page_blur_promo");
while(elements.length > 0){
elements[0].parentNode.removeChild(elements[0]);
}
var elements1 = document.getElementsByClassName("promo");
while(elements1.length > 0){
elements1[0].parentNode.removeChild(elements1[0]);
}
var all = document.getElementsByClassName('a');
for (var i = 0; i < all.length; i++) {
all[i].style.color = 'black';
}
var allL = document.getElementsByClassName('l');
for (i = 0; i < allL.length; i++) {
allL[i].style.color = 'black';
}
var allImg = document.getElementsByClassName('absimg');
for (i = 0; i < allImg.length; i++) {
allImg[i].style.opacity = 1;
}
}, 1000);
})();