Browse Source

keysnail.js: add ext chaika-find

pull/1/head
10sr 11 years ago
parent
commit
43d3b82739
1 changed files with 23 additions and 0 deletions
  1. +23
    -0
      _keysnail.js

+ 23
- 0
_keysnail.js View 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 = {};


Loading…
Cancel
Save