minusuowanie

minusuowanie konkretnych osób

Bu betiği kurabilmeniz için Tampermonkey, Greasemonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği yüklemek için Tampermonkey gibi bir uzantı yüklemeniz gerekir.

Bu betiği kurabilmeniz için Tampermonkey ya da Violentmonkey gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği kurabilmeniz için Tampermonkey ya da Userscripts gibi bir kullanıcı betiği eklentisini kurmanız gerekmektedir.

Bu betiği indirebilmeniz için ayrıca Tampermonkey gibi bir eklenti kurmanız gerekmektedir.

Bu komut dosyasını yüklemek için bir kullanıcı komut dosyası yöneticisi uzantısı yüklemeniz gerekecek.

(Zaten bir kullanıcı komut dosyası yöneticim var, kurmama izin verin!)

Bu stili yüklemek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için Stylus gibi bir uzantı kurmanız gerekir.

Bu stili yükleyebilmek için Stylus gibi bir uzantı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

Bu stili yüklemek için bir kullanıcı stili yöneticisi uzantısı kurmanız gerekir.

Bu stili yükleyebilmek için bir kullanıcı stili yöneticisi uzantısı yüklemeniz gerekir.

(Zateb bir user-style yöneticim var, yükleyeyim!)

// ==UserScript==
// @name       minusuowanie 
// @namespace  http://www.wykop.pl/*
// @version    1.2
// @description  minusuowanie konkretnych osób
// @match      *://www.wykop.pl/*
// @copyright  Arkatch
// @grant none
// ==/UserScript==
(function(){
    var ELEM = document.getElementById("nav");
    var DIVBUT = document.createElement('div');
    var BUTDEL = document.createElement('input');
    DIVBUT.setAttribute("style", "position:fixed;top:15px;left:40px;z-index: 101;");
    BUTDEL.setAttribute("id", "UsunTO");
    BUTDEL.setAttribute("onclick", "minus()");
    BUTDEL.setAttribute("value", "Minus");
    BUTDEL.setAttribute("type", "button");
    BUTDEL.setAttribute("style", "width:45px;");
    DIVBUT.appendChild(BUTDEL);
    ELEM.appendChild(DIVBUT);

window.minus=function minus(){
	//tu wpisujesz nazwę tego kogo chcesz minusować
	var who = "mobilisinmobile";

	var authors, author, buttonMinus;
	//Blok wszystkich komentarzy
	var itemsStream = document.getElementById('itemsStream');

	//każdy komentarz (wblock to tablica)
	var wblock = itemsStream.getElementsByClassName('wblock lcontrast dC  ');

	//pobieramy nazwę profilu z każdego komentarza
	for(var i=0, j=wblock.length;i<j;i++){
		//pobieramy konkretną nazwę profilu
		authors = wblock[i].getElementsByClassName('author ellipsis')[0];
		author = authors.getElementsByTagName('b')[0].innerHTML;

		if(author == who){
			//jeżeli znajdziemy to minusujemy
			buttonMinus = authors.getElementsByClassName('fa fa-minus')[0];
			buttonMinus.click();
		}
	}
    };
})();