4 ms·
Indent the line by four spaces to invoke monospace (code-style) formatting. Otherwise, HN's URL shortener identifies the value assigned to location.href as a UR
by throwanem 10y ago
Indent the line by four spaces to invoke monospace (code-style) formatting. Otherwise, HN's URL shortener identifies the value assigned to location.href as a URL, shortens it, and makes copy-pasting the bookmarklet impossible.
- rjeli 10y agojavascript:location.href='http://facebook.com/l.php?u='+encodeURIComponent(location.href)