use new plugin wrapper macros for bookmarks plugin
This commit is contained in:
parent
0d62990abe
commit
5a62d92620
@ -13,9 +13,7 @@
|
|||||||
// @match http://www.ingress.com/intel*
|
// @match http://www.ingress.com/intel*
|
||||||
// ==/UserScript==
|
// ==/UserScript==
|
||||||
|
|
||||||
function wrapper() {
|
@@PLUGINSTART@@
|
||||||
// ensure plugin framework is there, even if iitc is not yet loaded
|
|
||||||
if(typeof window.plugin !== 'function') window.plugin = function(){};
|
|
||||||
|
|
||||||
// PLUGIN START ////////////////////////////////////////////////////////
|
// PLUGIN START ////////////////////////////////////////////////////////
|
||||||
|
|
||||||
@ -533,16 +531,4 @@ if(typeof window.plugin !== 'function') window.plugin = function(){};
|
|||||||
|
|
||||||
// PLUGIN END //////////////////////////////////////////////////////////
|
// PLUGIN END //////////////////////////////////////////////////////////
|
||||||
|
|
||||||
if(window.iitcLoaded && typeof setup === 'function') {
|
@@PLUGINEND@@
|
||||||
setup();
|
|
||||||
} else {
|
|
||||||
if(window.bootPlugins)
|
|
||||||
window.bootPlugins.push(setup);
|
|
||||||
else
|
|
||||||
window.bootPlugins = [setup];
|
|
||||||
}
|
|
||||||
} // wrapper end
|
|
||||||
// inject code into site context
|
|
||||||
var script = document.createElement('script');
|
|
||||||
script.appendChild(document.createTextNode('('+ wrapper +')();'));
|
|
||||||
(document.body || document.head || document.documentElement).appendChild(script);
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user