Google Docs - "Docs home" link replacement

Changes the "Docs home" button to link you to your Drive home instead. I find this to be very convenient now that Google's made Docs and Drive separate things again.

  1. // ==UserScript==
  2. // @name Google Docs - "Docs home" link replacement
  3. // @namespace http://github.com/scoliono
  4. // @version v1.0
  5. // @description Changes the "Docs home" button to link you to your Drive home instead. I find this to be very convenient now that Google's made Docs and Drive separate things again.
  6. // @author James Shiffer
  7. // @match https://docs.google.com/*
  8. // @grant none
  9. // ==/UserScript==
  10.  
  11. var x = document.getElementById('docs-branding-container');
  12. x.innerHTML = '<a href="https://drive.google.com" data-tooltip="Drive home" aria-label="Drive home"><div id="docs-drive-logo"></div><img id="drive-logo" src="https://ssl.gstatic.com/docs/doclist/images/infinite_arrow_favicon_4.ico"/></a>';
  13.  
  14. var y = document.getElementById('drive-logo');
  15. y.style.margin = '10px 3px';