2016-05-07 08:54:44 +03:00
|
|
|
|
var BitwardenExtension = function () { };
|
|
|
|
|
|
|
|
|
|
BitwardenExtension.prototype = {
|
|
|
|
|
run: function (arguments) {
|
2016-05-25 07:09:11 +03:00
|
|
|
|
console.log("Run");
|
|
|
|
|
console.log(arguments);
|
|
|
|
|
|
2016-05-07 08:54:44 +03:00
|
|
|
|
var args = {
|
2016-05-27 05:22:38 +03:00
|
|
|
|
baseUri: document.baseURI,
|
|
|
|
|
url: document.URL,
|
|
|
|
|
htmlContent: document.body.innerHTML
|
2016-05-07 08:54:44 +03:00
|
|
|
|
};
|
|
|
|
|
arguments.completionFunction(args);
|
|
|
|
|
},
|
|
|
|
|
finalize: function (arguments) {
|
2016-05-25 07:09:11 +03:00
|
|
|
|
console.log("Finalize");
|
|
|
|
|
console.log(arguments);
|
2016-05-07 08:54:44 +03:00
|
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
var ExtensionPreprocessingJS = new BitwardenExtension;
|