Firebase docs in English please

Firebase documentation always in english

  1. // ==UserScript==
  2. // @name Firebase docs in English please
  3. // @namespace Symmetry
  4. // @match *://firebase.google.com/*
  5. // @run-at document-start
  6. // @description Firebase documentation always in english
  7. // @version 1.0
  8. // ==/UserScript==
  9.  
  10. if ( ! /hl=en/.test(window.location.search) ) {
  11.  
  12. var newURL = window.location.protocol + "//"
  13. + window.location.host
  14. + window.location.pathname + "/?hl=en"
  15. + window.location.search
  16. + window.location.hash
  17. ;
  18. /*-- replace() puts the good page in the history instead of the
  19. bad page.
  20. */
  21. window.location.replace (newURL);
  22. }