hwm_new_lot_top_href

Ссылка на создание нового лота в верхюю часть страницы рынка

当前为 2015-10-27 提交的版本,查看 最新版本

  1. //
  2. // ==UserScript==
  3. // @name hwm_new_lot_top_href
  4. // @author Pahan https://greasyfork.org/uk/users/18377-pahan
  5. // @namespace hwm_pahan
  6. // @description Ссылка на создание нового лота в верхюю часть страницы рынка
  7. // @homepage https://greasyfork.org/en/users/18377-pahan
  8. // @icon http://dcdn.heroeswm.ru/avatars/30/nc-5/30547.gif
  9. // @version 1.0
  10. // @encoding utf-8
  11. // @include http://*heroeswm.ru/auction.php*
  12. // @include http://*lordswm.com/auction.php*
  13. // @include http://178.248.235.15/auction.php*
  14. // @grant GM_deleteValue
  15. // @grant GM_getValue
  16. // @grant GM_listValues
  17. // @grant GM_setValue
  18. // @grant GM_addStyle
  19. // @grant GM_log
  20. // @grant GM_openInTab
  21. // @grant GM_xmlhttpRequest
  22. // ==/UserScript==
  23.  
  24. function BeBeTDGet(AHTML)
  25. {
  26. var els = document.getElementsByTagName('td');
  27. for( var i = 0; i < els.length; i++ )
  28. if (els[i].innerHTML == AHTML)
  29. return els[i];
  30. }
  31.  
  32. function AddNewLotURL()
  33. {
  34. var LTD = BeBeTDGet('\u041A\u0430\u0442\u0435\u0433\u043E\u0440\u0438\u0438');
  35. LTD.innerHTML = '<b><center><a href="auction_new_lot.php">Выставить лот</a></center></b>';
  36. }
  37.  
  38. AddNewLotURL();