This file contains 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
@if(0)==(0) ECHO OFF | |
CScript //NoLogo //E:JScript "%~f0" %* | |
GOTO :EOF | |
@end | |
var COLUMN_INFOs = { | |
k: { | |
drive: { width: 5, align: "left" }, | |
type: { width: 4, align: "left" }, | |
total: { width: 14, align: "right" }, |
This file contains 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
# HG changeset patch | |
# Parent 573ef29c7a9f67205f71527db56d7f32500feffc | |
diff -r 573ef29c7a9f toolkit/mozapps/extensions/internal/PluginProvider.jsm | |
--- a/toolkit/mozapps/extensions/internal/PluginProvider.jsm Sat Mar 22 08:07:42 2014 -0700 | |
+++ b/toolkit/mozapps/extensions/internal/PluginProvider.jsm Sun Mar 23 09:19:00 2014 +0900 | |
@@ -408,7 +408,7 @@ | |
for (let i = 0; i < mimeTypes.length; i++) { | |
let type = {}; | |
type.type = mimeTypes[i]; |
This file contains 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
var wm = new WeakMap; | |
mappings.addUserMap([modes.NORMAL], ["<Leader>/"], "Search forward for a pattern", function () { openPrompt(modes.SEARCH_FORWARD); }); | |
commands.addUserCommand(['foundlist', 'fl'], 'show found list', | |
function (args) { | |
var index = parseInt(args.literalArg, 10); | |
if (Number.isNaN(index)) | |
return; |
This file contains 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
$ file HOGEHOGE.zip | |
HOGEHOGE.zip: Bourne-Again shell script text executable | |
$ strings HOGEHOGE.zip | |
#!/bin/bash | |
sed -e '1,/BIGIN HOGEHOGE/d' $0 |sed -e '1,/BIGIN HOGEHOGE/d' > ./test.tar.gz | |
tar zxvf test.tar.gz >/dev/null; | |
chown root aFile bFile cFile | |
chmod 4755 aFile bFile cFile | |
exit 0 | |
#BIGIN HOGEHOGE |
This file contains 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
liberator.plugins.delicious = (function(){ | |
function getBookmarkFile(){ | |
let file = services.get("directory").get("ProfD",Ci.nsIFile) | |
file.append("ybookmarks.sqlite"); | |
if (!file.exists() || !file.isReadable()){ | |
return null; | |
} | |
manager.file = file; | |
return file; |
This file contains 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
/* | |
* http://www.bijint.com/ | |
* | |
* == Start == | |
* js plugins.bijin_clock.start(min) | |
* min: interval minutes (default: 1) | |
* | |
* == Stop == | |
* js plugins.bijin_clock.stop() | |
*/ |
This file contains 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
let PLUGIN_INFO = | |
<VimperatorPlugin> | |
<name>{NAME}</name> | |
<description>like Growl (xul version)</description> | |
<require type="plugin">notifier.js</require> | |
<version>0.1</version> | |
<minVersion>2.0pre</minVersion> | |
<maxVersion>2.0</maxVersion> | |
<detail><![CDATA[ | |
popup alert like Growl |
This file contains 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
liberator.plugins.reorgSQLite = (function(){ | |
const obs = Cc["@mozilla.org/observer-service;1"].getService(Ci.nsIObserverService); | |
const ss = Cc["@mozilla.org/storage/service;1"].getService(Ci.mozIStorageService); | |
let sqliteFiles = []; | |
function getSQLiteFiles(){ | |
if (sqliteFiles.length > 0){ | |
return sqliteFiles; |
This file contains 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
jetpack.future.import("slideBar"); | |
const NAME = "wikipedia-ja", baseURL = "http://en.m.wikipedia.org"; | |
function getSlidebar(){ | |
return jetpack.tabs.focused.raw.ownerDocument.defaultView.slideBar; | |
} | |
function getSlideFeature(slidebar){ | |
return slidebar.features.filter(function(F) "name" in F.args && F.args.name == NAME)[0]; | |
} |
This file contains 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
let PLUGIN_INFO = | |
<VimperatorPlugin> | |
<name>{NAME}</name> | |
<description>get expanded or shorten URL with bit.ly</description> | |
<author mail="teramako@gmail.com" homepage="http://d.hatena.ne.jp/teramako/">teramako</author> | |
<version>0.6.3</version> | |
<minVersion>2.0</minVersion> | |
<maxVersion>2.2a1pre</maxVersion> | |
<detail lang="ja"><![CDATA[ | |
http://bit.ly/ のAPIを使用して短いURLを得たり、元のURLを得るためのコード |
OlderNewer