pull down to refresh

Doesn’t work in brave sadly
100 sats \ 4 replies \ @klk OP 20 May
It does!
  1. Copy the code from this post.
  2. Create a new bookmark for this page with Ctrl+d.
  3. Edit the bookmark URL to the code, and the title to whatever you want.
  4. Open any website.
  5. Click on the bookmark.
  6. Profit.
reply
57 sats \ 3 replies \ @ek 20 May
Yeah, did work for me on Linux and Brave, very cool!
But I noticed it doesn't work when you open the bookmark in a new tab. URL will then be about:blank.
But it's still really cool for how simple it is!
reply
1154 sats \ 2 replies \ @klk OP 20 May
I've got you:
javascript:(function(){window.open("https://stacker.news/~bitcoin/post?type=link&url="+encodeURIComponent(document.location)+"&title="+encodeURIComponent(document.title),"_blank")})();
This one will instead open the submission in a new tab. So you won't open the bookmark for a new tab, but the submission page will.
reply
83 sats \ 1 reply \ @ek 20 May
🤯
why didn't I think of that haha
edit: btw, if you don't include ~bitcoin in the URL, it will still work but the user can select a territory. Might make more sense.
reply
I'm sure there's a lot more that can be done with this concept of bookmarklets. Automating submissions was the obvious one, and very useful for me.
reply