NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Wyborcza.pl po ludzku: Usuń komentarze, które mają negatywną ilość głosów // @namespace wyborczapl.sanity.negativecommentsremover // @description Usuwa komentarze pod artykułami, które mają negatywną ilość głosów. // @copyright 2015, Marcin Lewandowski, http://github.com/mspanc // @icon http://www.wyborcza.pl/aliasy/foto/wyborcza/favicon.ico // @license MIT // @oujs:author mspanc // @include http://*.wyborcza.pl/* // @include http://wyborcza.pl/* // @include https://*.wyborcza.pl/* // @include https://wyborcza.pl/* // @include http://*.wyborcza.biz/* // @include http://wyborcza.biz/* // @include https://*.wyborcza.biz/* // @include https://wyborcza.biz/* // @include http://*.wysokieobcasy.pl/* // @include http://wysokieobcasy.pl/* // @include https://*.wysokieobcasy.pl/* // @include https://wysokieobcasy.pl/* // @version 3 // @grant none // ==/UserScript== var comments = document.body.querySelectorAll(".comment strong.minus") for(var i = 0; i < comments.length; i++) { var comment = comments[i].closest("li.comment"); comment.parentNode.removeChild(comment); }