Skip to content

Instantly share code, notes, and snippets.

View unarist's full-sized avatar

unarist unarist

View GitHub Profile
@unarist
unarist / misskey-quick-reaction.user.js
Last active July 4, 2018 13:55
Misskey - Quick reaction
// ==UserScript==
// @name Misskey - Quick reaction
// @namespace https://github.com/unarist/
// @version 0.3.1
// @description Click existing reaction to cast same one
// @author unarist
// @match https://misskey.xyz/*
// @require https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js
// @downloadURL https://gist.github.com/unarist/3d99742d3bb2af5d500b494400996aca/raw/misskey-quick-reaction.user.js
// @grant none
@unarist
unarist / pictsense-disable-autocomplete.user.js
Last active June 23, 2018 14:24
ピクトセンスで入力欄の補完を潰すやつ
// ==UserScript==
// @name ピクトセンスで入力欄の補完を潰す
// @namespace https://github.com/unarist/
// @version 0.2
// @description autocomplete='off'
// @author unarist
// @match http://pictsense.com/
// @match https://pictsense.com/
// @downloadURL https://gist.github.com/unarist/1993d1a7a8ab66d030adb946314dc373/raw/pictsense-disable-autocomplete.user.js
// @grant none
@unarist
unarist / hoge.js
Last active March 9, 2018 16:18
Capture rendered .status__wrapper node by hooking Status.prototype.render
node = Object.entries(document.querySelector('.status__wrapper')).find(prop=>prop[0].startsWith('__reactInternalInstance'))[1];
// Status component has "status" prop
while (node.memoizedProps.status === undefined) {
node = node.return;
}
Status = node.type;
originalMethod = Status.prototype.render;
Status.prototype.render = function(){
@unarist
unarist / mastodon-show-domain-on-mentions.user.css
Last active February 25, 2018 11:21
Mastodon - Show domain on mentions
/*
注: Mastodon以外の投稿だと多分動かない
NOTE: only works on toots from Mastodon :p
(UserScript can probably get acct from any accounts...by accessing internal object of React)
*/
/*
全体を常に表示
Show whole acct always
*/
@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?*
@unarist
unarist / mastodon-allow-drop-urls.user.js
Last active January 24, 2025 17:26
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.7.0
// @author unarist
// @match https://*/web/*
// @match https://*/deck/*
// @match https://mstdn.maud.io/*
<?php
abstract class Body {
protected $contentType;
protected $encodedBody;
public function getContentType() {
return $this->contentType;
}
public function getEncodedBody() {
return $this->encodedBody;
@unarist
unarist / mastodon-open-link-in-webui.user.js
Last active October 20, 2024 16:38
Mastodon - Open post link in WebUI
@unarist
unarist / mastodon-fullscreen-image.user.js
Last active February 6, 2021 19:49
Mastodon - Make fullscreen on clicking media modal
// ==UserScript==
// @name Mastodon - Make fullscreen on clicking media modal
// @namespace https://github.com/unarist/
// @version 0.4.1
// @author unarist
// @match https://*/web/*
// @grant none
// @downloadURL https://gist.github.com/unarist/31d8eae2e2c633a51897858b83b0e7f3/raw/mastodon-fullscreen-image.user.js
// ==/UserScript==