poe.trade hide/highlight entry buttons

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

目前为 2016-12-28 提交的版本,查看 最新版本

// ==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.1b
// @grant       none
// ==/UserScript==

function hide_item_parent(node)
{
   node.parentNode.parentNode.parentNode.style.display = 'none';
}


(function () {
  var $ = unsafeWindow.jQuery;
  
  $(".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="this.parentNode.parentNode.parentNode.style.border = \'5px solid #F00\';">Highlight</div>').appendTo($(this));
  });
  
})();