[Konachan] Front Page: Tag Completion

Adds tag completion to the search box on the front page.

ของเมื่อวันที่ 28-10-2014 ดู เวอร์ชันล่าสุด

  1. // ==UserScript==
  2. // @name [Konachan] Front Page: Tag Completion
  3. // @namespace Zolxys
  4. // @description Adds tag completion to the search box on the front page.
  5. // @include /^https?://konachan\.(com|net)/?($|\?|#)/
  6. // @version 1.1
  7. // ==/UserScript==
  8. var f = String(function(){
  9. new TagCompletionBox(document.getElementById('tags'));
  10. if (TagCompletion)
  11. TagCompletion.observe_tag_changes_on_submit(document.getElementById('tags').up('form'), document.getElementById('tags'), null);
  12. });
  13. var ne = document.createElement('script');
  14. ne.setAttribute('type','text/javascript');
  15. ne.innerHTML=f.substring(f.indexOf('\n') + 1, f.lastIndexOf('}'));
  16. document.head.appendChild(ne);