Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<textarea id="SCRAPBOX-TEXT"></textarea>
<script src="" integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4=" crossorigin="anonymous"></script>
<!-- Using -->
<script src="js/strftime.js"></script>
$(function() {
const project = '';
$("#SCRAPBOX-TEXT").keydown(function(e) {
if (e.metaKey && e.keyCode == 13) {
if (confirm('Scrapbox日報に追記します。')) {
const text = $('#SCRAPBOX-TEXT').val();
const date = new Date();
const title = strftime("%Y%m%d", date); + encodeURIComponent(title) + '?body=' + encodeURIComponent(text));
return false;
return true;

This comment has been minimized.

Copy link
Owner Author

@hyuki hyuki commented Jan 26, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.