bookmarkleter
bookmarkleter copied to clipboard
You have JavaScript. You need a bookmarklet. This does that.
how do i make it a bookmarklet
With your [https://chriszarate.github.io/bookmarkleter/](), I always have to put Off all my `?.` in original codes before I find where to put them back in the result. Else, I'm getting an`unknown:...
Removing line separates will causes errors when the code has comments. ```js code.replace( /\n+/g, '' ); ``` For example:
To reproduce: * rm -r build * npm run-script build  The build directory should not end up in the final program since it is irrelevant for the functionality and...
I entered the following JavaScript snippet: ~~~js var sel = document.getSelection(); if (sel === null || sel === undefined) sel = prompt('Suchbegriff:', ''); if (sel !== null && sel !==...
when using jQuery, the append into the header happens out of block scope, needs to be moved up one line: ```javascript !function($) { var loadBookmarklet = function($) { /* user...
The anonymizing function doesn't play nice with internal Javascript functions like "prompt". After the code completes, the window is then evaluated/replaced to just show the string "true". Minimal test case:...
In IE11, CJK ideographs are not escaped to Unicode codepoints, which cause problems when clicking on bookmarklet.
CLI
Add a command-line interface.
To diagnose an issue with SGP, I used [UglifyJS2](https://github.com/mishoo/UglifyJS2) via [UglifyJS-online](https://github.com/Skalman/UglifyJS-online) (site [here](https://skalman.github.io/UglifyJS-online/)) to recompress a prettified version of SGP. SuperGenPass's bookmarklet size on supergenpass.com: 4633 bytes. bookmarkleter with UglifyJS:...