googleusercontent

Google image get full resolution

  1. // ==UserScript==
  2. // @name googleusercontent
  3. // @namespace http://qqboxy.blogspot.com/
  4. // @version 0.0.2
  5. // @description Google image get full resolution
  6. // @author QQBoxy
  7. // @match http://*.googleusercontent.com/*
  8. // @match https://*.googleusercontent.com/*
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. (function(){
  13. var URL = document.URL;
  14. var PARAM = URL.match(/(w\d+\-h\d+)((?:\-[rw|p|no]+)+)/);
  15. if(PARAM) {
  16. URL = URL.replace(PARAM[0],"s0");
  17. document.location = URL;
  18. }
  19. })();