Change extension name and folder names

This commit is contained in:
Yishi Lin 2017-06-15 17:27:02 +08:00
parent df75dc9d6a
commit 9bb51d209c
33 changed files with 48 additions and 39 deletions

View 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;