Skip to content

Instantly share code, notes, and snippets.

View rinsuki's full-sized avatar

rinsuki rinsuki

View GitHub Profile
// ==UserScript==
// @name bandai channel picture in picture
// @namespace https://rinsuki.github.io/
// @version 0.1
// @description バンダイチャンネルのHTML5プレーヤーでPicture in Pictureを利用できるようにします
// @author You
// @match http://www.b-ch.com/ttl/index_html5.php?*
// @grant none
// ==/UserScript==
var a = []
var b = db.getCollection('questions').mapReduce(function(){
var date = new Date(this.answeredAt - 0)
emit(Math.floor((date-0)/60/60/1000),{count: 1})
}, function(key, values) {
var count = 0
values.forEach(v =>count += v.count)
return {count}
}, {out: {inline:1}, query: {answeredAt: {$ne: null}}} ).results
.map(a => [a._id, a.value.count])

Keybase proof

I hereby claim:

  • I am rinsuki on github.
  • I am rinsuki (https://keybase.io/rinsuki) on keybase.
  • I have a public key ASDLJwTvjFlM0xoeZ4yyDAGBDRKUuh3O7ddDOpRVHWI4qwo

To claim this, I am signing this object:

id nameeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee
1 a
2 b
3 c
4 d
1 a
2 b
3 c
4 d
1 a
@rinsuki
rinsuki / mastodon-compose-form-sticky.user.css
Last active February 25, 2018 11:02
Stylusで自分のMastodonインスタンス/web/*で読み込ませるようにして使ってね
.columns-area .drawer {
position:sticky;
left:0;
z-index:100;
background-color:rgba(25, 27, 34, 0.75);
}
.privacy-dropdown__dropdown {
z-index: 101;
}
// ==UserScript==
// @name devtools-detect-disabled
// @namespace https://rinsuki.net/
// @version 0.1
// @description try to take over the world!
// @author rinsuki
// @match https://osushi.love/
// @grant none
// @run-at document-start
// ==/UserScript==
{"id":71996998,"id_str":"71996998","name":"@","screen_name":"","location":"","profile_location":null,"description":"","url":null,"entities":{"description":{"urls":[]}},"protected":false,"followers_count":13096,"fast_followers_count":0,"normal_followers_count":13096,"friends_count":0,"listed_count":41,"created_at":"Sun Sep 06 08:29:54 +0000 2009","favourites_count":21,"utc_offset":null,"time_zone":null,"geo_enabled":false,"verified":false,"statuses_count":5,"media_count":0,"lang":"en-gb","contributors_enabled":false,"is_translator":false,"is_translation_enabled":false,"profile_background_color":"C0DEED","profile_background_image_url":"http:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_image_url_https":"https:\/\/abs.twimg.com\/images\/themes\/theme1\/bg.png","profile_background_tile":false,"profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/646740685928943617\/eHHbKCaf_normal.png","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/646740685928943617\/eHHbKCaf_

俺の考えた俺が欲しいRSSリーダー

  • Chrome拡張からRSSを追加できる
  • iOSアプリ/Chromeに通知が来て、そこからSFSafariViewControllerやブラウザで見られる
    • ニコニコ動画とかみたいなのは特別扱いして各アプリに飛ばせたらよさそう
  • どうせ俺用なので審査とかその辺は気にしない
  • OSSにしたらよさそう
  • ...(あとで思いついたら書く)
@rinsuki
rinsuki / disablecat.user.js
Last active June 1, 2018 03:05
UserScriptで対抗2018
// ==UserScript==
// @name DisableCat
// @namespace https://rinsuki.net
// @version 0.1
// @description 設定→Web→詳細設定→ストリームを経由したAPIリクエストをOFFにしたあとリロード
// @author rinsuki
// @match https://misskey.xyz/*
// @grant none
// @run-at document-start
// ==/UserScript==
@-moz-document url-prefix("https://www.google") {
a[href*="pinimg.com"] {
display: none;
}
}