GameFAQS Auto-Redirect to Printable

Whenever a GameFAQs FAQ is loaded, redirect to the Printable Version of said FAQ.

  1. // ==UserScript==
  2. // @name GameFAQS Auto-Redirect to Printable
  3. // @namespace rudicron
  4. // @description Whenever a GameFAQs FAQ is loaded, redirect to the Printable Version of said FAQ.
  5. // @include http://www.gamefaqs.com/*/*/faqs/*
  6. // @include https://www.gamefaqs.com/*/*/faqs/*
  7. // @exclude http://www.gamefaqs.com/*/*/faqs/*?print=*
  8. // @exclude https://www.gamefaqs.com/*/*/faqs/*?print=*
  9. // @exclude http://www.gamefaqs.com/*/*/faqs/*&print=*
  10. // @exclude https://www.gamefaqs.com/*/*/faqs/*&print=*
  11. // @include http://gamefaqs.gamespot.com/*/*/faqs/*
  12. // @include https://gamefaqs.gamespot.com/*/*/faqs/*
  13. // @exclude http://gamefaqs.gamespot.com/*/*/faqs/*?print=*
  14. // @exclude https://gamefaqs.gamespot.com/*/*/faqs/*?print=*
  15. // @exclude http://gamefaqs.gamespot.com/*/*/faqs/*&print=*
  16. // @exclude https://gamefaqs.gamespot.com/*/*/faqs/*&print=*
  17. // @version 1.3
  18. // @grant none
  19. // @run-at document-start
  20. // ==/UserScript==
  21.  
  22. //attempt move before anything else runs (would really like to do this before css and other js are retrieved, but GM limitations.)
  23. if ( window.location.href.includes("?") ) {
  24. window.location.replace(window.location.href.concat("&print=1"));
  25. } else {
  26. window.location.replace(window.location.href.concat("?print=1"));
  27. }