// ==UserScript== // @name Yande.re 大图预览 显示艺术家 打开原图 // @version 1.2 // @description Yande.re浏览增强:悬停大图预览,显示艺术家名称,点击名称直接跳转主页,右键名称标记艺术家高亮显示不同颜色,支持双击/键盘翻页,自动显示隐藏图片,直接打开原图按钮 // @description 原脚本已数年未更新,在原作者Joker(Streams)的基础上修改; konachan有限支持(需自行添加匹配),部分功能可能无法使用 // @author Cylirix // @author Joker // @author Streams // @match https://yande.re/* // @grant GM_getValue // @grant GM_setValue // @namespace https://greasyfork.org/users/467741 // @downloadURL none // ==/UserScript== jQuery.noConflict(); jQuery(function ($) { // 全局唯一标识系统 var currentUUID = null; var requestController = null; // 初始化艺术家状态(使用Tampermonkey存储系统) var artistStates = {}; // 从Tampermonkey存储加载数据 try { const savedStates = GM_getValue("artistStates", "{}"); artistStates = JSON.parse(savedStates); } catch (e) { console.error("Error loading artist states:", e); } // 右键菜单容器 const $contextMenu = $('
').css({ position: 'fixed', display: 'none', background: 'rgba(0,0,0,0.7)', borderRadius: '6px', zIndex: 10000, padding: '5px 5px' }).appendTo('body'); // 右键菜单选项 const menuOptions = [ {id: 'favorite', text: '状态1', color: '#ffcc00'}, {id: 'pending', text: '状态2', color: '#ff9900'}, {id: 'ignore', text: '状态3', color: '#999'}, {id: 'clear', text: '清除', color: '#fff'} ]; // 创建菜单项 menuOptions.forEach(option => { $('