Sfoglia il codice sorgente

keysnail.js: add ext chaika-find

pull/1/head
10sr 11 anni fa
parent
commit
43d3b82739
1 ha cambiato i file con 23 aggiunte e 0 eliminazioni
  1. +23
    -0
      _keysnail.js

+ 23
- 0
_keysnail.js Vedi File

@@ -30,6 +30,29 @@
);
})();

(function(){
function evalCode(s){
window.loadURI("javascript:" + s);
}

function find(s){
evalCode("Nodes.findBoxText.value='" + encodeURIComponent(s) + "';" +
"FindBox.find();");
// evalCode("FindBox.show()");
}

function readFind(){
prompt.reader({
message : "Search word?",
callback : function(s){
find(s);
}
});
}

ext.add("chaika-find", readFind, "chaika find");
})();

//////////////////////////////////////
//// sitelocalkeymap
var local = {};


Caricamento…
Annulla
Salva