Created
August 2, 2014 06:07
-
-
Save m0n5t3r/17e27bb07916c9d584fa to your computer and use it in GitHub Desktop.
Greasemonkey script to unfuckup Scribd docs
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 FUScribd | |
// @namespace m0n5t3r | |
// @description Makes Scribd documents visible, gives Scribd the finger. | |
// @include http://www.scribd.com/doc/* | |
// @version 1 | |
// @grant none | |
// ==/UserScript== | |
(function(){ | |
var docs = document.querySelectorAll('div.text_layer'), | |
unsel = document.querySelectorAll('*[unselectable]'), | |
promo = document.querySelectorAll('div.page_blur_promo'), | |
outer = document.querySelectorAll('div.blurred_page'), | |
i = 0; | |
for(i=docs.length; i--;) { | |
docs[i].style.color = 'inherit'; | |
docs[i].style.textShadow = ''; | |
} | |
for(i=unsel.length; i--;) { | |
unsel[i].removeAttribute('unselectable'); | |
} | |
for(i=promo.length; i--;) { | |
promo[i].style.display = 'none'; | |
} | |
for(i=outer.length; i--;) { | |
outer[i].classList.remove('blurred_page'); | |
} | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment