Skip to content

Instantly share code, notes, and snippets.

@Griever
Griever / google-sp.txt
Created November 17, 2022 14:01
Google スマホ表示のメモと SITEINFO
スマホ表示の確認メモ
iPhone, Galaxy などの有名端末と Kindle や Android の端末・ブラウザで表示が違う
〇=自動スクロールあり
×=「次へ >」のリンク
Windows(DevTool)
 Chrome
  iPhone 〇
  Galaxy 〇
@Griever
Griever / Text-Replace.js
Created June 8, 2013 08:28
テキスト置き換えスクリプト
javascript:/*Text-Replace*/(function(){
var data = [
{
before: 'Griever',
after : '┐(´ー`)┌',
},
{
before: 'Opera',
after : '<span style="font-size:30pt; color:red;">Opera</span>',
@Griever
Griever / NewTabPageDial.uc.js
Created May 18, 2013 08:45
about:newtab を Speed Dial に変えるスクリプト。
// ==UserScript==
// @name NewTabPageDial
// @description Speed dial by about:newtab
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @compatibility Firefox 21
// @charset UTF-8
// @include main
// @version 0.0.1
@Griever
Griever / LinkDragSelectionForChrome.user.js
Created February 21, 2013 14:47
Chrome で Opera 風のリンクテキストの選択を再現するスクリプト
// ==UserScript==
// @name LinkDragSelectionForChrome
// @description Opera like link selection for chrome.
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @match http://*/*
// @match https://*/*
// @version 0.0.1
// ==/UserScript==
@Griever
Griever / UCSS.uc.js
Created January 20, 2013 12:25
UCSS reload usercss
// ==UserScript==
// @name UCSS
// @description reload usercss
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @compatibility Firefox 18
// @charset UTF-8
// @include main
// @version Beta 1
// ==UserScript==
// @name fastforward.uc.js
// @namespace http://d.hatena.ne.jp/Griever/
// @include main
// @compatibility Firefox 4.0
// @charset UTF-8
// @license MIT License
// @version 0.0.1
// @note 昔作ったものが埋もれていたので公開
// ==/UserScript==
// ==UserScript==
// @name reload_userChrome_and_userContent.uc.js
// @description ┐(´ー`)┌
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @compatibility Firefox 17
// @charset UTF-8
// @include main
// @version 0.0.1
@Griever
Griever / _readme.txt
Last active October 13, 2015 06:27
plugins.click_to_play でブロックした YouTube の埋め込み動画にサムネイルをつける
clicktoplay.xml を chrome フォルダに保存。
Stylish で使う場合はフルパスに直すこと。
@Griever
Griever / ClickToPlayMenu.uc.js
Created July 18, 2012 07:56
plugins.click_to_play でブロックしたプラグインを常に再生するメニューを作る
// ==UserScript==
// @name ClickToPlayMenu.uc.js
// @description plugins.click_to_play でブロックしたプラグインを常に再生するメニューを作る
// @namespace http://d.hatena.ne.jp/Griever/
// @author Griever
// @license MIT License
// @compatibility Firefox 14
// @charset UTF-8
// @include main
// @version 0.0.1
@Griever
Griever / Zen2Han.js
Created May 22, 2012 14:01
全角英数を半角英数にするBookmarklet
javascript:/*Zenkaku-Hankaku*/(function(doc){
var zen = /[\u3000\uFFE5\uFF01-\uFF5E]/g;
var arr = ['contains(.,"\u3000")','contains(.,"\uFFE5")'];
for (var i = 0xFF01; i < 0xFF5E; ++i) {
arr.push('contains(.,"' + String.fromCharCode(i) + '")');
}
var xpath = '//text()[(' + arr.join(' or ') + ') and not(ancestor::style) and not(ancestor::script)]';