Greasy Fork

Search Liste engine

SearchBox for Family

目前为 2015-06-12 提交的版本。查看 最新版本

此脚本不应直接安装,它是一个供其他脚本使用的外部库。如果您需要使用该库,请在脚本元属性加入:// @require https://update.greasyfork.icu/scripts/10393/56545/Search%20Liste%20engine.js

// ==UserScript==
// @name         Search Liste engine
// @version      0.1
// @description  SearchBox for Family
// @author       Gohan89
// @match        http://www.marchofhistory.com/*
// @grant        none
// ==/UserScript==
$.expr[":"].contains = $.expr.createPseudo(function(arg) {
    return function( elem ) {
        return $(elem).text().toUpperCase().indexOf(arg.toUpperCase()) >= 0;
    };
});
$(document).on("click", ".tabsMenu.ui-tabs-anchor", function(){
   $("div.searchbox").remove();
   $("div.listingStrategie_wrapper").prepend("<div class='searchbox'><input name='search'></div>");
});