Skip to content

Instantly share code, notes, and snippets.

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))
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);
// ==UserScript==
// @name XULPlanet -> MDC
// @namespace http://github.com/to
// @include http://www.xulplanet.com/references/xpcomref/ifaces/*
// ==/UserScript==
var name = location.href.match(/.*\/([^\.]*)\..*/)[1];
location.href = 'https://developer.mozilla.org/en/' + name;
// ==UserScript==
// @name Jottit Oops Reload
// @include http://*.jottit.com/*
// ==/UserScript==
if(document.body.innerHTML.match('>Oops!<'))
setTimeout(function(){location.reload()}, 10000);
Tombloo.Service.actions.register( {
name : 'Viva-Radio Downloader',
execute : function(){
var self = this;
var ZONE = 9;
var BASE_URL = 'http://www.viva-radio.com';
var DIR = getDownloadDir();
DIR.append('viva-radio');
// ==UserScript==
// @name Stop Right Click
// @namespace http://github.com/to
// @include http://www.iza.ne.jp/*
// ==/UserScript==
window.addEventListener('contextmenu', function(e){
e.stopPropagation();
}, false);
var tomb = Components.classes['@brasil.to/tombloo-service;1'].getService().wrappedJSObject;
var ctx = _jsaCScript.context;
if(ctx.onImage){
var src = ctx.target.src;
var name = prompt('Source String');
} else {
var name = trim(ctx.selection);
var string = prompt('Destination String');
}
var RE = /zshare/;
_jsaCScript.setClipBoardString(
Array.filter(document.links, function(l){
return RE.test(l.href)
}).join('\n')
);
// ==UserScript==
// @name gist - ubiquity
// @namespace http://d.hatena.ne.jp/youpy/
// @include http://gist.github.com/*
// @require http://gist.github.com/raw/3242/1a7950e033a207efcfc233ae8d9939b676bdbf46
// ==/UserScript==
(function() {
var data = $X('id("gist_data")');
if(!data)