Skip to content

Instantly share code, notes, and snippets.

(function(){var h,n=this,p=function(a){return void 0!==a},aa=function(){},ba=function(a){var b=typeof a;if("object"==b)if(a){if(a instanceof Array)return"array";if(a instanceof Object)return b;var c=Object.prototype.toString.call(a);if("[object Window]"==c)return"object";if("[object Array]"==c||"number"==typeof a.length&&"undefined"!=typeof a.splice&&"undefined"!=typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("splice"))return"array";if("[object Function]"==c||"undefined"!=typeof a.call&&"undefined"!=
typeof a.propertyIsEnumerable&&!a.propertyIsEnumerable("call"))return"function"}else return"null";else if("function"==b&&"undefined"==typeof a.call)return"object";return b},q=function(a){return"array"==ba(a)},ca=function(a){var b=ba(a);return"array"==b||"object"==b&&"number"==typeof a.length},u=function(a){return"string"==typeof a},da=function(a){return"boolean"==typeof a},v=function(a){return"number"==typeof a},ea=function(a){retu
@critical-bug
critical-bug / mlratio.user.js
Last active December 27, 2015 09:09
ニコニコ動画でプレーヤー下部のプレイリストに各動画のマイリス率を表示する userscript。Chrome で動く版。
// ==UserScript==
// @license magnet:?xt=urn:btih:5305d91886084f776adcf57509a648432709a7c7&dn=x11.txt
// @name mlratio
// @description put Mylist ratio (= # of lists the video saved / # of video views) in playlist
// @namespace http://twitter.com/criticabug
// @include http://www.nicovideo.jp/watch/*
// @grant none
// @run-at document-end
// @version 1.10
// ==/UserScript==
@critical-bug
critical-bug / go_console_after_trigger.user.js
Created September 15, 2011 03:14
userscript working with Jenkins, navigates to the console after triggered a build of the job.
// ==UserScript==
// @name go console after trigger
// @description [Jenkins] Go to the console after triggered a build of the job.
// @include http://*:8080/*/job/*/
// @include http://*:8080/job/*/
// ==/UserScript==
var jobUrl = unsafeWindow.location.href;
var referrer = unsafeWindow.document.referrer;
if (referrer.indexOf(jobUrl + "build") == 0) {
// ==UserScript==
// @name always search options
// @namespace http://entrance.cjb.net
// @description enables search options of target time range and languages
// @include http://www.google.com/*
// @include http://www.google.co.jp/*
// ==/UserScript==
(function(){