Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View mohemohe's full-sized avatar
🍣
さーもん

mohemohe mohemohe

🍣
さーもん
View GitHub Profile
@mohemohe
mohemohe / github-backlog-linkify.user.js
Created April 22, 2024 06:40
GitHubのPullReqのタイトルにあるBacklogの課題キーをいい感じにリンクにするやつ
// ==UserScript==
// @name github.com Backlog linkify
// @namespace Violentmonkey Scripts
// @match https://github.com/*
// @grant none
// @version 1.0
// @author -
// @description 2024/4/22 14:40:04
// @require https://cdnjs.cloudflare.com/ajax/libs/lodash.js/4.17.21/lodash.min.js
// ==/UserScript==
@mohemohe
mohemohe / fxtwitter.user.js
Created January 10, 2024 06:28
FxTwitterの共有リンクをクリップボードにコピー
// ==UserScript==
// @name FxTwitter
// @namespace Violentmonkey Scripts
// @match https://twitter.com/*/status/*
// @grant none
// @version 1.0
// @author -
// @description 2024/1/10 14:48:46
// @require https://cdn.jsdelivr.net/npm/@violentmonkey/shortcut@1
// @require https://cdn.jsdelivr.net/combine/npm/@violentmonkey/dom@2,npm/@violentmonkey/ui@0.7
@mohemohe
mohemohe / カスタムスクリプト.js
Created October 21, 2023 19:07
Enhancer for YouTube 日本語字幕
(async () => {
const waitAsync = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
document.querySelector(".ytp-settings-button").click();
await waitAsync(500);
let items = document.querySelectorAll(".ytp-settings-menu .ytp-menuitem-label");
let ok = false;
for (const item of Array.from(items)) {
@mohemohe
mohemohe / _.md
Created July 24, 2023 10:48
XのロゴをTwitterに戻すCSS

@mohemohe
mohemohe / watch-karabiner.1s.sh
Created January 25, 2023 06:15
watch-karabiner.1s.sh
#!/bin/bash
current="$(lsappinfo info -only name "$(lsappinfo front)" | cut -d'=' -f2)"
case "$current" in
'"Parsec"' | '"Parallels Desktop"' ) profile="PC" ;;
* ) profile="Default" ;;
esac
if [[ ! -e /tmp/watch-karabiner ]]; then
touch /tmp/watch-karabiner
@mohemohe
mohemohe / install_docker-compose.sh
Last active October 30, 2022 06:22
install/update docker compose v2
#!/bin/bash -x
if [[ "${COMPOSE_VERSION}" == "" ]]; then
echo "must be set env 'COMPOSE_VERSION'"
exit 1
fi
OS="$(uname -s | awk '{print tolower($0)}')"
ARCH="$(uname -m)"
@mohemohe
mohemohe / youtube-subtitle.js
Last active August 6, 2021 15:09
youtube-subtitle.js
(async () => {
const wait = (ms) => new Promise(resolve => setTimeout(resolve, ms));
const subtitleButton = document.querySelector('.ytp-subtitles-button');
if (!subtitleButton) {
return;
}
const subtitleButtonState = subtitleButton.getAttribute('aria-pressed') === 'true';
subtitleButton.click();
if (subtitleButtonState) {
@mohemohe
mohemohe / LICENSE
Created June 2, 2021 03:10
guregu/dynamo migrate script
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2020 mohemohe <mohemohe@ghippos.net>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
// This file was initially generated by Windows Terminal 1.0.1401.0
// It should still be usable in newer versions, but newer versions might have additional
// settings, help text, or changes that you will not see unless you clear this file
// and let us generate a new one for you.
// To view the default settings, hold "alt" while clicking on the "Settings" button.
// For documentation on these settings, see: https://aka.ms/terminal-documentation
{
"$schema": "https://aka.ms/terminal-profiles-schema",
@mohemohe
mohemohe / score20200823005406.txt
Created August 22, 2020 17:28
MacBook Pro 13 2020 FF14ベンチ
ファイナルファンタジーXIV: 漆黒のヴィランズ ベンチマーク
計測日時: 2020/8/23 0:54:06
SCORE: 4425
平均フレームレート: 30.50928
最低フレームレート: 6
評価: 快適
-快適な動作が見込めます。グラフィック設定をより高品質にしても快適に動作すると思われます。
ローディングタイム:
シーン#1 3.143sec
シーン#2 6.465sec