Skip to content

Instantly share code, notes, and snippets.

@anemology
Last active May 15, 2017 14:07
Show Gist options
  • Save anemology/8cffbd02adf603ce3aee4a1c7f781eaf to your computer and use it in GitHub Desktop.
Save anemology/8cffbd02adf603ce3aee4a1c7f781eaf to your computer and use it in GitHub Desktop.
Bahumut Old Search
// ==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