k Bookmarklet

javascript: void(function() {
var m = location.pathname.match(/^\/user\/([^?#]+)$/);
if (!m) alert("URL doesn't match!");
else location = "/user/video/" + m[1] + "/new-1.html"
}());

Source (xhamster.com)


Download Bookmarklet:

k


View Bookmarklet Code:

Bookmarklet Source Code:

javascript%3A%20void%28function%28%29%20%7B%20%20%20%20var%20m%20%3D%20location.pathname.match%28/%5E%5C/user%5C/%28%5B%5E%3F%23%5D+%29%24/%29%3B%20%20%20%20if%20%28%21m%29%20alert%28%22URL%20doesn%27t%20match%21%22%29%3B%20%20%20%20else%20location%20%3D%20%22/user/video/%22%20+%20m%5B1%5D%20+%20%22/new-1.html%22%20%7D%28%29%29%3B


Rate it:


Tags:

Comments

Comments so far. Add yours.