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
shortcutkeys['CTRL + D'] = { | |
description : 'LDR hatebu comment', | |
execute : function(e){ | |
var fx = getMostRecentWindow(); | |
var win = wrappedObject(fx.content); | |
if(!/(http:\/\/reader\.livedoor\.com\/reader\/)/.test(win.location)) | |
return; | |
cancel(e); | |
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 remove(path){ | |
var shell = new ActiveXObject('Shell.Application'); | |
var fileSystem = WScript.createObject('Scripting.FileSystemObject'); | |
if(fileSystem.fileExists(path)){ | |
var target = fileSystem.getFile(path); | |
var folder = shell.nameSpace(target.parentFolder.path); | |
shell.nameSpace(10).moveHere(folder.items().item(target.name)); | |
while(fileSystem.fileExists(path)) |
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== | |
// @name LDR - Feed Filter | |
// @namespace http://github.com/to | |
// @include http://reader.livedoor.com/reader/ | |
// ==/UserScript== | |
var FILTERS = [ | |
function(c){ | |
if(/zLLQDaZE3hGdsj811ZzWFw/.test(c.feedlink)) | |
c.title = c.feedlink.replace(/.*username=(.*)/, 'Soundcloud: $1'); |
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== | |
// @name Twitter Title Chop | |
// @include http://twitter.com/* | |
// ==/UserScript== | |
window.addEventListener('load', function(){ | |
document.title = document.title.replace(/Twitter[ \/]*/, ''); | |
}, true); |
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== | |
// @name YouTube Manual Play | |
// @include http://www.youtube.com/watch* | |
// @include http://youtube.com/watch* | |
// ==/UserScript== | |
(function(){ | |
var player = document.getElementById('movie_player'); | |
if(!player) | |
return; |
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
update(MochiKit.Style.Coordinates.prototype, { | |
equals : function(target){ | |
return target && (this.x == target.x && this.y == target.y); | |
} | |
, | |
clone : function(){ | |
return new Coordinates(this.x, this.y); | |
} | |
, | |
getDistance : function(pos){ |
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
Tombloo.Service.actions.register({ | |
name : 'BBモバイルポイントをコピーする', | |
type : 'context', | |
check : function(ctx){ | |
return new RegExp('/bbmp.softbanktelecom.co.jp/cgi-bin/service/bbmobile_search/list_city.cgi\\?ac=').test(ctx.href); | |
}, | |
execute : function(ctx){ | |
// http://bbmp.softbanktelecom.co.jp/cgi-bin/service/bbmobile_search/list_city.cgi?ac=13 | |
var self = this; |
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
loadPolicies.push(function(contentType, contentLocation, requestOrigin, context, mimeTypeGuess, extra){ | |
try{ | |
var url = contentLocation.spec; | |
if(contentType == IContentPolicy.TYPE_DOCUMENT) | |
return false; | |
if(/\/safestream\.php/.test(url)){ | |
if(url.match('rbmaradio.de')) | |
url = url.replace('rbmaradio.de', 'archive1.rbmastream.net'); | |
addTab(url); |