diff --git a/chrome_point_plus/js/background.js b/chrome_point_plus/js/background.js index a9d4897..f8b3902 100644 --- a/chrome_point_plus/js/background.js +++ b/chrome_point_plus/js/background.js @@ -22,8 +22,12 @@ chrome.extension.onMessage.addListener(function(message, sender) { )); break; - case 'injectJS': - + case 'injectJSFile': + console.log('Injecting JS: %s', message.file); + chrome.tabs.executeScript(null, { + file: message.file + //,runAt: 'document_end' + }); break; case 'injectCSSFile': diff --git a/chrome_point_plus/js/options.js b/chrome_point_plus/js/options.js index 429abe9..9ec456d 100644 --- a/chrome_point_plus/js/options.js +++ b/chrome_point_plus/js/options.js @@ -19,6 +19,9 @@ var ppOptions = [ 'option_images_load_booru', // Wrap WEBM videos into the