您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Provide archived images preview by replace all tags <a> with tags <img> in each archived images links
当前为
您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
- // ==UserScript==
- // @name WaybackMachine - Image preView on Archive.org pages
- // @description Provide archived images preview by replace all tags <a> with tags <img> in each archived images links
- // @icon https://play-lh.googleusercontent.com/hJnWYDQLRKqXZS7siQe-HeHZfcEFQ-cPS6cMNAKA4ukC5IwHgKHjQR8nWC9AUS-0kO-9
- // @version 1.3.2
- // @author Ravlissimo
- // @match https://web.archive.org/*
- // @require https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
- // @require https://update.greatest.deepsurf.us/scripts/488748/1336185/waitForKeyElements2.js
- // @grant GM_addStyle
- // @license MIT
- // @namespace https://greatest.deepsurf.us/users/921216
- // ==/UserScript==
- var imgExtRegex = new RegExp('(.*\.(gif|png|jpg|jpeg|webp|webm).*)$', 'im');
- var waitForKeyElements;
- waitForKeyElements ("tr > td > a", delinkImage);
- //result = text.slice(-3);
- function delinkImage (jNode) {
- var imgUrl2 = jNode.attr ("href");
- var imgUrl = imgUrl2.replace("*/","/");
- if (imgExtRegex.test (imgUrl) ) {
- //-- Found an image link. Replace contents.
- jNode.html ('<img src="' + imgUrl + '" class="gmDeLinked" alt="GM replaced image">');
- }
- }
- GM_addStyle ( "img.gmDeLinked { border: 1px solid lime; max-width: 70vw; };" );