🎉 欢迎访问GreasyFork.Org 镜像站!本镜像站由公众号【爱吃馍】搭建,用于分享脚本。联系邮箱📮

Greasy fork 爱吃馍镜像

Greasy Fork is available in English.

📂 缓存分发状态(共享加速已生效)
🕒 页面同步时间:2025/12/23 05:56:33
🔄 下次更新时间:2025/12/23 06:56:33
手动刷新缓存

Scribd Bypass

Skip Scribd for its free counterpart.

Du musst eine Erweiterung wie Tampermonkey, Greasemonkey oder Violentmonkey installieren, um dieses Skript zu installieren.

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

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

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

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

Sie müssten eine Skript Manager Erweiterung installieren damit sie dieses Skript installieren können

(Ich habe schon ein Skript Manager, Lass mich es installieren!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

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.

(I already have a user style manager, let me install it!)

🚀 安装遇到问题?关注公众号获取帮助

公众号二维码

扫码关注【爱吃馍】

回复【脚本】获取最新教程和防失联地址

// ==UserScript==
// @name       Scribd Bypass
// @description Skip Scribd for its free counterpart.
// @author     573dave
// @version    2.0
// @license    MIT
// @match      *://*.scribd.com/*
// @match      *://ilide.info/doc-viewer-v2*
// @grant      GM_addStyle
// @grant      GM_setValue
// @namespace https://greasyfork.org/users/1241821
// ==/UserScript==

(function() {
  'use strict';

  GM_addStyle(`
    .sb-m{position:fixed;top:0;left:50%;transform:translateX(-50%);display:flex;gap:5px;z-index:10001;background:rgba(255,255,255,.85);padding:5px 10px;border-radius:0 0 5px 5px;box-shadow:0 2px 5px rgba(0,0,0,.2)}
    .sb-b{font:12px/1 sans-serif;padding:5px 10px;background:#FFC017;color:#000;border:none;border-radius:5px;cursor:pointer;transition:.3s}
    .sb-b:hover{background:#E6AC15}
    .sb-e{left:0;width:100%;height:0;position:relative;padding:45px 0 77.2727%}
    .sb-i{position:absolute;inset:0;width:100%;height:100%;border:0}
  `);

  const createButton = (text, onClick) => {
    const btn = document.createElement('button');
    btn.textContent = text;
    btn.className = 'sb-b';
    btn.onclick = onClick;
    return btn;
  };

  const createMenu = () => {
    const menu = document.createElement('div');
    menu.className = 'sb-m';
    document.body.prepend(menu);
    return menu;
  };

  const handleScribd = () => {
    const match = location.href.match(/\/(doc|document|presentation)\/(\d+)\/(.*)/);
    if (match) {
      const [, , id, title] = match;
      GM_setValue('origUrl', location.href);
      document.body.innerHTML = `<div class="sb-e"><iframe class="sb-i" src="https://www.scribd.com/embeds/${id}/content"></iframe></div>`;
      createMenu().appendChild(
        createButton("Download", () => {
          const downloadUrl = `https://ilide.info/docgeneratev2?fileurl=${encodeURIComponent(`https://scribd.vdownloaders.com/pdownload/${id}/${title}`)}&title=${encodeURIComponent(title)}&utm_source=scrfree&utm_medium=queue&utm_campaign=dl`;
          location.href = downloadUrl;
        })
      );
    }
  };

  const handleIlide = () => {
    const match = document.body.innerHTML.match(/https:\/\/ilide\.info\/docdownloadv2[^" ]+/);
    if (match) {
      location.href = `https://ilide.info/viewer/web/viewer.html?file=${encodeURIComponent(match[0])}#page=1`;
    }
  };

  const { hostname } = location;
  if (hostname.includes("scribd.com")) {
    handleScribd();
  } else if (hostname === "ilide.info" && location.pathname.startsWith("/doc-viewer-v2")) {
    handleIlide();
  }
})();