This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// @property (nonatomic, strong) NSArray *colors; | |
// macro from https://gist.github.com/uechi/7688152 | |
//RGB color macro | |
#define UIColorFromRGB(rgbValue) [UIColor \ | |
colorWithRed:((float)((rgbValue & 0xFF0000) >> 16))/255.0 \ | |
green:((float)((rgbValue & 0xFF00) >> 8))/255.0 \ | |
blue:((float)(rgbValue & 0xFF))/255.0 alpha:1.0] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0"?> | |
<root> | |
<item> | |
<name>My Mouse Settings</name> | |
<item> | |
<name>FFF Tilt Wheel to Back Forward (Command+[, Command+])</name> | |
<identifier>remap.my_tilt_wheel_to_back_forward</identifier> | |
<autogen> | |
__ScrollWheelToKey__ ScrollWheel::LEFT, ModifierFlag::NONE, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
</head> | |
<body> | |
<my-alert></my-alert><!-- custom element --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* UserScript for Ohajiki Web Browser | |
* 全サイトを黒背景に白文字 | |
* 設定>ユーザスクリプトの編集>読み込み前 に以下をコピペ | |
*/ | |
var blackAndWhite = 1; // 0: 無効, 1: 有効 | |
if (blackAndWhite) {(function(d){var ohjBW = d.getElementById('ohjBW');if (ohjBW) {ohjBW.parentNode.removeChild(ohjBW);return;}var css = d.createElement('style'),rule = d.createTextNode('*{background-color:#111 !important; color:#eee !important;} a:visited { color:#aaf !important; } a{ color:#acf !important; }a, span{background-color:transparent !important;}');css.type = 'text/css';css.id = 'ohjBW';if (css.styleSheet) {css.styleSheet.cssText = rule.nodeValue;} else {css.appendChild(rule);};d.getElementsByTagName('html')[0].appendChild(css);})(document);} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function(d){ | |
var links = d.getElementsByTagName('link'); | |
var rss = 0; | |
for (var i = 0; i < links.length; i++) { | |
if (/application\/(rss|atom)\+xml/.test(links[i].type)) { | |
rss = 1; | |
break; | |
} | |
} | |
if (rss) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ( /\.google\..+?\/search\?/.test(location.href) ) { | |
// Google Auto Pagerize | |
// os0x.block http://os0x.hatenablog.com/entry/20080327/1206613170 | |
(function(a,s){s=document.createElement('script');s.charset='UTF-8';s.type='text/javascript';s.src=a.shift();document.body.appendChild(s);if(a.length)arguments.callee(a);})(['http://ss-o.net/userjs/xAutoPagerize.user.js']); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(){ var links = document.getElementsByTagName('a');for (var i = 0; i < links.length; i++){var link = links[i];if (link.href && /^tel\:/i.test(link.href)) {link.href = link.href.replace(/^tel\:/, 'smartalk:');}} })(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(function(d){var scrollAmount = 2;var scrollSpeed = 20;var buttonTextOn = '動';var buttonTextOff = '止';var diameter = 60;var fromRight = 50;var fromBottom = 5;var doneImmediately = 1;var buttonCSS = '#ohajiki-auto-scrolling { width: ' + diameter + 'px !important; height: ' + diameter + 'px !important; border-radius: ' + diameter * 0.5 + 'px !important; border: 1px solid #ccc !important; background: rgba(255,255,255,0.8) !important; font-size: ' + diameter * 0.5 + 'px !important; text-align: center !important; line-height: ' + diameter + 'px !important; position: fixed !important; z-index: 99999 !important; bottom: ' + fromBottom + 'px !important; right: ' + fromRight + 'px !important; cursor: pointer !important; -webkit-user-select: none; -khtml-user-select: none; -moz-user-select: none; -o-user-select: none; user-select: none; }';var htmlNode = d.getElementsByTagName('html')[0];var style = d.createElement('style');var styleID = 'ohajiki-user-stylesheet-for-auto-scrolling';var oldStyle = d.getElemen |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Ohajiki Web Browser 独自スタイルシートの例 | |
// | |
// 設定>ユーザースクリプトの編集>読み込み前 で編集可能 | |
// | |
(function(){ | |
var d = document; | |
/* 現在のURLやドメイン */ | |
var url = location.href; | |
var domain = location.hostname; |