Notyfikator

Dodaje informacje o powiadomieniach z tagów w karcie.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name        Notyfikator
// @include     http://www.wykop.pl/*
// @description Dodaje informacje o powiadomieniach z tagów w karcie.
// @author      Deykun - aktualizacja dodatku Wicepsa
// @version     1.1
// @grant       none
// @run-at	document-end
// @namespace https://greasyfork.org/users/2399
// ==/UserScript==


var d = document.title;

function c(){
    //var wiad = $('#notificationsBtn span:eq(2):not(.dnone)').html();
    //var tagi = $('#hashNotificationsBtn span:eq(2):not(.dnone)').html();
	var tagi = $('b[id="hashtagsNotificationsCount"]').eq(0).text();
	var wiad = $('b[id="notificationsCount"]').eq(0).text();

    if(wiad == undefined ) wiad=0;
    if(tagi == undefined) tagi=0;

if (wiad!=0){
    if (tagi != 0){
    document.title = "("+wiad+") [#"+tagi+"] "+d;
    }

    else{
    document.title = "("+wiad+") "+d;
    }}



else{
    if (tagi != 0){
    document.title = "[#"+tagi+"] "+d;
    }}}

window.setInterval(c, 1000);