Skip to content

Instantly share code, notes, and snippets.

@8th713
8th713 / normalizr_v3.x.x.js
Created October 26, 2017 10:52
type defs for normalizr v3
declare module 'normalizr' {
declare type Dict<T> = {[key: string]: T}
declare type StrategyFunction = (value: any, parent: any, key: string) => any;
declare type SchemaFunction = (value: any, parent: any, key: string) => string;
declare type MergeFunction = (entityA: any, entityB: any) => any;
declare export type EntityOptions = {
idAttribute?: string | SchemaFunction;
mergeStrategy?: MergeFunction;
processStrategy?: StrategyFunction;
@8th713
8th713 / redux-saga_v0.14.x.js
Last active February 24, 2018 00:46
redux-saga 0.14.3 flowtype definitions
declare type ReduxSaga$Predicate<T> = (arg: T) => boolean;
declare interface ReduxSaga$Task {
isRunning(): boolean;
isCancelled(): boolean;
result(): any;
result<T>(): T;
error(): any;
done: Promise<any>;
cancel(): void;
@8th713
8th713 / cockpit.user.css
Created July 10, 2016 04:37
cockpit for pixiv v1.0.0 用 拡張 CSS
/**
* cockpit for pixiv v1.0.0 用 拡張 CSS
*
* Stylish(https://chrome.google.com/webstore/detail/stylish/fjnbnpbmkenffdnngjfgmeleoegfcffe) などを用いて適用できます。
*
* 適用先を [ドメイン上の URL]にして [pixiv.net] と入力してください。
*/
/**
* サイドパネルスイッチとツールバーの透明化
@8th713
8th713 / sort-worklist-for-pixiv.user.js
Last active August 29, 2015 14:06
[deprecation] http://8th713.github.io/extend-pixiv/ 配布先を変更しました。
(function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);var f=new Error("Cannot find module '"+o+"'");throw f.code="MODULE_NOT_FOUND",f}var l=n[o]={exports:{}};t[o][0].call(l.exports,function(e){var n=t[o][1][e];return s(n?n:e)},l,l.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(require,module,exports){
// ==UserScript==
// @name Sort the work list for pixiv
// @version 0.1.11
// @description Makes possible to toggle the asc/desc of work list.
// @author 8th713
// @namespace http://8th713.tumblr.com/
// @match http://www.pixiv.net/member_illust.php?id*
// @noframes
// @copyright 2014, 8th713
@8th713
8th713 / opacity.css
Created September 11, 2014 11:04
[cockpit for pixiv] css addon
.pv-page,
.pv-ugoku-ctrl {
opacity: 0;
transition: opacity .2s .2s;
}
.pv-page:hover,
.pv-ugoku-ctrl:hover {
opacity: 1;
}
@8th713
8th713 / HLR.LDRize.html
Created October 22, 2010 12:45
[Sleipnir]HLR LDRize
<!-- append to line 6 by descript_compact.html -->
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.3/jquery.min.js"></script>
<script type="text/javascript" src="$PNIR_DESCRIPTION_PATH$LDRize.js"></script>
<style type="text/css"> #current a { color:gold; } </style>
<!-- end -->
@8th713
8th713 / Google_Translate.user.js
Created September 6, 2010 08:57
[Sleipnir] Google_Translate
// ==UserScript==
// @name Google_Translate
// @description 日本語じゃないページを見つけるとGoogle_Translateで翻訳するか聞いてくる
// @include http*
// @exclude http://translate.google.*
// @exclude http://google.*/*
// @exclude http://seesmic.com/*
// ==/UserScript==
(function(_d){
if(_d.body.innerText.length===0) return;
@8th713
8th713 / OneKeyAction.user.js
Created October 28, 2009 08:00
[sleipnir] OneKeyAction
// ==UserScript==
// @name OneKeyAction
// @description Add Action OneKey
// @include *
// @type SleipnirScript
// ==/UserScript==
(function(){
var keyConfig = {
66 : 'GoBack',
70 : 'GoForward',