Adds a link to automatically bookmark a page

Parameters [{Bookmarklet title="Bookmark" domain="https://open-forum.onestonesoup.org" script="/OpenForum/Extensions/Bookmarklet/append-link.js" text="Bookmark pages more easily. Drag this bookmarklet to the Bookmarks bar of your browser:"}] Bookmark pages more easily. Drag this bookmarklet to the Bookmarks bar of your browser:Bookmark
//OpenForum/Extensions/Bookmarklet/renderer.sjstry{ domain = extension.getAttribute("domain"); title = extension.getAttribute("title"); script = extension.getAttribute("script"); text = extension.getAttribute("text"); var script = file.getAttachment( "",script ).replaceAll("\"","\\\\\""); script = script.replaceAll("\\{\\{domain\\}\\}",domain); script = script.replaceAll("\\{\\{pageName\\}\\}",pageName); var bmHref = "javascript: " + script; return text + "<a class='button tiny round success' href=\"" + bmHref + "\">" + title + "</a>"; } catch(e) { return e; }