Skip to content

Instantly share code, notes, and snippets.

@oflow
oflow / instagram_auto_expand.user.js
Created August 17, 2012 07:25
Instagramのコメントのところ開いとく
// ==UserScript==
// @name Instagram auto expand
// @description Instagramのコメントのところ開いとく
// @include http://instagram.com/p/*
// ==/UserScript
(function() {
document.getElementsByTagName('body')[0].className += ' media-open';
})();
@oflow
oflow / dotinstall_auto_play.user.js
Created August 17, 2012 08:40
ドットインストールとかいうサイトの動画を自動再生
// ==UserScript==
// @name dotinstall auto play
// @description Youtube Player API使った(autoplay=1になってない)動画を自動再生のURLに置換する
// @include http://dotinstall.com/lessons/*
// ==/UserScript
/* 1クリックが面倒くさい… */
window.addEventListener('load', function() {
var player = document.getElementById('youtube_api_player');
if (player && player.src.indexOf('autoplay=1') == -1) player.src += '&autoplay=1';
@oflow
oflow / 17sai.user.js
Last active August 29, 2015 14:00
17sai.user.js
// -*- coding: utf-8 -*-
// ==UserScript==
// @name They are all 17 years old
// @author HIRATA Yasuyuki <yasu@asuka.net>
// @namespace http://yasu.asuka.net/
// @version 1.1.1
// @include http://www.google.tld/search?*
// @include https://www.google.tld/search?*
// @include https://www.google.tld/webhp?*
// @include https://www.google.tld/#q=*
@oflow
oflow / nemui.js
Created June 16, 2014 06:53
ねむい
alert('めっちょねむい');
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<style type="text/css">
body { overflow: hidden; }
h1 {
font-size: 12px;
margin: 0; padding: 0;
white-space: nowrap;
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
scrollbar {
-moz-appearance: none !important;
background-color: #eee !important;
border: none !important;
background-image: none !important;
padding: 1px !important;
}
scrollbar:active {
// ==UserScript==
// @name Twitterの画像をでかく表示するやつ
// @description 画像:large付ける
// @include https://twitter.com/*/status/*
// ==/UserScript==
(function() {
let media = document.querySelector('.media-thumbnail.is-preview img');
if (!media) {
return;
@oflow
oflow / ln.vbs
Last active August 29, 2015 14:10
mklinkコマンドがln -sと逆なのがブチ切れそうなのと/D付けるの面倒臭い
'シンボリックリンクを作るスクリプト
'
' ln.vbs original_path symlink_path
' (mklinkとは逆で ln -s original_path symlink_path と同じ順番)
' ------------------------------------------------------------
' だいなファイラーの外部コマンド
' 実行ファイル C:\WINDOWS\System32\wscript.exe
' パラメーター "ln.vbsファイルのフルパス" "$F" "$OD$X"
' ------------------------------------------------------------
// ==UserScript==
// @name remove Toranoana popUpWindow
// @description とらのあなのjavascript:popUpWindowが若干面倒臭いのでリンクにする
// @version 1.0
// @include http://www.toranoana.jp/*
// @namespace http://oflow.me/
// ==/UserScript==
(function() {
var a = document.querySelectorAll('a[href^="javascript:popUpWindow"]');
// ==UserScript==
// @name Twitterの画像をでかく表示するやつ
// @description 画像:large付けてwidth指定
// @include https://twitter.com/*/status/*
// @grant GM_addStyle
// ==/UserScript==
/*
* サイドにおすすめ画像でるときのためにCSS調整
* min-width: 560px;
*