Blogger Statistics Hider

Hide all statistics info in blogger

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.

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         Blogger Statistics Hider
// @name:zh-TW   Blogger 流量資訊隱藏
// @namespace    http://www.twsiyuan.com/
// @version      1.2
// @description  Hide all statistics info in blogger
// @description:zh-TW  在 Blogger 管理頁面中,隱藏所有的流量統計資訊
// @author       Siyuan
// @match        https://www.blogger.com/home
// @match        https://www.blogger.com/blogger.g*
// @grant        none
// @require      http://code.jquery.com/jquery-latest.js
// ==/UserScript==

$(document).ready(function() {
    'use strict';

    $('a').each(function() {
        var href = $(this).attr('href');
        if (href && href.indexOf('#overviewstats') >= 0){
            $(this).hide();
        }
    });

    var sheet = window.document.styleSheets[0];
    sheet.insertRule('.gwt-Image { visibility: hidden !important; }', sheet.cssRules.length);
    sheet.insertRule('.editPosts tr td:nth-child(6) { display: none !important; }', sheet.cssRules.length);   
    sheet.insertRule('.pages tr td:nth-child(6) { display: none !important; }', sheet.cssRules.length);
});