Skip to content

Instantly share code, notes, and snippets.

View github-show-approvals.user.js
// ==UserScript==
// @name gh - show approvals
// @namespace https://github.com/unarist
// @version 0.2
// @author unarist
// @match https://github.com/*
// @grant none
// @downloadURL https://gist.github.com/unarist/c45bd5e8102afe7ce27d757a87819ea4/raw/github-show-approvals.user.js
// @run-at document-idle
// @noframes
@unarist
unarist / mastodon-min_id-autoscroll.user.js
Created May 26, 2020
Mastodon - Jump to the bottom on min_id pages
View mastodon-min_id-autoscroll.user.js
// ==UserScript==
// @name Mastodon - Jump to the bottom on min_id pages
// @namespace https://github.com/unarist/
// @version 0.1
// @author unarist
// @match https://*/@*
// @downloadURL https://gist.github.com/unarist/654da43b13108d30d6dbb602e42cd6d8/raw/mastodon-min_id-autoscroll.user.js
// @grant none
// @noframes
// @run-at document-idle
@unarist
unarist / github-lightbox.user.js
Last active Mar 17, 2020
githubのissue/prでクリックすると画像を大きくするやつ
View github-lightbox.user.js
// ==UserScript==
// @name github - lightbox
// @namespace https://github.com/unarist/
// @version 0.1
// @author unarist
// @match https://github.com/*/*/issues/*
// @match https://github.com/*/*/pull/*
// @grant none
// @downloadURL https://gist.github.com/unarist/982dcff096062f53406bf0ab5d470744/raw/github-lightbox.user.js
// @run-at document-idle
@unarist
unarist / index.html
Created Feb 12, 2020
bookmarklet template
View index.html
<html>
<body>
<script>
const x =
function() {
// bookmarklet body
};
document.body.innerHTML = '';
document.body.appendChild(document.createTextNode('右のリンクをブックマークバーにドラッグして登録: '));
@unarist
unarist / mastodon-hide-private.user.css
Created Jan 1, 2019
Mastodon - Hide private posts
View mastodon-hide-private.user.css
/* ==UserStyle==
@name Mastodon - Hide private posts
@namespace github.com/unarist
@version 1.0.0
@description Hide private posts from timeline
@author unarist
==/UserStyle== */
@-moz-document regexp("^https://[^/]+/web/.*") {
/* :not(.muted) filters notification */
View git-list-obsolete-branches.sh
#!/bin/bash
set -eu
master=upstream/master
ourremote=origin
ignore_pattern="^pr/|^(master|develop)$"
skip_pattern="^(test|draft)/"
candidates=()
@unarist
unarist / mastodon-add-older-newer-link.user.js
Last active Oct 21, 2018
Mastodon - Add older/newer link
View mastodon-add-older-newer-link.user.js
@unarist
unarist / mastodon-expand-quesdon-answer.user.js
Last active Sep 6, 2018
Mastodon - Expand Quesdon answer
View mastodon-expand-quesdon-answer.user.js
// ==UserScript==
// @name Mastodon - Expand Quesdon answer
// @namespace https://github.com/unarist/
// @version 0.3.1
// @description Automatically loads remain parts of the answer into WebUI
// @author unarist
// @downloadURL https://gist.github.com/unarist/348f4d39184330cd2b3c78efe9b9f75e/raw/mastodon-expand-quesdon-answer.user.js
// @match https://*/web/*
// @connect quesdon.rinsuki.net
// @require https://twemoji.maxcdn.com/2/twemoji.min.js?11.0
@unarist
unarist / mastodon-pii-spoiler.user.js
Last active Nov 14, 2019
Mastodon - PII spoiler
View mastodon-pii-spoiler.user.js
// ==UserScript==
// @name Mastodon - PII spoiler
// @namespace https://github.com/unarist/
// @version 0.3.0
// @description Hide sensitive information on admin page
// @author unarist
// @downloadURL https://gist.github.com/unarist/60d3cea2a4ac37f8e302209df6d170f6/raw/mastodon-pii-spoiler.user.js
// @match https://*/admin/accounts/*
// @match https://*/admin/accounts?*
// @grant none
@unarist
unarist / mastodon-mstdbg.user.js
Last active Jan 20, 2019
Mastodon - Add debug tools to window.mstdbg
View mastodon-mstdbg.user.js
// ==UserScript==
// @name Mastodon - Add debug tools to window.mstdbg
// @namespace https://github.com/unarist
// @version 0.4
// @description no description :)
// @author unarist
// @match https://*/web/*
// @require https://unpkg.com/axios/dist/axios.min.js
// @grant none
// @downloadURL https://gist.github.com/unarist/9722831a794b5537dc0f749ee49da55a/raw/mastodon-mstdbg.user.js
You can’t perform that action at this time.