Add a dummy extension
This commit is contained in:
parent
208e7f9f55
commit
8f91c4c516
32 changed files with 537 additions and 1 deletions
26
passextension/passProcessor.js
Normal file
26
passextension/passProcessor.js
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
var PassProcessor = function() {};
|
||||
|
||||
PassProcessor.prototype = {
|
||||
run: function(arguments) {
|
||||
var url
|
||||
var html
|
||||
var error
|
||||
try {
|
||||
url = document.URL;
|
||||
html = document.body.innerHTML
|
||||
} catch (e) {
|
||||
error = e
|
||||
} finally {
|
||||
arguments.completionFunction({"url": url, "html": html, "error": error});
|
||||
}
|
||||
},
|
||||
|
||||
finalize: function(arguments) {
|
||||
var str = "username: " + arguments["username"] + "\r\npassword: " + arguments["password"];
|
||||
alert(str)
|
||||
// document.body.innerHTML = arguments["content"];
|
||||
}
|
||||
};
|
||||
|
||||
// The JavaScript file must contain a global object named "ExtensionPreprocessingJS".
|
||||
var ExtensionPreprocessingJS = new PassProcessor;
|
||||
Loading…
Add table
Add a link
Reference in a new issue