Sleazy Fork is available in English.

HV Hide Infinite Items

Hide items with infinite supply on the "All" tab of the Item Shop

Pada tanggal 08 Juli 2015. Lihat %(latest_version_link).

  1. // ==UserScript==
  2. // @name HV Hide Infinite Items
  3. // @description Hide items with infinite supply on the "All" tab of the Item Shop
  4. // @include http://hentaiverse.org/?s=Bazaar&ss=is*
  5. // @version 0.0.1.20150708185215
  6. // @namespace https://greasyfork.org/users/2233
  7. // ==/UserScript==
  8.  
  9. /*** Settings ***/
  10. if(typeof blist == 'undefined') {
  11. var blist = [ // Items on the list are hidden. Edit it to suit your own needs.
  12. /Featherweight|Voidseeker/i,
  13. /(Low|Mid)-Grade/i,
  14. /High-Grade (Metals|Leather)/i,
  15. /Scroll of (Swiftness|Shadows|Absorption|Life|(the Gods))/i,
  16. ]
  17. }
  18. /*** End of Settings ***/
  19.  
  20. var wnd = window
  21. var doc = wnd.document
  22. var loc = location
  23. var href = loc.href
  24.  
  25. var $ = function(e, css) { if(!css) { css=e; e=doc }; return e.querySelector(css) }
  26. var $$ = function(e, css) { if(!css) { css=e; e=doc }; return e.querySelectorAll(css) }
  27.  
  28. if(/&ss=is&?/.test(href)) {
  29. if(/&filter=all/.test(href) || (!/&filter=/.test(href))) {
  30. var shop_pane = $('#shop_pane')
  31. var items = $$(shop_pane, '.idp')
  32. var supplies = $$(shop_pane, '.ii')
  33. for(var i=0, len=items.length; i<len; i++) {
  34. if(isNaN(parseInt(supplies[i].textContent))) {
  35. items[i].parentNode.parentNode.style.display = 'none'
  36. }
  37. for(var j=0, len2=blist.length; j<len2; j++) {
  38. if(blist[j].test(items[i].textContent)) {
  39. items[i].parentNode.parentNode.style.display = 'none'
  40. }
  41. }
  42. }
  43. }
  44. }