var PLUGIN_INFO =
{NAME}
Open URL from a template
テンプレートからURLをOpenします
2.0pre
2.0pre
https://github.com/vimpr/vimperator-plugins/raw/master/exopen.js
pekepekesamurai
0.10.1
||
javascript <
;
liberator.plugins.exOpen = (function() {
var global = liberator.globalVariables.exopen_templates;
if (!global) {
global = [{
label: 'vimpnightly',
value: 'http://code.google.com/p/vimperator-labs/downloads/list?can=1&q=label:project-vimperator',
description: 'open vimperator nightly xpi page',
newtab: true
}, {
label: 'vimplab',
value: 'http://www.vimperator.org/vimperator',
description: 'open vimperator trac page',
newtab: true
}, {
label: 'vimpscript',
value: 'http://code.google.com/p/vimperator-labs/issues/list?can=2&q=label%3Aproject-vimperator+label%3Atype-plugin',
description: 'open vimperator trac script page',
newtab: true
}, {
label: 'coderepos',
value: 'http://coderepos.org/share/browser/lang/javascript/vimperator-plugins/trunk/',
description: 'open coderepos vimperator-plugin page',
newtab: true
}, {
label: 'sldr',
value: 'http://reader.livedoor.com/subscribe/%URL%'
}];
}
function openTabOrSwitch(url) {
var tabs = gBrowser.mTabs;
for (let i=0, l=tabs.length; i