Skip to content

Instantly share code, notes, and snippets.

View unarist's full-sized avatar

unarist unarist

View GitHub Profile
@unarist
unarist / mastodon-open-link-in-webui.user.js
Last active March 22, 2024 12:46
Mastodon - Open post link in WebUI
@unarist
unarist / let-diff.user.js
Last active June 18, 2023 08:12
Hatena::Let - Show diff with linked (e.g. forked) Let
// ==UserScript==
// @name Hatena::Let - Show diff for forking
// @namespace https://github.com/unarist/
// @version 0.4.1
// @author unarist
// @downloadURL https://gist.github.com/unarist/e7ee9237764cc5cd2a3b4a531db8b5ee/raw/let-diff.user.js
// @match https://let.hatelabo.jp/*/let/*
// @require https://cdnjs.cloudflare.com/ajax/libs/jsdiff/3.4.0/diff.min.js#sha256=mXHDe/99FPqL1QnYUVFKhAAl45/l91tGCpRNkr4s9Mg=
// @grant none
// ==/UserScript==
@unarist
unarist / let-codemirror.user.js
Last active June 18, 2023 08:12
Hatena::Let - CodeMirror
// ==UserScript==
// @name Hatena::Let - CodeMirror
// @namespace https://github.com/unarist/
// @version 0.2.1
// @description Replace plain textarea with CodeMirror!
// @author unarist
// @downloadURL https://gist.github.com/unarist/1fb6ce33daa34ecdbd5f2060d32c65a3/raw/let-codemirror.user.js
// @match https://let.hatelabo.jp/l
// @grant none
// ==/UserScript==
@unarist
unarist / gist:6342758
Created August 26, 2013 15:32
クリップボードを監視してテキストボックスに追加していく感じの。
using System;
using System.Runtime.InteropServices;
using System.Windows.Forms;
internal class MainForm : Form
{
[DllImport("user32.dll", SetLastError = true)]
private extern static void AddClipboardFormatListener(IntPtr hwnd);
[DllImport("user32.dll", SetLastError = true)]
@unarist
unarist / mastodon-allow-drop-urls.user.js
Last active November 13, 2022 09:19
Mastodon - Open status/account on dropping URLs
// ==UserScript==
// @name Mastodon - Open status/account on droping URLs
// @description Open status/account in WebUI when you drop those URLs
// @namespace https://github.com/unarist/
// @downloadURL https://gist.github.com/unarist/a5998d24c5bcb207376ab22c05f24e5c/raw/mastodon-allow-drop-urls.user.js
// @version 0.6.0
// @author unarist
// @match https://*/web/*
// @match https://mstdn.maud.io/*
// @license MIT License https://opensource.org/licenses/MIT
@unarist
unarist / mastodon-mobile-composer.user.js
Last active November 13, 2022 09:14
Mastodon - Mobile Composer
// ==UserScript==
// @name Mastodon - Mobile Composer
// @namespace https://github.com/unarist/
// @version 0.14
// @description add composer to page bottom
// @author unarist
// @downloadURL https://gist.github.com/unarist/08f56c49986d3b1775fe88bc918cac50/raw/mastodon-mobile-composer.user.js
// @match https://*/web/*
// @match https://mstdn.maud.io/*
// @grant none
@unarist
unarist / mastodon-add-2col-layout.user.js
Last active November 13, 2022 09:12
:don: - Add tablet layout
// ==UserScript==
// @name :don: - Add tablet layout
// @namespace https://github.com/unarist/
// @version 0.8
// @description Add tablet layout (w/ tabbar, w/o compose column) for <=1024 width
// @author unarist
// @match https://mstdn.maud.io/*
// @downloadURL https://gist.github.com/unarist/71067609416aed633cf74eddb6feb725/raw/mastodon-add-2col-layout.user.js
// @grant none
// @run-at document-body
// ==UserScript==
// @name Toggl - Quick import
// @description (<mm><dd> )?(<hh><mm>(<description><hh><mm>)+ )+
// @namespace https://github.com/unarist/
// @version 0.1
// @author unarist
// @match https://www.toggl.com/app/timer
// @grant GM_registerMenuCommand
// @downloadURL https://gist.github.com/unarist/559e02233b5e5dc4859885041c076190/raw/toggl-quickimport.user.js
// ==/UserScript==
// structures are based on https://github.com/dotnet/runtime/blob/v6.0.7/src/libraries/System.Text.Encoding.CodePages/src/System/Text/BaseCodePageEncoding.cs
struct CodePageHeader {
char16 codePageName[16];
u16 version[4];
u16 codePage;
u16 byteCount;
u32 offset;
u16 unicodeReplace;
u16 byteReplace;
@unarist
unarist / mastodon-add-older-newer-link.user.js
Last active July 7, 2022 19:32
Mastodon - Add older/newer link