KAT - Rearrange Navigation Bar

Changes the navigation bar around a bit and adds values for the feedback and messages tabs

נכון ליום 17-11-2014. ראה הגרסה האחרונה.

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 or Violentmonkey 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.

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.

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

// ==UserScript==
// @name        KAT - Rearrange Navigation Bar
// @namespace   Dr.YeTii
// @description Changes the navigation bar around a bit and adds values for the feedback and messages tabs
// @include     http*://kickass.so/*
// @version     1.01
// @grant       none
// ==/UserScript==

var moreMessagesCount = $('.valueBlock', $('#navigation a[href^="/messenger/"]').first().next()).html();
$('#navigation a[href^="/messenger/"].ajaxLink p').after('<i style="left: 34px; position: absolute; top: -10px; color: rgb(252, 114, 8);">'+moreMessagesCount+'</i>');
var messengerTab = $('#navigation a[href^="/messenger/"]').first().parent().html();
$('#navigation a[href^="/messenger/"]').first().parent().remove();


var moreFeedback = "";
var moreFeedbackCount = "";
if ($('#navigation li li a[href="/feedback/"] .valueBlock').length > 0) {
  moreFeedback = '<i style="left: 27px;" class="valueBubble valueBubbleUser"></i>';
  moreFeedbackCount = '<i style="left: 38px; position: absolute; top: -10px; color: rgb(252, 114, 8);">'+$('#navigation li li a[href="/feedback/"] .valueBlock').html()+'</i>';
}
$('#navigation li li a[href="/feedback/"] .valueBlock, #navigation li li a[href="/feedback/"] i').remove();
var bookmarkTxt = $('#navigation a[href="/bookmarks/"]').first().text();
var feedbackTxt = $('#navigation li li a[href="/feedback/"]').first().text(); // Different languages ;)
$('#navigation li li a[href="/feedback/"]').parent().html('<a href="/bookmarks/" class="ajaxLink"><i class="ka ka16 ka-bookmark"></i>'+bookmarkTxt+'</a>');
$('#navigation a[href="/bookmarks/"]').first().parent().remove();
$('#navigation a[href^="/user/"] .valueBubble').remove();


$('#navigation').prepend('<li><a class="ajaxLink" href="/feedback/"><i class="ka ka-thumbs-up"></i>'+moreFeedback+'<p>'+feedbackTxt+'</p>'+moreFeedbackCount+'</a></li>');
$('#navigation').prepend('<li>'+messengerTab+'</li>');