Last active
January 31, 2017 09:34
-
-
Save larvata/bd636d7b42abe0353eea to your computer and use it in GitHub Desktop.
google plus full size image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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