Adds a link to automatically bookmark a page
Parameters
- title = Bookmark title Name
- domain = external site domain
- script = Path to script
[{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 + "" + title + "";
} catch(e) {
return e;
}