updated bookmarklet code snippet
parent
fd4d7c93e2
commit
e7314efc76
|
@ -31,7 +31,9 @@ javascript:(
|
||||||
var url="https://urltomarkdown.herokuapp.com/?url="+encodeURIComponent(location.href);
|
var url="https://urltomarkdown.herokuapp.com/?url="+encodeURIComponent(location.href);
|
||||||
request.onreadystatechange=function() {
|
request.onreadystatechange=function() {
|
||||||
if(request.readyState==4&&request.status==200) {
|
if(request.readyState==4&&request.status==200) {
|
||||||
location.href="simplenote://new?content="+encodeURIComponent(request.responseText);
|
let text = '# ' + request.getResponseHeader('X-Title') + '\n' + request.responseText;
|
||||||
|
location.href="simplenote://new?content="+encodeURIComponent(text);
|
||||||
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
request.open("GET",url, true);
|
request.open("GET",url, true);
|
||||||
|
|
Loading…
Reference in New Issue