Skip to content

Instantly share code, notes, and snippets.

@unarist
unarist / mastodon-mstdbg.user.js
Last active February 8, 2021 09:11
Mastodon - Add debug tools to window.mstdbg
// ==UserScript==
// @name Mastodon - Add debug tools to window.mstdbg
// @namespace https://github.com/unarist
// @version 0.5
// @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
@unarist
unarist / pixiv-replace-pawoo-with-webmastodon.user.js
Last active July 28, 2018 04:40
Pixiv - Replace "Pawooでシェア" with web+mastodon button
// ==UserScript==
// @name Pixiv - Replace "Pawooでシェア" with web+mastodon button
// @namespace https://github.com/unarist/
// @version 0.6
// @author unarist
// @downloadURL https://gist.github.com/unarist/79068e361c8cf69af4b7a520914e1259/raw/pixiv-replace-pawoo-with-webmastodon.user.js
// @match https://www.pixiv.net/bookmark_add.php?*
// @match https://www.pixiv.net/member_illust.php?*
// @match https://www.pixiv.net/novel/bookmark_add.php?*
// @match https://www.pixiv.net/novel/show.php?*
@theoria24
theoria24 / like2sushi4mstdn.css
Last active April 26, 2023 13:39
mastodonのお気に入りボタンを寿司に
.fa-star::before {
background: url(https://twemoji.maxcdn.com/36x36/1f363.png);
background-repeat: no-repeat;
background-size: 100%;
filter: grayscale(100%) opacity(50%);
content: "\2003";
}
.active > .fa-star::before, .notification__favourite-icon-wrapper > .fa-star::before {
filter: grayscale(0%) opacity(100%);
}
@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-open-link-in-webui.user.js
Last active March 22, 2024 12:46
Mastodon - Open post link in WebUI
@unarist
unarist / auto_nya-n_s_rec.user.js
Last active March 3, 2018 12:12 — forked from pacochi/auto_nya-n_s_rec.user.js
安全なオートにゃーん(音声認識ロック付き)
// ==UserScript==
// @name auto nya-n (unlock by speech recognition)
// @namespace https://github.com/unarist/
// @include https://*/web/*
// @conrtibutor pacochi https://gist.github.com/pacochi/4295d00d6368c53921047d2a90dca8b5
// @version 1.170908
// @description nya-n
// @downloadURL https://gist.github.com/unarist/d71b04702091fe5a8143af26b78410da/raw/auto_nya-n_s_rec.user.js
// @run-at document-idle
// @grant none
@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
@noromanba
noromanba / zalgolf-js.md
Last active November 29, 2017 04:09
js Zalgo Scrambled Text + slightly code-golf

Zalgolf / Re:Zalgo

js Zalgo Scrambled Text + slightly code-golf

original code and description by @aTakaakiSeki

[].concat(...[...document.all].map(e => [...e.childNodes])).filter(n => n.nodeType === Node.TEXT_NODE).map(n => n.textContent = n.textContent.replace(/([a-zA-Z])/g, (_, c) => c + [...Array(Math.floor(Math.random()*30))].map(() => String.fromCharCode(0x300 + Math.floor(Math.random()*79))).join('')))