您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Re-enable Text-to-Image in GameFAQs signatures
// ==UserScript== // @name Text-to-Image // @namespace http://tampermonkey.net/ // @version 1.0 // @description Re-enable Text-to-Image in GameFAQs signatures // @author Brock Adams with SUPER MINOR edits by -l_____________l- // @match https://gamefaqs.gamespot.com/boards/* // @grant none // ==/UserScript== // most of this is from https://stackoverflow.com/questions/18709491/use-greasemonkey-to-change-text-to-images-on-a-static-site lol (function() { 'use strict'; var $ = window.$; var imageExtensions = ["gif", "png", "jpg", "bmp"]; var imgExtRegex = new RegExp( '\\.(' + imageExtensions.join('|') + ')$', 'i' ); // console.log(imgExtRegex); //-- This jQuery selector is custom for each new site... var imgLinks = $(".sig_text > a"); // console.log(imgLinks); //-- Also custom for the site... var urlBase = ""; //-- Remove non-image links. var finalLinks = imgLinks.filter(function () { // console.log(imgExtRegex.test(this.textContent)); return imgExtRegex.test(this.textContent); }); finalLinks.each(function () { var jThis = $(this); // This is one of the links var filename = $.trim(jThis.text()); // console.log(filename); //-- Rreplace link content with image: jThis.html( '<img src="' + urlBase + filename + '" height="200" />' ); }); } )();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址