Last active
July 31, 2019 18:48
-
-
Save arpruss/528a2df110d633a378e6bd2df56e82b2 to your computer and use it in GitHub Desktop.
This file contains 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
(function(){ | |
var url = window.location.href; | |
var m = url.match("/(dp|gp/product)/([^/]+)"); | |
var pid = undefined; | |
if(m) { | |
var pid = m[2]; | |
var s = url.match("[^:]*://[^/]+")[0]; | |
window.open(s+"/gp/offer-listing/"+pid); | |
}})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment