您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds overflow visibility to text labels in Pimeye results and opens a Google link on click
// ==UserScript== // @name Pimeye partial unblur // @version 1.2 // @description Adds overflow visibility to text labels in Pimeye results and opens a Google link on click // @author SH3LL // @match https://pimeyes.com/en/results/* // @grant none // @namespace https://greasyfork.runtimutd.eu.org/users/762057 // ==/UserScript== (function() { 'use strict'; const processedSpans = new Set(); // Set to track processed spans function addOverflowVisible() { const spans = document.querySelectorAll('span[data-v-d11d31e3]'); spans.forEach(span => { if (!processedSpans.has(span)) { // Check if the span has already been processed span.style.overflow = 'visible'; span.style.maxWidth = '900px'; // Add a click listener span.addEventListener('click', function(event) { event.preventDefault(); // Prevent the span's default behavior const text = span.textContent.trim().replace("https://","").replace("http://",""); // Get the span's text if (text) { const googleSearchUrl = `https://www.google.com/search?q=${encodeURIComponent(text)}`; window.open(googleSearchUrl, '_blank'); // Open the link in a new tab } }); processedSpans.add(span); // Add the span to the set of processed spans } }); } // Run the function on startup and on every DOM change addOverflowVisible(); const observer = new MutationObserver(addOverflowVisible); observer.observe(document.body, { childList: true, subtree: true }); })();