- JSConf JP
- <2023-11-19 Sun>
- 古川さん
| function generateMyActivityURLJST(date) { | |
| const startDate = new Date(`${date}T00:00:00+09:00`); | |
| const endDate = new Date(`${date}T23:59:59+09:00`); | |
| // ミリ秒単位のタイムスタンプをマイクロ秒に変換 | |
| const min = startDate.getTime() * 1000; | |
| const max = endDate.getTime() * 1000 + 999999; | |
| // Google My Activity の URL を生成 | |
| const url = `https://myactivity.google.com/myactivity?min=${min}&max=${max}`; |
| // ==UserScript== | |
| // @name Remove UTM and fbclid Parameters | |
| // @namespace http://tampermonkey.net/ | |
| // @version 1.3 | |
| // @description Remove UTM and fbclid parameters from URL and navigate to clean URL | |
| // @author hushin | |
| // @match *://*/* | |
| // @grant none | |
| // ==/UserScript== |
| #!/bin/bash | |
| GITHUB_TOKEN="ghp_xxx" | |
| CLONE_DIR="${HOME}/backup/gist" | |
| # Function to clone or update a Gist | |
| clone_or_update_gist() { | |
| gist_url=$1 | |
| gist_description=$2 | |
| gist_id=$(basename "$gist_url") |
| ; REMOVED: #NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases. | |
| #Requires AutoHotkey v2.0 | |
| #Warn ;Enable warnings to assist with detecting common errors. | |
| #SingleInstance force | |
| InstallKeybdHook() | |
| #WinActivateForce | |
| #UseHook | |
| SendMode("Input") ; Recommended for new scripts due to its superior speed and reliability. | |
| SetWorkingDir(A_ScriptDir) ; Ensures a consistent starting directory. | |
| DetectHiddenWindows(true) |
| ;(async (copy) => { | |
| // https://read.amazon.co.jp/kindle-library を開いて実行 | |
| // ASINコードがクリップボードにコピーされているので | |
| // https://booklog.jp/input に貼り付けて登録 | |
| async function fetchList(paginationToken) { | |
| const pagination = paginationToken | |
| ? `&paginationToken=${paginationToken}` | |
| : '' | |
| const res = await fetch( |
UI デザインツール
昔 Kindle本をブクログで蔵書管理する最初の一歩 | ちぎっては投げるところ をいうのを書いたが、 最近Kindle本をブクログに自動登録するスクリプトが動かなくなった(Amazonから送られてくるメールにASINが入らなくなった)。
自動化が難しそうだったので手動で取り込む方法をメモっておく
Amazon.co.jp: コンテンツと端末の管理 / https://www.amazon.co.jp/mn/dcw/myx.html#/home/content/booksAll/dateDsc/ を開く
ブラウザのdev tool で下記scriptを実行
手作業でぽちぽちするのが辛かったので作った