Hide header from google cache version of a site

Hides the google cache header on sites.

  1. // ==UserScript==
  2. // @name Hide header from google cache version of a site
  3. // @namespace Joshua Williams
  4. // @version 1.1
  5. // @author Joshua Williams <joshuasrwilliams@gmail.com>
  6. // @license MIT
  7. // @description Hides the google cache header on sites.
  8. // @match *://webcache.googleusercontent.com*
  9. // @grant GM_addStyle
  10. // ==/UserScript==
  11. (function() {
  12. document.querySelector('[class*=google-cache-hdr]').style.display = 'none'
  13. })();