zikuk zikuk
380
BLOG

Uśmiercić nicka

zikuk zikuk Technologie Obserwuj notkę 42

Jak pozbyć się z Salonu niechcianych, przebrzydłych osobników? Wielu zadaje sobie to pytanie.

Dziś odpowiedź :)

No, łatwo nie jest, ale "nie ma rzeczy niemożliwych" jak mawia każdy komu skończył się papier toaletowy.

No to zaczynamy.

1. Instalacja dodatku do przeglądarki (Chrome)

Instalujemy dodatek   Custom JavaScript for websites   który pozwoli nam na wstrzyknięcie stosownego kodu do strony.

image

Po instalacji dodatku obok paska adresu pojawi się ikonka cjs.

image


2. Wprowadzanie kodu.

Po kliknięciu w ikonkę cjs pojawi nam się okienko:

image


... w które po prostu wklejamy kod znajdujący się na końcu notki i klikamy SAVE.


3. Wybieramy ofiarę*

Wchodzimy na pierwszą z brzegu notkę naszej ofiary, znajdujemy jej komentarz i klikając prawym klawiszem na nicku kopiujemy adres linku

image


Po co nam adres ofiary?

No przecież żeby zabić ofiarę trzeba znać jej adres ;)


4. Kod

javascript:
function onclick_(){
document.getElementsByTagName("body")[0].setAttribute('onclick', 'st()');
}
function usmierc() {
    var usmierceni = [
        "https://www.salon24.pl/u/guciopucio/",
        "https://www.salon24.pl/u/amstern/"

    ];
    //blokowanie pod notkami
    for (x = 0; x != document.getElementsByClassName('ci').length; x++) {
        y = "";
        if (document.getElementsByClassName('ci')[x].getElementsByClassName('author').length > 0) {
            y = document.getElementsByClassName('ci')[x].getElementsByClassName('author')[0].href;
        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y == usmierceni[row]) {
                document.getElementsByClassName('ci')[x].style.display = 'none';
            }
        }
    }
    //blokowanie salon.dyskusje
    for (x = 0; x != document.getElementsByClassName('disqus-list__item').length; x++) {
        var y2 = "";
        if (document.getElementsByClassName('disqus-list__item')[x].getElementsByTagName('a').length > 0) {
            y2 = document.getElementsByClassName('disqus-list__item')[x].getElementsByTagName('a')[0].href;
        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y2 == usmierceni[row]) {
                document.getElementsByClassName('disqus-list__item')[x].style.display = 'none';
            }
        }
    }
    //blokowanie w najnowszych na dole
    for (var x = 0; x != document.getElementsByClassName('posts-latest-hp').length; x++) {
        var y = "";
        if (document.getElementsByClassName('posts-latest-hp')[x].getElementsByTagName('a').length > 1) {
            y = document.getElementsByClassName('posts-latest-hp')[x].getElementsByTagName('a')[1].href;
        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y == usmierceni[row]) {
                document.getElementsByClassName('posts-latest-hp')[x].style.display = 'none';
            }
        }
    }
    //blokowanie najnowsze notki
    for (var x = 0; x != document.getElementsByClassName('posts-latest').length; x++) {
        y = "";
        if (document.getElementsByClassName('posts-latest')[x].getElementsByTagName('a').length > 0) {
            y = document.getElementsByClassName('posts-latest')[x].getElementsByTagName('a')[0].href;
        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y == usmierceni[row]) {
                document.getElementsByClassName('posts-latest')[x].style.display = 'none';
            }
        }
    }
//blokowanie sg1
  for (var x = 0; x != document.getElementsByClassName('grid-item grid-type-article ').length; x++) {
        var y = "";
        if (document.getElementsByClassName('grid-item grid-type-article ')[x].getElementsByTagName('a').length > 6) {
            y = document.getElementsByClassName('grid-item grid-type-article ')[x].getElementsByTagName('a')[6].href;
        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y == usmierceni[row]) {
                document.getElementsByClassName('grid-item grid-type-article ')[x].style.display = 'none';
            }
        }
    }
 //blokowanie sg2
  for (var x = 0; x != document.getElementsByClassName('grid-item grid-type-article-top-list ').length; x++) {
        var y = "";
        if (document.getElementsByClassName('grid-item grid-type-article-top-list ')[x].getElementsByTagName('a').length > 6) {
            y = document.getElementsByClassName('grid-item grid-type-article-top-list')[x].getElementsByTagName('a')[6].href;

        }
        for (row = 0; row < usmierceni.length; row++) {
            if (y == usmierceni[row]) {
                document.getElementsByClassName('grid-item grid-type-article-top-list ')[x].style.display = 'none';
            }
        }
    }

}
st();
onclick_();
function st() {
    usmierc();
    setTimeout(function() {
        usmierc();
    }, 100);
    setTimeout(function() {
        usmierc();
    }, 200);
    setTimeout(function() {
        usmierc();
    }, 400);
    setTimeout(function() {
        usmierc();
    }, 800);
    setTimeout(function() {
        usmierc();
    }, 1600);
    setTimeout(function() {
        usmierc();
    }, 3200);
    setTimeout(function() {
       onclick_();
    }, 3500);
}



W kodzie widzimy nasze ofiary:

[
"https://www.salon24.pl/u/guciopucio/",
"https://www.salon24.pl/u/amstern/"
];

To właśnie nasza lista śmierci - adresy ofiar w cudzysłowach oddzielone przecinkiem.

Jaki jest efekt nickobójstwa?

Oto on:

image


Ofiary zostały rozwalcowane do ledwie widocznych linii :D


P.S. Nie zapomnijmy jutro zapalić świeczkę ofiarom...


* Ofiary zostały wybrane najzupełniej przypadkowo i wyłącznie do celów szkoleniowych :)



UWAGI:

Dodatków wstrzykujących kod do stron trochę jest.

Jeśli korzystamy z Firefoxa możemy zainstalować sobie jakiś inny injector np. ten:

https://addons.mozilla.org/pl/firefox/addon/jsinjector/

Też działa, a obsługa jest podobna tylko tutaj sami wpisujemy domenę salon24.pl

Po instalacji na pasku pojawi się mała strzykawka którą klikamy po czym pojawia się okno:

image


zikuk
O mnie zikuk

Nowości od blogera

Komentarze

Inne tematy w dziale Technologie