4

It would optimally grab the url, the title, and if text is highlighted on the page, it grabs that as either the title or the body of a text submission.

So if no text is highlighted on the page, it grabs the title of the page and preps as a link post.

If text is highlighted, it preps as a text post, grabbing the title of the page as the title of the post and highlighted text as the body of the submission.

K, thx.

It would optimally grab the url, the title, and if text is highlighted on the page, it grabs that as either the title or the body of a text submission. So if no text is highlighted on the page, it grabs the title of the page and preps as a link post. If text is highlighted, it preps as a text post, grabbing the title of the page as the title of the post and highlighted text as the body of the submission. K, thx.

3 comments

[–] xyzzy 1 points (+1|-0)

javascript:location.href='https://phuks.co/submit/link?url='+encodeURIComponent(window.location.href)+'&title='+encodeURIComponent(document.title)

for link posts