Skip to content

Instantly share code, notes, and snippets.

View ShingoFukuyama's full-sized avatar

Shingo Fukuyama ShingoFukuyama

  • Japan
View GitHub Profile
@ShingoFukuyama
ShingoFukuyama / reddit-dark-skin.js
Last active August 29, 2015 14:16
Use FontAwesome on CDN to override the design of reddit for web (mobile view)
(function(d){
if (!/reddit\.com.+\.compact/.test(location.href)) return;
var fontLink = d.createElement('link');
fontLink.rel = 'stylesheet';
fontLink.href = '//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css';
var themeDark1 = "body {background: #000000 !important;}a {color: #acf !important;}#topbar h1 a {color: #333 !important;}#top_menu {background: #333 !important;color: #aaa !important;}.subtoolbar {height: auto !important;background: #444 !important;}.subtoolbar li {margin: 2px 0 !important;}.subtoolbar>ul>li.selected a {background: #666 !important;box-shadow: 0 0 0 !important;}.topbar-options {background: none !important;text-align: center !important;text-decoration: none !important;font-family: 'FontAwesome' !important;font-size: 22px !important;color: #517191 !important;}.topbar-options:before {content: '\\f085';}#topbar>.right>#mail {background: none !important;text-align: center !important;text-decoration: none !important;font-family: 'FontAwesome' !important;font-si
/* Ohajiki Web Browser
* ユーザースクリプト (読み込み後) に設定
* Google検索をするたびに背景の色をランダムに変える
*/
(function(d){
function randomColor() {
var letters = '0123456789ABCDEF'.split('');
var color = '#';
for (var i = 0; i < 6; i++ ) {
(function(){
var domain = location.host; // ドメイン
var url = location.href; // URL全体
var extension = location.pathname.split('.').pop(); // 拡張子
// よく切り替える機能はスイッチ用の変数があると、機能のON/OFFしやすい
var youtubeSwitch = 1; // 例: 1が有効、0が無効
/* Before load user script for Ohajiki Web Browser
* 読み込み前用です。
* FacebookとTwitter関連のページを開くときにそれぞれの公式アプリで開くか確認を取ります。
* 動きますが、まだ他にも調整が必要かもしれません。
*/
(function(){
/* Facebook公式アプリで開く */
var facebook = 1; // 1:有効, 0:無効
var facebookConfirm = 0; // 確認してから移動するか
/* Twitter公式アプリで開く */
Ohajiki is a powerful web browser that packs complete browsing control into a unique circle gesture and menu.
With tilt scrolling, bookmark importing from Firefox and Chrome, Launcher-like search, QR code scanning, and more, Ohajiki Web Browser is filled with features yet easy to use.
------------------------------------------------------
* Main feature
Circle gesture button
Infinite tab with thumbnail
Non-transitioning tree structure bookmark list
// Common
"Close";
"Preference";
"Open";
"Clear";
"Delete";
"Cancel";
"Save";
"Choose";
(when (executable-find "cmigemo")
(when (require 'migemo nil t)
(setq migemo-command "cmigemo")
(setq migemo-options '("-q" "--emacs"))
(setq migemo-dictionary "/usr/local/share/migemo/utf-8/migemo-dict")
(setq migemo-user-dictionary nil)
(setq migemo-regex-dictionary nil)
(setq migemo-coding-system 'utf-8)
(load-library "migemo")
(migemo-init)))

こちらのページを見ていただきありがとうございます。
v1.1.8時点のOhajiki WebブラウザURLスキームです。

ohajiki://x-callback-url/open/

指定されたURLを開きます。

  url=                        // URLを指定します。__CLIPBOARD__と指定するとクリップボード内のURLを使用可能です。
  bookmarklet-name=           // 登録済みブックマーク名を利用して実行します
  current-tab                 // これを加えると新しいタブで開かなくなります
  x-source=                   // 任意の名前(呼び出し元のアプリ名など)
#import "ViewController.h"
#import <WebKit/WebKit.h>
@interface ViewController ()
@property (nonatomic, strong) WKWebView *webView;
@property (nonatomic, strong) UIActivityViewController *activityController;
@end
@implementation ViewController
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.