您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Added a 'Current version compressed' search button
// ==UserScript== // @name F95 Compressed button // @namespace http://tampermonkey.net/ // @description Added a 'Current version compressed' search button // @version 2 // @author You // @match https://f95zone.to/threads/* // @icon https://www.google.com/s2/favicons?sz=64&domain=f95zone.to // @grant none // ==/UserScript== { var button4 = '<input type="button" value="Compressed" ' + 'style="position: fixed; top: 30%; right: 120px; z-index: 9999;line-height: 30px;font-size: 20px; ">'; jQuery('body').append(button4); jQuery('body').on('click', 'input[type="button"][value="Compressed"]', function() { const searchInput = document.querySelector('.uix_searchInput'); if (searchInput) { searchInput.value = 'Compressed'; const event = new Event('input', { bubbles: true }); searchInput.dispatchEvent(event); const searchButton = document.querySelector('button.button--primary.button--icon--search'); if (searchButton) { searchButton.click(); } } }); var button1 = '<input type="button" value="New+Compressed" ' + 'style="position: fixed; top: 25%; right: 120px; z-index: 9999;line-height: 30px;font-size: 20px; ">'; jQuery('body').append(button1); var labelAppend = document.querySelector('div.p-title h1.p-title-value'); var match = labelAppend.textContent.match(/\[(.*?)\]/); var extractedString = match[1] + ' Compressed'; jQuery('body').on('click', 'input[type="button"][value="New+Compressed"]', function() { const searchInput = document.querySelector('.uix_searchInput'); if (searchInput) { searchInput.value = extractedString; const event = new Event('input', { bubbles: true }); searchInput.dispatchEvent(event); const searchButton = document.querySelector('button.button--primary.button--icon--search'); if (searchButton) { searchButton.click(); } } }); }