Tool to develop bookmarklets
Project description
Bookmarklets
A tool for developing bookmarklets.
Inspired by https://github.com/mrcoles/bookmarklet, but designed to support multiple bookmarklets, and to also export as html.
Develop bookmarklets based on javascript files, eg. so that you can commit the source files to git.
Installation
It is recommended to install using pipx
, but you can also use pip
. See https://pypi.org/project/pipx/.
pipx install bookmarklet
To convert them to bookmarklets, either start the server or generate a bookmarks.html file.
Server
- run
bookmarklet server [FOLDER]
- specify the folder with the javascript files, otherwise the current folder is used
- use
-o
/--open
to automatically open the webpage - use
-p
/--port
to serve the port other than the default (8000) - use
--public
to allow other devices on your network to access the page, otherwise only on localhost
- on the webpage drag each bookmarklet to your bookmarks bar
HTML
- run
bookmarklet html [FOLDER]
- specify the folder with the javascript files, otherwise the current folder is used
- use
-o
/--output
to specify the output file, otherwise it defaults tobookmarks.html
- import the
bookmarks.html
into your browser
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
bookmarklets-0.2.0.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for bookmarklets-0.2.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 527927e200d70ad1fc0e6b3285eddb312c7f8d2636f605c4bd6526c4d5adb589 |
|
MD5 | 7e3ceca9383296872063dca9e02f84d9 |
|
BLAKE2b-256 | a2fa6ee1f7be05962e0dc5bda175697e27f9e6876433bb5a970eaaf9c2d2caac |