Last active
August 29, 2015 14:04
-
-
Save negipo/b9da09603289f640ed82 to your computer and use it in GitHub Desktop.
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
// based on https://github.com/r7kamura/amazon-url-modifier | |
var asinElement = $('#ASIN, input[name="idx.asin"], input[name="ASIN.0"]'); | |
if (asinElement.length > 0) { | |
window.history.pushState({}, '', '/dp/' + asinElement.val() + '/polog-22'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment