poe.trade hide/highlight entry buttons

poe.trade helper: add Hide & Highlight buttons to results for easier browsing

目前為 2016-12-30 提交的版本,檢視 最新版本

// ==UserScript==
// @name        poe.trade hide/highlight entry buttons
// @namespace   io.poe.trade
// @description poe.trade helper: add Hide & Highlight buttons to results for easier browsing
// @include     http://poe.trade/*
// @version     0.2
// @grant       none
// @require     https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js
// ==/UserScript==

/*
Changelog:
- 0.2:
    - always explicitly load jQuery (for compatibility with Chrome)
    - made the "Highlight" button a toggle
*/
function hide_item_parent(node)
{
   node.parentNode.parentNode.parentNode.style.display = 'none';
}

(function () {
  $(".icon-td").each(function(i) {
    $('<div class="button tiny" onclick="this.parentNode.parentNode.parentNode.style.display = \'none\';">Hide</div>').appendTo($(this));
    $('<div class="button tiny" onclick="{var t = this.parentNode.parentNode.parentNode; if (t.style.borderWidth == \'5px\') {t.style.border = \'1px #333\';} else {t.style.border = \'5px solid #F00\';};};">Highlight</div>').appendTo($(this));
  });

})();

QingJ © 2025

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