summaryrefslogtreecommitdiff
path: root/views/partials/bookmark-bookmarklet.php
blob: a4b095da359a7f5486d94c46606eef7cf961511a (plain)
1
2
3
4
5
javascript:(function(){
  var t;try{t=((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text));}catch(e){t="";};
  window.location="http://quill.dev/bookmark?url="+encodeURIComponent(window.location.href)+"&content="+encodeURIComponent('"'+t+'"')+"&name="+encodeURIComponent(document.title)+"&token=<?= $this->token ?>";
})();