FileCR Search Fix

A simple script to re-add the original Search feature, instead of Google Search.

目前为 2023-01-29 提交的版本。查看 最新版本

// ==UserScript==
// @name        FileCR Search Fix
// @namespace   lemons
// @license     Unlicense
// @match       *://filecr.com/*
// @icon        https://filecr.com/wp-content/uploads/2018/11/favico.png
// @grant       none
// @version     1.2
// @author      lemons
// @description A simple script to re-add the original Search feature, instead of Google Search.
// ==/UserScript==

// readd search
document.querySelector(".nav-bar > .header-logo").outerHTML += `<div class="search-container">
<form class="header--search" method="get" action="https://filecr.com/">
<input type="text" class="header--search-input" id="search-input" value="${new URLSearchParams(location.search).get("s") ?? ""}" placeholder="Search software here..." autocomplete="off" name="s" data-ddg-inputtype="unknown">
<button type="submit" aria-label="search button" class="header--search-submit">
<div class="icon">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="w-5 h-5">
  <path fill-rule="evenodd" d="M9 3.5a5.5 5.5 0 100 11 5.5 5.5 0 000-11zM2 9a7 7 0 1112.452 4.391l3.328 3.329a.75.75 0 11-1.06 1.06l-3.329-3.328A7 7 0 012 9z" clip-rule="evenodd"></path>
</svg>
</div>
</button>
</form>
</div>`;

// remove google sidebar
document.querySelector("#wgs_widget-2").style.display = "none";

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址