Skip to content

Instantly share code, notes, and snippets.

@larvata
Last active January 31, 2017 09:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save larvata/bd636d7b42abe0353eea to your computer and use it in GitHub Desktop.
Save larvata/bd636d7b42abe0353eea to your computer and use it in GitHub Desktop.
google plus full size image
// ==UserScript==
// @name google plus full size image
// @namespace http://larvata.me/
// @version 0.1
// @description enter something useful
// @author Larvata
// @match *://*.googleusercontent.com/*
// @grant none
// ==/UserScript==
var pathname = window.location.pathname;
var matched = pathname.search(/w\d+-h\d+|s\d+-p/);
if(matched != -1){
var parts = pathname.split('/');
var resPartIndex = parts.length - 2;
parts[resPartIndex] = 's0';
var newPathName = parts.join('/');
window.location.pathname = newPathName;
};
//https://lh3.googleusercontent.com/-wxrscOcx5kk/WI_Jtk0BiJI/AAAAAAABpts/n3H5Fmq04Hsx7wj1OMqiPmREWYXd23QdACJoC/w265-h353-n-rw/001
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment