Skip to content

Instantly share code, notes, and snippets.

@ktakayama
ktakayama / DenyRakutenNews.user.js
Last active April 7, 2024 04:58
楽天のメルマガチェックを自動解除するGreaseonkeyスクリプト
// ==UserScript==
// @name Deny Rakuten News
// @namespace http://espion.just-size.jp/archives/05/136155838.html
// @description Deny Rakuten News
// @include https://*.step.rakuten.co.jp/*
// @include https://*.travel.rakuten.co.jp/rsv/RsvInput.do*
// @include https://my.rental.rakuten.co.jp/action/my/*
// @include https://delivery.rakuten.co.jp/*?module=Default&action=OrderStep*
// @include https://auction.item.rms.rakuten.co.jp/*
// @include https://my.checkout.rakuten.co.jp/myc/purchase/Confirm
@saitamanodoruji
saitamanodoruji / TogetterToTumblr.js
Created December 9, 2009 07:20
Tombloo Togetter extractor
Tombloo.Service.extractors.register(
{
name: 'Conversation - togetter',
RE : /^http:\/\/togetter\.com\/li\//,
ICON : 'http://togetter.com/favicon.ico',
check : function(ctx){
return this.RE.test(ctx.href);
},
extract : function (ctx) {
var list_item = $x('//li[contains(concat(" ", @class, " "), " list_item ")][div[contains(concat(" ", @class, " "), " type_tweet ")]]', ctx.document, true);
@azu
azu / model.localhtml.js
Created January 16, 2011 01:54
Tomblooのデータフォルダに年月フォルダ内htmlで記録するパッチ
models.register({
name : 'Local HTML',
ICON : 'chrome://tombloo/skin/local.ico',
check : function(ps) {
return (/(regular|photo|quote|link)/).test(ps.type);
},
post : function(ps) {
@think49
think49 / outerHTML.js
Created January 16, 2011 08:27
outerHTML.js : HTML5 規定の element.outerHTML を定義する。
/**
* outerHTML.js
*
* @version 1.4
* @author think49
*/
if (!('outerHTML' in document.createElement('p')) && 'innerHTML' in document.createElement('p') && (typeof HTMLElement === 'function' || typeof HTMLElement === 'object')) {
(function () {
var _Node = (typeof Node === 'function' || typeof Node === 'object') ? Node : {
@azu
azu / Tumblr.user.js
Created February 22, 2011 13:55
Add an edit link for tumblr posts (very useful for colaborative blogs)
// ==UserScript==
// @name Tumblr - Edit link
// @namespace ivanmendoza.net
// @description Add an edit link for tumblr posts (very useful for colaborative blogs)
// @include http://jser.info/post/*
// ==/UserScript==
// origina from http://userscripts.org/scripts/show/65725
function getLink() {
var href = location.href;
var m = new RegExp('(http:\\/\\/)((?:[a-z][a-z\\.\\d\\-]+)\\.(?:[a-z][a-z\\-]+))(?![\\w\\.])(\\/post\\/)(\\d+)', ["i"]).exec(href);
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
<script type="text/javascript" src="https://github.com/mach3/js-jquery-class/raw/master/jquery.class.min.js"></script>
<script type="text/javascript" src="https://github.com/mach3/js-tumblrposts.js/raw/master/tumblrposts.js"></script>
<script type="text/javascript">
(function() {
var posts = new TumblrPosts({
domain:"jser.info",
maxNum:300
});
posts.bind(posts.EVENT_COMPLETE, function(e) {
@revolunet
revolunet / lzw_encoder.js
Created February 25, 2011 14:55
LZW javascript compress/decompress
// LZW-compress a string
function lzw_encode(s) {
var dict = {};
var data = (s + "").split("");
var out = [];
var currChar;
var phrase = data[0];
var code = 256;
for (var i=1; i<data.length; i++) {
currChar=data[i];
@ne-sachirou
ne-sachirou / xorshift.js
Created March 3, 2011 04:22
Xorshift random on JavaScript #js
// @license = public domain
// =Usage
// Number = Xorshift.random();
//
// var xor128 = Xorshift.init();
// Array = xor128.make(1000000);
(function() {
@think49
think49 / get-type.js
Created March 9, 2011 12:04
get-type.js : ECMAScript5 準拠のデータ型を返す
/**
* get-type.js
*
* @version 1.0.2
* @author think49
* @url https://gist.github.com/862085
* @license http://www.opensource.org/licenses/mit-license.php (The MIT License)
*/
function getType (value) {
// ==UserScript==
// @name drawr + Tombloo
// @namespace http://drawr.net/saitamanodoruji
// @description adds 'Tombloo::drawr' command to minibuffer, which calls 'Photo - drawr' extractor of Tombloo.
// @include http://drawr.net/*
// @author saitamanodoruji
// @version 0.0.10
// ==/UserScript==
//
// Features