-
-
Save ship9599/59bf640d60c62b221bd427d2b3a0ef62 to your computer and use it in GitHub Desktop.
Revisions
-
ship9599 revised this gist
May 30, 2019 . 1 changed file with 1 addition and 15 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,15 +1 @@ javascript:(function()%7Bwindow.location.href %3D 'https%3A%2F%2Foutline.com%2F' %2B window.location.href%7D)() -
giodamelio revised this gist
Sep 22, 2018 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,6 +1,6 @@ fetch( "https://outlineapi.com/parse_article?source_url=" + encodeURIComponent(window.location) ) .then(res => res.json()) .then(body => { -
giodamelio created this gist
Sep 22, 2018 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,15 @@ fetch( "https://outlineapi.com/parse_article?source_url=" + encodeURI(window.location) ) .then(res => res.json()) .then(body => { if (body.error) { return alert(`Outline Bookmarklet Error: ${body.error}`); } window.location.href = `https://outline.com/${body.data.short_code}` }) .catch(err => { alert("Outline Bookmarklet Error. See console for details."); console.error(err); });