Scribd bypass

Script disables blur on text & add full document

Από την 16/12/2024. Δείτε την τελευταία έκδοση.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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
        });
    });
});