Scribd bypass

Script disables blur on text & add full document

As of 2023-06-04. See the latest version.

  1. // ==UserScript==
  2. // @name Scribd bypass
  3. // @description Script disables blur on text & add full document
  4. // @author BAlexGG
  5. // @version 1.1
  6. // @license MIT
  7. // @namespace https://greatest.deepsurf.us/ru/users/938036-bull-yt
  8. // @match *://*.scribd.com/*
  9. // @icon https://s-f.scribdassets.com/favicon.ico
  10. // @require https://code.jquery.com/jquery-3.6.3.min.js
  11. // ==/UserScript==
  12. /* eslint-env jquery */
  13. $(document).ready(function(){
  14. 'use strict';
  15. if (window.location.href.match(/document\/(\d+)\//) == null) return;
  16. //Remove blocks between pages
  17. $('div.between_page_module').remove();
  18.  
  19. //Remove banners on pages
  20. $('div.auto__doc_page_webpack_doc_page_blur_promo').remove();
  21.  
  22. // Remove blur
  23. $('div.newpage div.text_layer').css('text-shadow', 'black 0px 0px 0px');
  24.  
  25. // Remove unselectable attribute
  26. $('[unselectable]').removeAttr('unselectable');
  27.  
  28. // Remove blurred_page class
  29. $('.blurred_page').removeClass('blurred_page');
  30.  
  31. // Add button to view fill document
  32. var id = window.location.href.match(/document\/(\d+)\//)[1];
  33. var key, maxpages;
  34. fetch('https://ru.scribd.com/doc-page/embed-modal-props/' + id)
  35. .then(response => response.json())
  36. .then(data => {
  37. key = data.access_key;
  38. maxpages = data.page_count;
  39. })
  40. .catch(error => console.error(error));
  41. /*
  42. // Create a new <style> element and append it to the <head> of the document
  43. const styleElement = document.createElement('style');
  44. styleElement.innerHTML = `.red-button {
  45. background-color: red;
  46. color: white;
  47. border: none;
  48. padding: 10px 20px;
  49. font-size: 16px;
  50. cursor: pointer;
  51. border-radius: 10px;
  52. margin-top: 0;
  53. }`;
  54. document.head.appendChild(styleElement);
  55. // Create a button element
  56. var button = $("<button/>")
  57. .text("~ View Full Document ~")
  58. .addClass("red-button")
  59. .click(function() {
  60. window.location.href = window.location.origin + "/embeds/" + id + "/content?start_page=1&view_mode=scroll&access_key=" + key;
  61. });
  62. $(".doc_actions").append(button);
  63. */
  64. })();