Skip to content

Instantly share code, notes, and snippets.

// ==Taberareloo==
// {
// "name" : "Scrapbox Model"
// , "description" : "Post to scrapbox.io"
// , "include" : ["background", "content"]
// , "match" : ["*://scrapbox.io/*"]
// , "version" : "0.4.3"
// , "downloadURL" : "https://scrapbox.io/api/code/rac8/model.scrapbox.tbrl.js_%E3%83%A9%E3%83%B3%E3%83%80%E3%83%A0%E7%89%88/model.scrapbox.tbrl.js"
// }
// ==/Taberareloo==
@dlwr
dlwr / patch.fix.twitter.update.tbrl.js
Created May 11, 2017 02:24 — forked from ailispaw/patch.fix.twitter.update.tbrl.js
Taberareloo Patch: Fix Twitter.update 2016.08
// ==Taberareloo==
// {
// "name" : "Fix Twitter.update 2016.08"
// , "description" : "Fix Twitter.update 2016.08"
// , "include" : ["background"]
// , "version" : "0.2.0"
// , "downloadURL" : "https://gist.githubusercontent.com/ailispaw/9406c2ffacf68c6ad238/raw/patch.fix.twitter.update.tbrl.js"
// }
// ==/Taberareloo==
@-moz-document domain("www.tumblr.com") {
#right_column, .l-header-container {
display: none;
}
.l-container.l-container--two-column, .l-container.l-container--two-column-dashboard, .l-container.l-container--two-column-dashboard .left_column, .l-container.l-container--two-column .left_column, .post.post_full {
width: 100%;
float: none;
}
.post_full.is_video .crt-video, .post_full.is_photo .post_media .post_media_photo, .post_full.is_photo .post_media .post_media_photo_ancho {
'use strict'
const fetch = require('node-fetch')
const client = require('cheerio-httpcli')
const BASE_URL = 'https://wikihub.io'
const COMMUNITIES_URL = BASE_URL + '/communities'
const TOKEN = '0b8c09f94a89e1ce3d0c1fbd35cd6ac327a104b3'
const paths = {}
function fetchPages(community, url) {
{"programming":{"title":"Programming","pages":[],"articles":{"@r7kamura":{"20160704215030":"ActiveModelで特定の語句を含むことを禁止するValidationを定義する","20160704195851":"Facebookで上手く表示されるようにmeta要素を記述する","20160703095421":"RailsアプリにGoogle Analyticsのトラッキングコードを追加する","20160702202711":"Let's EncryptとAmazon LinuxとNginxでamakan.netをHTTPSに対応させた","20160702201751":"Amazon Product Advertising APIで得られた画像のHTTPS版を利用する","20160629145440":"iCalendarのURLを指定してカレンダーを登録するためのリンクを生成する","20160628125028":"Amazon Product Advertising APIでKindle版の書籍を絞り込む・除外する・判定する","20160627030457":"RailsでiCalendar形式で予定を公開する","20160624234249":"ActiveRecordで途中からcollationをutf8mb4_binに変更する","20160624110140":"モデルでURLを組み立てるときにホスト名をどうにかして用意する","20160619091726":"Imgur APIを利用してWebブラウザから画像をアップロードする","20160617011257":"Railsでデフォルトで設定されるX-Frame-Optionsの値を変更する","20160615122140":"WikiHub不具合日記 2016年6月15日","20160606205809":"ActiveRecordで子レコードを作成するときに親レコードのインスタンス変数を参照したい場合はinverse_ofが必要","20160530234126":"テンプレートマッチングでスプラトゥーンのゲーム結果画面を見ているかどうか判定してみた","20160521224916":"HTML内のCSS定義をstyle属性に置
// ==Taberareloo==
// {
// "name" : "WikiHub Model for RAC Articles"
// , "description" : "Post an article to https://rac.wikihub.io/articles"
// , "include" : ["background"]
// , "version" : "0.0.2"
// , "downloadURL" : "https://gist.githubusercontent.com/raw/87ea769b18357185f27babb24e471a31/model.wikihub.rac.tbrl.js"
// }
// ==/Taberareloo==
@dlwr
dlwr / app.js
Last active April 27, 2016 09:30
toste
const http = require('http');
function check(request, response) {
if (request.url === '/favicon.ico') {
response.writeHead(200, {'Content-Type': 'image/x-icon'} );
response.end();
return;
}
response.writeHead(200, {'Content-Type': 'text/plain'});
response.end(`チェックワンツー、ワンツー`);
// ==Taberareloo==
// {
// "name" : "Fix Tumblr like actions on AutoPagerizing"
// , "description" : "Fix Tumblr like actions on AutoPagerizing"
// , "include" : ["content"]
// , "match" : [
// "*://www.tumblr.com/dashboard*",
// "*://www.tumblr.com/likes*",
// "*://www.tumblr.com/blog/*",
// "*://www.tumblr.com/tagged/*"
@dlwr
dlwr / extractor.photo.capture.glitch.tbrl.js
Last active August 29, 2015 14:10
ウェブページをキャプチャーしてグリッチして投稿するtaberareloo拡張パッチ
// ==Taberareloo==
// {
// "name" : "Glitch Selected Region"
// , "description" : "Glitch Selected Region"
// , "include" : ["background", "content"]
// , "match" : ["*://*/*"]
// , "version" : "1.0.2"
// , "downloadURL" : "https://gist.githubusercontent.com/dlwr/8f616fc605ff6b99640e/raw/extractor.photo.capture.glitch.tbrl.js"
// }
// ==/Taberareloo==