Guardian [Reload Page in Classic View] button

Adds a button to the bottom of theGuardian.com's web pages. The button reloads the page in Classic View.

  1. // ==UserScript==
  2. // @name Guardian [Reload Page in Classic View] button
  3. // @namespace
  4. // @description Adds a button to the bottom of theGuardian.com's web pages. The button reloads the page in Classic View.
  5. // @include http://www.theguardian.com/*
  6. // @include http*://*.theguardian.com/*
  7. // @version 0.1
  8. // @grant lellel
  9. // @icon http://static.guim.co.uk/favicon.ico
  10. // ==/UserScript==
  11.  
  12.  
  13.  
  14.  
  15. var input=document.createElement("input");
  16. input.type="button";
  17. input.value="Reload Page in Classic View";
  18. input.onclick = showAlert;
  19. document.body.appendChild(input);
  20. function showAlert()
  21. {
  22. window.location.search += '?view=classic';
  23. }
  24.