DEV Community

Cover image for Bookmarklet for hashtags insertion on social networks
Janko
Janko

Posted on

Bookmarklet for hashtags insertion on social networks

1) Put this code in place of URL of your bookmark:

javascript:document.execCommand('insertText', false /*no UI*/, "#education #science #popularization");
Enter fullscreen mode Exit fullscreen mode

2) When you typing text into an editable (social networks etc.) array click on the created bookmark
3) Javascript put hashtags
You can change hashtags as you like and create other bookmarks with different hashtags.

Notes

Twitter - you have to start typing text (or an error occures).

Tested on

Google Chrome

Inspired by

https://kubyshkin.name/posts/insert-text-into-textarea-at-cursor-position/

Top comments (0)

The Most Contextual AI Development Assistant

Pieces.app image

Our centralized storage agent works on-device, unifying various developer tools to proactively capture and enrich useful materials, streamline collaboration, and solve complex problems through a contextual understanding of your unique workflow.

👥 Ideal for solo developers, teams, and cross-company projects

Learn more