NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name OGMem Beautifier // @namespace RiV-OGMemBeautifier // @version 0.1 // @description removes cells with 0 ships // @author RiV- // @match https://ogmem.com/show/* // @grant none // @updateURL https://openuserjs.org/meta/RiV-/OGMem_Beautifier.meta.js // ==/UserScript== (function() { 'use strict'; $("td:contains(' 0 ') > span").parent().each(function () { var $this = $(this); var $tbody = $this.parent().parent(); var ndx = $this.index() + 1; $tbody.find("tr").each(function () { $(this).find(":nth-child(" + ndx + ")").remove(); }); if (!$tbody.find("td").length) $tbody.parent().parent().parent().remove(); }); //Wer die roten Zahlen gar nicht haben will, die "//" in der nächsten Zeile entfernen //$("td > span").remove(); })();