Skip to content

Instantly share code, notes, and snippets.

@jkishner
Created April 1, 2015 18:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkishner/43e0dbe133947dc52ae9 to your computer and use it in GitHub Desktop.
Save jkishner/43e0dbe133947dc52ae9 to your computer and use it in GitHub Desktop.
some javascript. enter a link to add to your wallabag installation
<html>
<body>
<script>
function convert(form) {
var url = form.url.value;
url = btoa(url);
window.open("http://YOURDOMAIN.com/wallabag/?action=add&autoclose=true&url=" + url);
}
</script>
<form>
<input type="text" name="url" size="100">
<input type="button" value="submit" onClick="convert(this.form)">
</form>
</body>
</title>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment