您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Añade botones para buscar el libro en ZLibrary, PDF Archive y Library Genesis usando el ISBN en Amazon
当前为
// ==UserScript== // @license MIT // @name Amazon ISBN Search // @namespace http://tampermonkey.net/ // @version 1.1.3 // @description Añade botones para buscar el libro en ZLibrary, PDF Archive y Library Genesis usando el ISBN en Amazon // @author Daniel // @match https://www.amazon.com/* // @grant none // ==/UserScript== (function() { 'use strict'; // Función para obtener el ISBN desde la estructura específica observada function getISBN() { const isbnElements = document.querySelectorAll("#detailBullets_feature_div li"); for (let element of isbnElements) { if (element.textContent.includes("ISBN-13")) { const isbn = element.querySelector("span:nth-child(2)").textContent.trim(); return isbn; } } return null; } // Función para crear los botones de búsqueda function createSearchButtons(isbn) { const container = document.createElement("div"); container.style.marginTop = "20px"; // Estilo para los botones const buttonStyle = ` padding: 10px; margin: 5px; background-color: #0073e6; color: white; border: none; border-radius: 5px; cursor: pointer; `; // Botón para ZLibrary const zlibraryButton = document.createElement("button"); zlibraryButton.textContent = "Buscar en ZLibrary"; zlibraryButton.style = buttonStyle; zlibraryButton.onclick = () => { window.open(`https://es.z-lib.gs/s/${isbn}`, "_blank"); }; container.appendChild(zlibraryButton); // Botón para PDF Archive const pdfArchiveButton = document.createElement("button"); pdfArchiveButton.textContent = "Buscar en PDF Archive"; pdfArchiveButton.style = buttonStyle; pdfArchiveButton.onclick = () => { window.open(`https://pdfarchive.org/search?q=${isbn}`, "_blank"); }; container.appendChild(pdfArchiveButton); // Botón para Library Genesis const libGenButton = document.createElement("button"); libGenButton.textContent = "Buscar en Library Genesis"; libGenButton.style = buttonStyle; libGenButton.onclick = () => { window.open(`https://libgen.is/search.php?req=+${isbn}&open=0&res=25&view=simple&phrase=1&column=identifier`, "_blank"); }; container.appendChild(libGenButton); // Insertar los botones en la sección de detalles del libro const detailSection = document.querySelector("#detailBullets_feature_div"); if (detailSection) { detailSection.appendChild(container); } } // Ejecutar la función principal al cargar la página window.onload = () => { const isbn = getISBN(); if (isbn) { createSearchButtons(isbn); } else { console.log("ISBN no encontrado en esta página."); } }; })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址