Blogger 流量資訊隱藏

在 Blogger 管理頁面中,隱藏所有的流量統計資訊

您需要先安裝使用者腳本管理器擴展,如 TampermonkeyGreasemonkeyViolentmonkey 之後才能安裝該腳本。

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

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyViolentmonkey 後才能安裝該腳本。

您需要先安裝使用者腳本管理器擴充功能,如 TampermonkeyUserscripts 後才能安裝該腳本。

你需要先安裝一款使用者腳本管理器擴展,比如 Tampermonkey,才能安裝此腳本

您需要先安裝使用者腳本管理器擴充功能後才能安裝該腳本。

(我已經安裝了使用者腳本管理器,讓我安裝!)

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展,比如 Stylus,才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

你需要先安裝一款使用者樣式管理器擴展後才能安裝此樣式

(我已經安裝了使用者樣式管理器,讓我安裝!)

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