Skip to content

Instantly share code, notes, and snippets.

@tkdn
tkdn / mute-your-meet.js
Last active March 14, 2025 06:45
Meet で全員映像オフ(自分だけ)
/**
* Meet で参加者全員の映像をオフにする
* refs. https://support.google.com/meet/answer/7501121#zippy=%2C%E5%88%A9%E7%94%A8%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC:~:text=%E8%A7%A3%E9%99%A4%E3%81%A7%E3%81%8D%E3%81%BE%E3%81%99%E3%80%82-,%E4%BB%96%E3%81%AE%E5%8F%82%E5%8A%A0%E8%80%85%E3%81%AE%E5%8B%95%E7%94%BB%E3%83%95%E3%82%A3%E3%83%BC%E3%83%89%E3%82%92%E3%82%AA%E3%83%95%E3%81%AB%E3%81%99%E3%82%8B,-%E5%88%A9%E7%94%A8%E3%81%A7%E3%81%8D%E3%82%8B%E3%83%A6%E3%83%BC%E3%82%B6%E3%83%BC
*/
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
(async()=>{
// 参加者一覧を表示
@tkdn
tkdn / url-title-copy.user.js
Last active September 1, 2024 00:58
キーバインドでタイトルとURLをコピーする
// ==UserScript==
// @name 出、出〜文書鍵押下複製奴〜
// @namespace https://gist.github.com/tkdn/cf8084bb18737abc218d9c7662c1a9a4#file-url-title-copy-user-js
// @updateURL https://gist.github.com/tkdn/cf8084bb18737abc218d9c7662c1a9a4/raw/36e6c441b38c8c84ee9d64677020414b98bd293f/url-title-copy.user.js
// @downloadURL https://gist.github.com/tkdn/cf8084bb18737abc218d9c7662c1a9a4/raw/36e6c441b38c8c84ee9d64677020414b98bd293f/url-title-copy.user.js
// @version 0.1
// @description 特定のキーバインドでクリップボードにタイトルとURLをコピーする
// @author tkdn <[email protected]>
// @grant none
// @match https://*/*
@tkdn
tkdn / index.mjs
Created February 24, 2023 03:02
PDF からリンク抽出(失敗)
import { PDFExtract } from "pdf.js-extract";
const pdfExtract = new PDFExtract();
/** @type {PDFExtractOptions} */
const options = {
firstPage: 3,
lastPage: 3,
};
pdfExtract
@tkdn
tkdn / inject-noindex-metatag.mjs
Created February 21, 2023 09:09
tag差し込み
import { readFileSync, writeFileSync } from 'node:fs';
const filePath = './dist/index.html';
const org = readFileSync(filePath, { encoding: 'utf-8' });
const injectTag = '<meta foo="baz" />';
const buff = org.replace(/(\<\/head\>)/, `${injectTag}$1`);
writeFileSync(filePath, buff);
@tkdn
tkdn / rails-doc-transfer-to-ja.user.js
Last active February 10, 2023 06:42
出、出〜鉄道文書和訳輪付奴〜
// ==UserScript==
// @name 出、出〜鉄道文書和訳輪付奴〜
// @namespace https://gist.github.com/tkdn/26f5beb115a29f05460d7406bd8fc158#file-rails-doc-transfer-to-ja-user-js
// @updateURL https://gist.github.com/tkdn/26f5beb115a29f05460d7406bd8fc158/raw/0ca538e290d376f758dfb8ac4edae34bdfd059d7/rails-doc-transfer-to-ja.user.js
// @downloadURL https://gist.github.com/tkdn/26f5beb115a29f05460d7406bd8fc158/raw/0ca538e290d376f758dfb8ac4edae34bdfd059d7/rails-doc-transfer-to-ja.user.js
// @version 0.1
// @description Rails Doc 英語版から日本語に移動するリンクを追加
// @author tkdn <[email protected]>
// @grant none
// ==/UserScript==
@tkdn
tkdn / udemy-keep-playbackrate.user.js
Last active October 19, 2024 05:49
Udemy の動画の再生速度をチャプター移動ごとに変えない
// ==UserScript==
// @name 出、出~腕見動画速度維持奴〜
// @namespace https://gist.github.com/tkdn/5b55161f21a242057fdaf8c436d24012#file-udemy-keep-playbackrate-user-js
// @updateURL https://gist.github.com/tkdn/5b55161f21a242057fdaf8c436d24012/raw/359b25e92bd25d31286fbd1ad6cba9f85a3ae9d1/udemy-keep-playbackrate.user.js
// @downloadURL https://gist.github.com/tkdn/5b55161f21a242057fdaf8c436d24012/raw/359b25e92bd25d31286fbd1ad6cba9f85a3ae9d1/udemy-keep-playbackrate.user.js
// @version 0.2
// @description Udemy で動画の再生速度をチャプター移動ごとに変えない
// @author tkdn <[email protected]>
// @match https://*.udemy.com/*/*
// @grant none
@tkdn
tkdn / react-doc-transfer-to-ja.user.js
Last active October 22, 2022 00:26
React Doc 英語版から日本語に移動するリンクを追加
// ==UserScript==
// @name 出、出~反応取説日本語版転送奴〜
// @namespace https://gist.github.com/tkdn/fbbbc943da0e18a89a2cda3784e6d2f7#file-react-doc-transfer-to-ja-user-js
// @updateURL https://gist.github.com/tkdn/fbbbc943da0e18a89a2cda3784e6d2f7/raw/6ee1f979f4f8dee68f2d367c5301934fb3abf2bc/react-doc-transfer-to-ja.user.js
// @downloadURL https://gist.github.com/tkdn/fbbbc943da0e18a89a2cda3784e6d2f7/raw/6ee1f979f4f8dee68f2d367c5301934fb3abf2bc/react-doc-transfer-to-ja.user.js
// @version 0.1
// @description React Doc 英語版から日本語に移動するリンクを追加
// @author tkdn <[email protected]>
// @match https://reactjs.org/*/*
// @grant none
@tkdn
tkdn / meet-picture-in-picture.user.js
Last active March 4, 2022 07:47
Meet で PiP したい
// ==UserScript==
// @name 出、出~出会画像内画像奴〜
// @namespace https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531#file-meet-picture-in-picture-user-js
// @updateURL https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531/raw/b6e921d5665a1165e4a02478272b7a0424b50791/meet-picture-in-picture.user.js
// @downloadURL https://gist.github.com/tkdn/e6ed758df441b106eddc9ba8a10aa531/raw/b6e921d5665a1165e4a02478272b7a0424b50791/meet-picture-in-picture.user.js
// @version 0.2
// @description Meet の画面共有を PiP する
// @author tkdn <[email protected]>
// @match https://meet.google.com/*
// @grant none
@tkdn
tkdn / github-copy-short-sha.user.js
Last active December 28, 2021 04:52
SHA 短いのがクリップボードにほしい
// ==UserScript==
// @name 出、出~短管理識別子取奴〜
// @namespace https://gist.github.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3#file-github-copy-short-sha.user.js
// @updateURL https://gist.githubusercontent.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3/raw/58daa1a22a7845d838efc1786c30c96acc7ce050/github-copy-short-sha.user.js
// @downloadURL https://gist.githubusercontent.com/tkdn/f8fcf637fc2bc60e01f64ee7025186c3/raw/58daa1a22a7845d838efc1786c30c96acc7ce050/github-copy-short-sha.user.js
// @version 0.1
// @description GitHub の SHA コピーを短いやつにする
// @author tkdn <[email protected]>
// @match https://github.com/*/*
// @grant none