Change extension name and folder names
This commit is contained in:
parent
df75dc9d6a
commit
9bb51d209c
33 changed files with 48 additions and 39 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