Notyfikator

Dodaje informacje o powiadomieniach z tagów w karcie.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey, το Greasemonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

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

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Violentmonkey για να εγκαταστήσετε αυτόν τον κώδικα.

θα χρειαστεί να εγκαταστήσετε μια επέκταση όπως το Tampermonkey ή το Userscripts για να εγκαταστήσετε αυτόν τον κώδικα.

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

Θα χρειαστεί να εγκαταστήσετε μια επέκταση διαχείρισης κώδικα χρήστη για να εγκαταστήσετε αυτόν τον κώδικα.

(Έχω ήδη έναν διαχειριστή κώδικα χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

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.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

You will need to install a user style manager extension to install this style.

(Έχω ήδη έναν διαχειριστή στυλ χρήστη, επιτρέψτε μου να τον εγκαταστήσω!)

// ==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);