Sleazy Fork is available in English.

HV Potion bar

吃药

  1. // ==UserScript==
  2. // @name HV Potion bar
  3. // @namespace Potionbar
  4. // @version 0.82.0
  5. // @description 吃药
  6. // @match http://hentaiverse.org/?s=Battle*
  7. // @copyright 2015, ggxxsol
  8. // ==/UserScript==
  9. if (!document.getElementById("togpane_log"))return
  10. if (document.querySelector(".btcp"))return
  11. function itembar(itemno)
  12. {
  13. if(tempb=document.getElementById('ikey_'+(itemno*1+1)))return tempb;
  14. else return false;
  15. }
  16. array = ['HPD', 'HP', 'MPD','MP','SPD','SP']; //可修改名称,最多就六个,对应1-6的药水
  17. array1 = ['green', 'green', 'blue','blue','red','red'];//可修改颜色,最多就六个
  18. for (var i = 0; i < 6 ; i++ )
  19. {
  20. ccc = document.createElement('div');
  21. ccc.style.cssText = "font-size:15pt;line-height:2.5;color:"+array1[i]+";z-index:100;width: 50px;height: 45px;position:absolute;left:"+(500+i*60)+"px;top:5px"//可调整位置
  22. ccc.innerHTML=array[i]
  23. if(itembar(i))
  24. {
  25. ccc.value=i*1+1
  26. ccc.onclick=function(){document.getElementById('ikey_'+this.value).onclick()}
  27. ccc.onmouseover=function(){this.style.background='rgba(63,237,208,0.50)'}
  28. ccc.onmouseout=function(){this.style.background=''}
  29. ccc.style.cursor='pointer'
  30. }
  31. else
  32. {
  33. ccc.style.background="white"
  34. }
  35. document.body.appendChild(ccc);
  36. }