Skip to content

Instantly share code, notes, and snippets.

@akaleeroy
Last active May 30, 2018 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save akaleeroy/480ef64a62a29654039a to your computer and use it in GitHub Desktop.
Save akaleeroy/480ef64a62a29654039a to your computer and use it in GitHub Desktop.
Add to Reddit Bookmarklet

Add to Reddit Bookmarklet

Bookmarklet to quickly submit links to your subreddit of choice. Replace YOURSUBREDDITHERE accordingly.

  • Opens in new window so it doesn't navigate away from playing music/video.
  • On YouTube it grabs the title without the - YouTube termination.
javascript:(function(){t=document.querySelector('.ytp-title-link');if(!t){t=document.title||""}else{t=t.textContent}m="http://www.reddit.com/r/YOURSUBREDDITHERE/submit?url="+encodeURIComponent(location.href)+"&title="+encodeURIComponent(t);w=window.open(m,"addwindow");setTimeout(function(){w.focus()},250)})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment