Index: chrome/renderer/resources/greasemonkey_api.js |
diff --git a/chrome/renderer/resources/greasemonkey_api.js b/chrome/renderer/resources/greasemonkey_api.js |
index 7b829ad35f733aaef222d07db5b3c8be68bb41e8..ed17367ed0aad8249f16de5809d27ba598a1e37c 100644 |
--- a/chrome/renderer/resources/greasemonkey_api.js |
+++ b/chrome/renderer/resources/greasemonkey_api.js |
@@ -67,3 +67,15 @@ function GM_openInTab(url) { |
function GM_log(message) { |
window.console.log(message); |
} |
+ |
+(function() { |
+ console.log("adding apis"); |
Matt Perry
2009/11/03 20:21:29
remove log statements?
|
+ console.log(window == this); |
+ var apis = ["GM_getValue", "GM_setValue", "GM_registerMenuCommand"]; |
+ for (var i = 0, api; api = apis[i]; i++) { |
+ console.log("adding api: " + api); |
+ window[api] = function() { |
+ console.log("%s is not supported.", api); |
+ } |
+ } |
+})(); |