title: Universal reddit share button
body: <p>So I want to make a bookmark that lets me share any page I'm on and has that page's URL already inputted. </p>
  
  <p>For example this </p>
  
  <pre><code>https://www.reddit.com/submit?url=http%3A%2F%2Farstechnica.com%2Fscience%2F2015%2F04%2Fsupernova-differences-could-change-our-understanding-of-dark-energy%2F&amp;title=Supernova+differences+could+change+our+understanding+of+dark+energy
  </code></pre>
  
  <p>will send you to Reddit with the URL (and title, but I'm not concerned with that) already input.</p>
  
  <p>I have used <code>location.href</code> in this bookmark </p>
  
  <pre><code>javascript:location.href+="&amp;feature=mfu_in_order&amp;list=UL"
  </code></pre>
  
  <p>while on a YouTube video to add <code>&amp;feature=mfu_in_order&amp;list=UL</code> to the end of the URL of the page I'm on.</p>
  
  <p>I tried to add <code>location.href</code> to <code>https://www.reddit.com/submit?url=</code>, but I get a blank submit page. </p>
  
  <p>I know next to nothing about JavaScript, so forgive me if this in not possible. I think this might be failing because of same origin?</p>
  
  <p>If that route doesn't work, I also have a universal facebook share bookmark</p>
  
  <p><code>javascript:var d=document,f='http://www.facebook.com/share',l=d.location,e=encodeURIComponent,p='.php?src=bm&amp;v=4&amp;i=1238893127&amp;u='+e(l.href)+'&amp;t='+e(d.title);1;try{if (!/^(.*\.)?facebook\.[^.]*$/.test(l.host))throw(0);share_internal_bookmarklet(p)}catch(z) {a=function() {if (!window.open(f+'r'+p,'sharer','toolbar=0,status=0,resizable=1,width=626,height=436'))l.href=f+p};if (/Firefox/.test(navigator.userAgent))setTimeout(a,0);else{a()}}void(0)</code></p>
  
  <p>I tried to replace <code>http://www.facebook.com/share</code> with <code>https://www.reddit.com/submit?url=</code> but that gets me this <code>http://r.php?src=bm</code> as the URL submitted. Any advice is appreciated.</p>