// ==UserScript== // @name ページ内検索(アニメーションなし) // @author dI4e6o // @description ページ内検索をアニメーションなしで行います。アドレスバーのアイコンをタップで、ページ上部に入力フォームが出現するので文字入力。アドレスバーのアイコンをタップで検索します。Xでフォームを消去します。 // @version 1.1 // @include https://* // @include http://* // @require jquery // @require api-notification // @gallery-id yddoqojmdnqugjpcigeimnchsdlgznjt // ==/UserScript== function search_text() { document.activeElement.blur(); var sstr = document.getElementById("stext").value; document.getElementById("stext").value=""; var found = window.find(sstr,false, false, true, false, false, false); document.getElementById("stext").value=sstr; } function remove_all() { jQuery("#stext").remove(); jQuery("#remove").remove(); sflg=false; } var sflg=false; function serchbox(){ if (sflg==true){ search_text(); } else{ var inputform= '\
'; jQuery(document.body).prepend(inputform); jQuery("#remove").click(function(){remove_all();}); sflg=true; document.getElementById("stext").focus(); } return true; } SLEX_showNotification('', serchbox);