TW-DB.RechercheItems

rétablit la fonction de recherche d'item

  1. // ==UserScript==
  2. // @name TW-DB.RechercheItems
  3. // @version 1
  4. // @author Pete McLure
  5. // @include http://tw-db.info/*
  6. // @include https://tw-db.info/*
  7. // @grant none
  8. // @description rétablit la fonction de recherche d'item
  9. // @namespace https://gf.qytechs.cn/users/15102
  10. // ==/UserScript==
  11.  
  12.  
  13. if ($('#section_name').html()=='Produits'){
  14. $('input[onkeyup="Items.search(this);"]').removeAttr("onkeyup").attr('id','newSearch').keyup(function(){
  15. var pattern = new RegExp(this.value, 'i');
  16. Items.recherche(pattern);
  17. });
  18. }
  19.  
  20. Items.recherche = function(item){
  21. $("#itemsDiv img").each(function(){
  22. if(this.attributes['onmouseover'].value.match(item)){
  23. $(this).parent().parent().show();
  24. } else {
  25. $(this).parent().parent().hide();
  26. }
  27. });
  28. };

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址