您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Provides a button to open an auto updating page containing only images from the book preview of Google books
- // ==UserScript==
- // @name Images from Google books preview
- // @namespace https://heterorrhina.in/
- // @version 0.1
- // @description Provides a button to open an auto updating page containing only images from the book preview of Google books
- // @author Umesh Mohan
- // @match https://books.google.co.in/books*
- // @grant none
- // ==/UserScript==
- var imgsrcL, imgWindow, br, viewport, link;
- function updateimgList() {
- var imgL = viewport.getElementsByTagName("img"), imgN, imgsrc, img;
- for (imgN in imgL) {
- imgsrc = imgL[imgN].src;
- if (imgsrc == undefined || imgsrc == "") {continue;}
- if (imgsrcL.indexOf(imgsrc) == -1) {
- imgsrcL.push(imgsrc);
- img = imgWindow.document.createElement("img");
- img.style.width = "100%";
- img.src = imgsrc;
- imgWindow.document.body.appendChild(img);
- imgWindow.document.body.appendChild(br);
- }
- }
- }
- function Refresh() {
- viewport = document.getElementById("viewport")
- viewport.addEventListener("DOMSubtreeModified",updateimgList,false);
- imgWindow = window.open();
- br = imgWindow.document.createElement("br");
- imgsrcL = [];
- updateimgList();
- imgWindow.document.title = document.title;
- }
- link = document.createElement("a");
- link.innerHTML = "?";
- link.style.cursor = "pointer";
- link.onclick = Refresh;
- document.getElementsByClassName("kd-appname")[0].appendChild(link);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址