mrcoles / bookmarklet

A server-side bookmarklet compiler with greasemonkey userscript-like metadata options and the power of babel and uglify

Home Page:https://www.npmjs.com/package/bookmarklet

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Demo page customization

naugtur opened this issue · comments

Hi. Awesome job - I used to have to do all that work manually. I haven't been so excited to find a new package like this in months! :)

Have you considered making the demo page customizable? For the sake of simplicity, a key in package.json would be enough.
Being able to provide a name for the bookmarklet to show instead of 'Bookmarklet; would be a great start.
Pointing to a HTML page template would be even better.

I could help out with that.

Being able to provide a name for the bookmarklet to show instead of 'Bookmarklet; would be a great start.

You can provide a (kind of UserScript) header to your source:

// ==Bookmarklet==
// @name O HAI
// @author Your name
// @repo Some URL
// ==/Bookmarklet==

and bookmarklet.js will generate the demo with the name as heading and text link and add a link to the repo.
2nd paragraph of the README explains all of it... and yes I missed that too for wayyy too long

It doesn't customize any further the demo page like the low contrast of the link but at least one can provide to users a default name to its bookmarklet.