Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Slack Redirector
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://*.slack.com/archives/*
// @grant none
// ==/UserScript==
@hirogasa
hirogasa / Google: remove hidden text.user.js
Last active July 29, 2020 10:27 — forked from azu/Google: remove hidden text.user.js
検索結果でテキストをコピーすると入る"ウェブ検索結果" and "検索結果"を削除する
// ==UserScript==
// @name Google: remove hidden text
// @description 検索結果でテキストをコピーすると入る"ウェブ検索結果"と"検索結果"を削除する
// @namespace info.efcl.google
// @match https://www.google.co.jp/search*
// @match https://www.google.com/search*
// @grant none
// @version 1.0
// @author azu
// ==/UserScript==

Keybase proof

I hereby claim:

  • I am hirogasa on github.
  • I am hirogasa (https://keybase.io/hirogasa) on keybase.
  • I have a public key ASBwB1Od-Dvvogf5ENZe4yGrplSqstr7ee80QwkgqtKCHAo

To claim this, I am signing this object:

@hirogasa
hirogasa / gist:10987982
Created April 17, 2014 14:32
Chromeのアドレスバー(オムニバー)にドメインしか表示されなくなった時の対処法

Webエンジニア殺し
上図のように、Chromeのアドレスバー(オムニバー)にドメインしか表示されなくなっちゃったけど戻してーわーって時の対処法。

Origin Chipというらしい
chrome://flags/から「Origin Chip を有効にする」と「アドレスバーの Origin Chip を有効にする」を無効に設定して再起動しましょう。

私は速攻で設定変更しましたが、どうやらGoogle神は汚いURLを隠蔽してドメインとSSL対応可否に注目させたいようなので、その思し召しに従うのも悪くないと思います。

@hirogasa
hirogasa / gist:e7cbaf1325bef40e9db1
Last active May 29, 2017 07:59
HTML+CSS入門 #1

HTML+CSS入門 # 1

はじめに

HTMLとは?

Webページを記述するために用いる言語。ちなみにプログラミング言語とは呼びません
ここでは最新バージョンであるHTML5を扱います。

CSSって?

HTML文書のデザイン(見た目)を記述するために用いる言語。
文字のフォントや各要素の大きさといった基本的な設定から、アニメーションなどの表現も行えます。

要するに?

HTMLで中身を書いてCSSで見た目を整えます。

Pod::Spec.new do |s|
s.name = "RMUniversalAlert"
s.version = "0.7"
s.summary = "Wrapper for UIAlertView / UIActionSheet / UIAlertController for targeting all iOS versions"
s.homepage = "https://github.com/yujiroarai/RMUniversalAlert"
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = "Ryan Maxwell"
s.source = { :git => "https://github.com/yujiroarai/RMUniversalAlert.git", :tag => '0.7' }
s.source_files = 'RMUniversalAlert.{h,m}', 'RMPopoverPresentationController.{h,m}'
s.requires_arc = true
@hirogasa
hirogasa / Nicovideo Community's Video Redirecter.js
Last active December 30, 2015 06:19
ニコニコ動画のコミュニティ動画から通常の動画ページに自動でリダイレクトするUserScript http://userscripts.org/scripts/show/134454
// ==UserScript==
// @name Nicovideo Community's Video Redirecter
// @version 0.1
// @namespace http://blog.livedoor.jp/hirogasa/
// @description ニコニコ動画のコミュニティ動画から通常の動画ページに自動でリダイレクトします。
// @include http://www.nicovideo.jp/watch/*
// ==/UserScript==
(function() {
if(document.body.innerHTML.match(/<a href="watch\/([^"]+)">元の動画を見る/)){
location.href = "http://www.nicovideo.jp/watch/" + RegExp.$1;
@hirogasa
hirogasa / NicovideoPlayingFavicon.user.js
Last active December 20, 2015 14:29
ニコニコ動画の再生中ページのFaviconを変更するUserScript
// ==UserScript==
// @name NicovideoPlayingFavicon
// @namespace https://twitter.com/hirogasa/
// @match http://www.nicovideo.jp/watch/*
// @description ニコニコ動画の再生中ページのFaviconを変更します。
// @version 1.0
// ==/UserScript==
(function(){
var isPlaying = false;
@hirogasa
hirogasa / file0.js
Last active August 29, 2015 14:09
FacebookのJavaScript SDKでバージョンを1.0から2.xに上げたらAPIが叩けなくなった人へ ref: http://qiita.com/hirogasa/items/788f089411c5c4f5d0df
FB.init({
appId: '123456789',
version: 'v2.2',
xfbml: true,
status: true
});
@hirogasa
hirogasa / 統一金融機関コード.json
Created August 25, 2014 13:11
http://ja.wikipedia.org/wiki/統一金融機関コードの一覧 のリストをJSON化しました。内容の正確性は保証致しません。
[
{
"code":"0000",
"name":"\u65e5\u672c\u9280\u884c"
},
{
"code":"0001",
"name":"\u307f\u305a\u307b\u9280\u884c"
},
{