javascript Programming Glossary: chrome.extension.geturl
Open a new Google Chrome tab and get the source http://stackoverflow.com/questions/10161044/open-a-new-google-chrome-tab-and-get-the-source open a new tab ok this is simple chrome.tabs.create 'url' chrome.extension.getURL mypage function tab ... and retrieve the source code of that.. from extension ' html_string chrome.tabs.create 'url' chrome.extension.getURL mypage function tab rememberTabs tab.id callback Capture the.. 'complete' chrome.tabs.executeScript tabId file chrome.extension.getURL 'get_source.js' Clean up chrome.tabs.onRemoved.addListener..
Chrome extension adding external javascript to current page's html http://stackoverflow.com/questions/10285886/chrome-extension-adding-external-javascript-to-current-pages-html else No cached version yet. Load from extension get chrome.extension.getURL 'ga.js' execute Typically run within a few milliseconds function..
popup window in Chrome extension http://stackoverflow.com/questions/10340481/popup-window-in-chrome-extension if request.type 'request_password' chrome.tabs.create url chrome.extension.getURL 'dialog.html' active false function tab After the tab has been.. chrome.runtime.onMessage .addListener function listener chrome.extension.getURL String path chrome.runtime.getBackgroundPage function callback..
Can a site invoke a browser extension? http://stackoverflow.com/questions/10526995/can-a-site-invoke-a-browser-extension the main page var s document.createElement 'script' s.src chrome.extension.getURL myapi.js document.documentElement.appendChild s Any functions..
Google Chrome Extension - Script Injections http://stackoverflow.com/questions/10527625/google-chrome-extension-script-injections var s document.createElement 'script' s.src chrome.extension.getURL script.js document.head document.documentElement .appendChild.. no success. var s document.createElement 'script' s.src chrome.extension.getURL script.js s.onload function this.parentNode.removeChild this..
How to inject CSS using content script file in Chrome extension? http://stackoverflow.com/questions/11553600/how-to-inject-css-using-content-script-file-in-chrome-extension contents var link document.createElement link link.href chrome.extension.getURL style.css link.type text css link.rel stylesheet document.getElementsByTagName..
Chrome extension regarding injected script + localstorage http://stackoverflow.com/questions/15869183/chrome-extension-regarding-injected-script-localstorage page's html var s document.createElement 'script' s.src chrome.extension.getURL myscript.js console.log s.src document.head document.documentElement..
DOM Exception 12 for window.postMessage http://stackoverflow.com/questions/16072902/dom-exception-12-for-window-postmessage s.src url if cb s.onload cb h.appendChild s injectJS chrome.extension.getURL 'script do_something.js' Now I want the injected script to be..
How to reference the version information in a Google Chrome extension? http://stackoverflow.com/questions/6436039/how-to-reference-the-version-information-in-a-google-chrome-extension manifest and the version by using the following var url chrome.extension.getURL manifest.json var xhr new XMLHttpRequest xhr.onreadystatechange..
Chrome Extension: IFrame and listening to clicks within it http://stackoverflow.com/questions/8511752/chrome-extension-iframe-and-listening-to-clicks-within-it var iframe document.createElement iframe iframe.src chrome.extension.getURL iframe.html document.body.appendChild iframe addEventListener.. addEventListener message function event if event.origin chrome.extension.getURL alert event.data false iframe.html DOCTYPE html html head title..
How to disable facebook hotkeys with Chrome extension? http://stackoverflow.com/questions/8982312/how-to-disable-facebook-hotkeys-with-chrome-extension script.setAttribute async true script.setAttribute src chrome.extension.getURL override fb hotkeys.js Assuming your host supports both http..
Options-enabled content-script Chrome extension without background page? http://stackoverflow.com/questions/9033873/options-enabled-content-script-chrome-extension-without-background-page var el document.createElement iframe el.setAttribute 'src' chrome.extension.getURL gimmeSettings.html el.style.visibility hidden document.body.appendChild..
Google Chome “Application Shortcut”: How to auto-load JavaScript? http://stackoverflow.com/questions/9263671/google-chome-application-shortcut-how-to-auto-load-javascript var s document.createElement 'script' s.src chrome.extension.getURL 'script.js' document.head document.documentElement .appendChild..
Building a Chrome Extension - Inject code in a page using a Content script http://stackoverflow.com/questions/9515704/building-a-chrome-extension-inject-code-in-a-page-using-a-content-script Javascript var s document.createElement 'script' s.src chrome.extension.getURL script.js s.onload function this.parentNode.removeChild this..
Chrome extension - retrieving Gmail's original message http://stackoverflow.com/questions/9602022/chrome-extension-retrieving-gmails-original-message in manifest var s document.createElement 'script' s.src chrome.extension.getURL 'script.js' document.head document.documentElement .appendChild..
|