NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name BoardGamePricesUK // @namespace BoardGamePricesUK.ssieth.co.uk // @description BoardGamePrices.co.uk with UK only stores // @include https://boardgameprices.co.uk/item/* // @version 0.0.1 // @grant none // ==/UserScript== var pageType = ""; var aryURL; aryURL = document.location.pathname.split("/"); if (aryURL.length > 2) { pageType = aryURL[2]; } console.log(pageType); switch (pageType) { case "pricedrops": $("table.alerts tbody tr").each(function() { var $eventCell = $(this).find("td:eq(2) img"); var imgFlag = $eventCell.attr("src"); if (imgFlag && imgFlag.indexOf("GB.png") === -1) { $(this).remove(); } }); break; case "show": $("table.pricelist tbody tr").each(function() { var imgFlag = $(this).find("td.storecolumn span span img:last").attr("src"); console.log(imgFlag); if (imgFlag && imgFlag.indexOf("GB.png") === -1) { $(this).remove(); } }); break; }