Scribd下载按钮(打开下载链接)

在Scribd页面添加一个按钮,打开一个修改过的下载链接,方便访问。

  1. // ==UserScript==
  2. // @name Scribd Downloader Button
  3. // @name:en Scribd Downloader Button (Open Download Link)
  4. // @name:es Botón de Descarga de Scribd (Abrir enlace de descarga)
  5. // @name:fr Bouton de téléchargement Scribd (Ouvrir le lien de téléchargement)
  6. // @name:de Scribd Download Button (Download-Link öffnen)
  7. // @name:zh-CN Scribd下载按钮(打开下载链接)
  8. // @name:zh-TW Scribd下載按鈕(打開下載鏈接)
  9. // @name:it Bottone di download Scribd (Apri il link di download)
  10. // @name:pt-BR Botão de Download Scribd (Abrir link de download)
  11. // @name:ru Кнопка загрузки Scribd (Открыть ссылку для загрузки)
  12. // @name:ja Scribdダウンロードボタン(ダウンロードリンクを開く)
  13. // @name:ko Scribd 다운로드 버튼 (다운로드 링크 열기)
  14. // @name:pl Przycisk pobierania Scribd (Otwórz link do pobrania)
  15. // @name:nl Scribd-downloadknop (Open downloadlink)
  16. // @name:sv Scribd nedladdningsknapp (Öppna nedladdningslänk)
  17. // @name:tr Scribd İndirme Butonu (İndirme Bağlantısını Aç)
  18. // @name:ar زر تحميل Scribd (افتح رابط التنزيل)
  19. // @name:he כפתור הורדה של Scribd (פתח קישור להורדה)
  20. // @name:da Scribd Download-knap (Åbn downloadlink)
  21. // @name:id Tombol Unduh Scribd (Buka tautan unduhan)
  22. // @name:fi Scribd-latauspainike (Avaa latauslinkki)
  23. // @name:th ปุ่มดาวน์โหลด Scribd (เปิดลิงก์ดาวน์โหลด)
  24. // @description Adds a button to the Scribd page to open a modified download link for easier access.
  25. // @description:en Adds a button to the Scribd page to open a modified download link for easier access.
  26. // @description:es Añade un botón a la página de Scribd para abrir un enlace de descarga modificado para un acceso más fácil.
  27. // @description:fr Ajoute un bouton sur la page Scribd pour ouvrir un lien de téléchargement modifié pour un accès plus facile.
  28. // @description:de Fügt der Scribd-Seite eine Schaltfläche hinzu, um einen modifizierten Download-Link für einen einfacheren Zugriff zu öffnen.
  29. // @description:zh-CN 在Scribd页面添加一个按钮,打开一个修改过的下载链接,方便访问。
  30. // @description:zh-TW 在Scribd頁面上添加一個按鈕,打開修改過的下載鏈接,方便訪問。
  31. // @description:it Aggiunge un pulsante alla pagina di Scribd per aprire un link di download modificato per un accesso più facile.
  32. // @description:pt-BR Adiciona um botão na página do Scribd para abrir um link de download modificado para facilitar o acesso.
  33. // @description:ru Добавляет кнопку на страницу Scribd для открытия измененной ссылки для скачивания для удобного доступа.
  34. // @description:ja Scribdページにボタンを追加して、ダウンロードリンクを簡単にアクセスできるように変更します。
  35. // @description:ko Scribd 페이지에 버튼을 추가하여 수정된 다운로드 링크를 쉽게 액세스할 수 있도록 합니다.
  36. // @description:pl Dodaje przycisk na stronie Scribd, aby otworzyć zmodyfikowany link do pobrania w celu łatwiejszego dostępu.
  37. // @description:nl Voegt een knop toe aan de Scribd-pagina om een gemodificeerde downloadlink voor gemakkelijker toegang te openen.
  38. // @description:sv Lägger till en knapp på Scribd-sidan för att öppna en modifierad nedladdningslänk för enklare åtkomst.
  39. // @description:tr Scribd sayfasına, daha kolay erişim için değiştirilmiş bir indirme bağlantısı açan bir düğme ekler.
  40. // @description:ar يضيف زرًا إلى صفحة Scribd لفتح رابط التنزيل المعدل لتسهيل الوصول.
  41. // @description:he מוסיף כפתור לדף Scribd כדי לפתוח קישור הורדה מותאם לשם גישה קלה יותר.
  42. // @description:da Tilføjer en knap til Scribd-siden for at åbne et ændret downloadlink for nemmere adgang.
  43. // @description:id Menambahkan tombol pada halaman Scribd untuk membuka tautan unduhan yang dimodifikasi agar lebih mudah diakses.
  44. // @description:fi Lisää painikkeen Scribd-sivulle, joka avaa muokatun latauslinkin helpompaa käyttöä varten.
  45. // @description:th เพิ่มปุ่มบนหน้า Scribd เพื่อเปิดลิงก์ดาวน์โหลดที่ปรับเปลี่ยนสำหรับการเข้าถึงที่ง่ายขึ้น。
  46. // @namespace https://scribd.downloader.tips/
  47. // @version 1.0.1
  48. // @license MIT
  49. // @author Totapunk
  50. // @match https://*.scribd.com/document/*
  51. // @grant GM_addStyle
  52. // @grant GM_openInTab
  53. // ==/UserScript==
  54. (function() {
  55. 'use strict';
  56.  
  57. // Traducciones para el botón "Descarga"
  58. const translations = {
  59. es: "Descarga",
  60. en: "Download",
  61. fr: "Télécharger",
  62. de: "Herunterladen",
  63. it: "Scarica",
  64. pt: "Baixar",
  65. ru: "Скачать",
  66. zh: "下载",
  67. ja: "ダウンロード",
  68. ko: "다운로드",
  69. ar: "تنزيل",
  70. nl: "Downloaden",
  71. tr: "İndir",
  72. pl: "Pobierz",
  73. sv: "Ladda ner",
  74. no: "Last ned",
  75. da: "Download",
  76. fi: "Lataa",
  77. el: "Λήψη",
  78. hi: "डाउनलोड"
  79. };
  80.  
  81. // Función para obtener la traducción según el idioma del navegador
  82. function getTranslation() {
  83. const userLanguage = navigator.language.slice(0, 2); // Obtener los primeros 2 caracteres del idioma
  84. return translations[userLanguage] || translations['es']; // Default a español si no está traducido
  85. }
  86.  
  87. // Crear el botón
  88. const boton = document.createElement('button');
  89. boton.textContent = getTranslation();
  90. boton.style.position = 'fixed';
  91. boton.style.top = '10px';
  92. boton.style.right = '10px'; // Colocar en la esquina superior derecha
  93. boton.style.padding = '10px 10px'; // Botón más pequeño
  94. boton.style.zIndex = '9999';
  95. boton.style.backgroundColor = '#d1254c';
  96. boton.style.color = 'white';
  97. boton.style.border = 'none';
  98. boton.style.borderRadius = '5px';
  99. boton.style.cursor = 'pointer';
  100. boton.style.fontSize = '12px'; // Tamaño de fuente más pequeño
  101. boton.style.whiteSpace = 'normal'; // Permitir que el texto se divida en varias líneas
  102. boton.style.width = 'auto'; // Ajuste automático al contenido
  103. boton.style.height = 'auto'; // Ajuste automático al contenido
  104. boton.style.textAlign = 'center'; // Centrar el texto dentro del botón
  105.  
  106. // Función para abrir el enlace modificado
  107. boton.addEventListener('click', function() {
  108. // Obtener la URL actual
  109. const url = window.location.href;
  110.  
  111. // Buscar el ID y el nombre del documento en la URL
  112. const match = url.match(/\/document\/(\d+)\/([^\/]+)/);
  113.  
  114. if (match) {
  115. const documentId = match[1]; // ID del documento
  116. const documentName = match[2]; // Nombre del documento
  117.  
  118. // Modificar el dominio y abrir el enlace en una nueva pestaña
  119. const newUrl = `https://scribd.downloader.tips/document/${documentId}/${documentName}`;
  120. window.open(newUrl, '_blank');
  121. } else {
  122. alert('No se pudo encontrar el ID o el nombre del documento en la URL.');
  123. }
  124. });
  125.  
  126. // Insertar el botón en la página
  127. document.body.appendChild(boton);
  128. })();

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址