Blogger Statistics Hider

Hide all statistics info in blogger

  1. // ==UserScript==
  2. // @name Blogger Statistics Hider
  3. // @name:zh-TW Blogger 流量資訊隱藏
  4. // @namespace http://www.twsiyuan.com/
  5. // @version 1.2
  6. // @description Hide all statistics info in blogger
  7. // @description:zh-TW 在 Blogger 管理頁面中,隱藏所有的流量統計資訊
  8. // @author Siyuan
  9. // @match https://www.blogger.com/home
  10. // @match https://www.blogger.com/blogger.g*
  11. // @grant none
  12. // @require http://code.jquery.com/jquery-latest.js
  13. // ==/UserScript==
  14.  
  15. $(document).ready(function() {
  16. 'use strict';
  17.  
  18. $('a').each(function() {
  19. var href = $(this).attr('href');
  20. if (href && href.indexOf('#overviewstats') >= 0){
  21. $(this).hide();
  22. }
  23. });
  24.  
  25. var sheet = window.document.styleSheets[0];
  26. sheet.insertRule('.gwt-Image { visibility: hidden !important; }', sheet.cssRules.length);
  27. sheet.insertRule('.editPosts tr td:nth-child(6) { display: none !important; }', sheet.cssRules.length);
  28. sheet.insertRule('.pages tr td:nth-child(6) { display: none !important; }', sheet.cssRules.length);
  29. });