您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a search box for collages to the search bar
当前为
// ==UserScript== // @name PTH Collages on searchbar // @version 0.4 // @description Add a search box for collages to the search bar // @author Chameleon // @include http*://redacted.ch/* // @grant none // @namespace https://gf.qytechs.cn/users/87476 // ==/UserScript== (function() { 'use strict'; if(window.localStorage.hideLog != "false") document.getElementById('searchbar_log').style.display='none'; var li=document.createElement('li'); li.setAttribute('id', 'searchbar_collages'); var before=document.getElementById('searchbar_requests'); before.parentNode.insertBefore(li, before); var form=document.createElement('form'); li.appendChild(form); form.setAttribute('class', 'search_form'); form.setAttribute('name', 'collages'); form.setAttribute('action', 'collages.php'); form.setAttribute('method', 'get'); var input=document.createElement('input'); form.appendChild(input); input.placeholder="Collages"; input.value="Collages"; input.setAttribute('name', 'search'); input.setAttribute('size', 17); input.setAttribute('onfocus', "if (this.value == 'Collages') { this.value = ''; }"); input.setAttribute('onblur', "if (this.value == '') { this.value = 'Collages'; }"); input.setAttribute('type', 'text'); })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址