Scribd bypass

Script disables blur on text & add full document

Stan na 16-12-2024. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name               Scribd bypass
// @description        Script disables blur on text & add full document
// @author             FLXXX
// @version            1.2
// @license            MIT
// @namespace          https://greasyfork.org/ru/users/938036-flxxx
// @match              *://*.scribd.com/*
// @icon               https://s-f.scribdassets.com/favicon.ico
// @require            https://code.jquery.com/jquery-3.6.3.min.js
// ==/UserScript==
/* eslint-env jquery */
$(document).ready(function () {
    'use strict';
    function removePromoDivs() {
        const promoDivs = document.querySelectorAll('.promo_div');
        promoDivs.forEach(div => div.remove());
    }
    function removeUnselectable() {
        const unselectableElements = document.querySelectorAll('[unselectable="on"]');
        unselectableElements.forEach(el => el.removeAttribute('unselectable'));
    }
    function removeBlurredPage() {
        const blurredElements = document.querySelectorAll('.blurred_page');
        blurredElements.forEach(el => el.classList.remove('blurred_page'));
    }
    function cleanStylesAndAttributes() {
        const allElements = document.querySelectorAll('*');
        allElements.forEach(el => {
            if (el.style.color === 'transparent') {
                el.style.color = '';
            }
            if (el.style.textShadow) {
                el.style.textShadow = '';
            }
            el.removeAttribute('data-initial-color');
            el.removeAttribute('data-initial-text-shadow');
        });
    }
    window.addEventListener('load', () => {
        removePromoDivs();
        removeUnselectable();
        removeBlurredPage();
        cleanStylesAndAttributes();
        const observer = new MutationObserver(() => {
            removePromoDivs();
            removeUnselectable();
            removeBlurredPage();
            cleanStylesAndAttributes();
        });
        observer.observe(document.body, {
            childList: true,
            subtree: true
        });
    });
});