Skip to content

Instantly share code, notes, and snippets.

@archerImagine
Created August 6, 2014 15:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save archerImagine/d4837c61ad903c614047 to your computer and use it in GitHub Desktop.
Save archerImagine/d4837c61ad903c614047 to your computer and use it in GitHub Desktop.
Bookmarklet code to get the Current webpage's URL and TITLE, and then redirect to a localhost webpage to store both.
javascript:(function(){
var myHref=window.location.href;
var myTitle = document.title;
window.location = "http://localhost:8080/myTutorials/linksSavedtoLocalFile/" +"#"+myHref+"#"+myTitle;
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment