Last active
May 15, 2017 14:07
-
-
Save anemology/8cffbd02adf603ce3aee4a1c7f781eaf to your computer and use it in GitHub Desktop.
Bahumut Old Search
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Bahamut Old Search | |
// @namespace https://gist.github.com/anemology/8cffbd02adf603ce3aee4a1c7f781eaf | |
// @author 獨孤 | |
// @version 1 | |
// @description 巴哈舊搜尋,並可只搜尋一個字 | |
// @grant none | |
// @include https://forum.gamer.com.tw/* | |
// @run-at document-idle | |
// ==/UserScript== | |
(function () { | |
document.querySelector('#searchbox').style.display = 'none'; | |
document.querySelector('#old_search_searchbox').style.display = ''; | |
var SearchInput = document.getElementById('old_search_input'); | |
if (SearchInput.value == '') { | |
SearchInput.value = '\\'; | |
} | |
}) (); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment