Notyfikator

Dodaje informacje o powiadomieniach z tagów w karcie.

You will need to install an extension such as Tampermonkey, Greasemonkey or Violentmonkey to install this script.

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

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

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

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

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

(I already have a user script manager, let me install it!)

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.

ستحتاج إلى تثبيت إضافة مثل Stylus لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتتمكن من تثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

ستحتاج إلى تثبيت إضافة لإدارة أنماط المستخدم لتثبيت هذا النمط.

(لدي بالفعل مثبت أنماط للمستخدم، دعني أقم بتثبيته!)

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