google-chrome-extension

Google Extension and PHP

好久不见. 提交于 2020-01-07 02:04:25
问题 Is it possible to include a PHP file inside a Google Extension? If so, how do I do it? Here's my manifest: { "name": "My very first extension", "version": "0.1", "description": "My first extension", "content_scripts": [ { "matches": ["http://jquery.com/*"], "js": ["jquery.js", "content.js"] } ], "browser_action": { "default_icon": "logo.png", "popup" : "index.html" }, "permissions": [ "http://api.flickr.com/" ] } So I have jQuery included and it seems to be working, so in my index.html I have

Google Extension and PHP

旧巷老猫 提交于 2020-01-07 02:03:08
问题 Is it possible to include a PHP file inside a Google Extension? If so, how do I do it? Here's my manifest: { "name": "My very first extension", "version": "0.1", "description": "My first extension", "content_scripts": [ { "matches": ["http://jquery.com/*"], "js": ["jquery.js", "content.js"] } ], "browser_action": { "default_icon": "logo.png", "popup" : "index.html" }, "permissions": [ "http://api.flickr.com/" ] } So I have jQuery included and it seems to be working, so in my index.html I have

integrating single and long-lived messaging [duplicate]

有些话、适合烂在心里 提交于 2020-01-06 19:57:37
问题 This question already has answers here : Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference (6 answers) Chrome Cookie API isn't letting me use returned values (1 answer) Closed 4 years ago . I need to have two type communications, single messaging for retrieving initial information and long-lived messaging. Both messaging communicate with an external web page as follow. The returned response in the web page always is undefined!!! Where is the

integrating single and long-lived messaging [duplicate]

馋奶兔 提交于 2020-01-06 19:56:36
问题 This question already has answers here : Why is my variable unaltered after I modify it inside of a function? - Asynchronous code reference (6 answers) Chrome Cookie API isn't letting me use returned values (1 answer) Closed 4 years ago . I need to have two type communications, single messaging for retrieving initial information and long-lived messaging. Both messaging communicate with an external web page as follow. The returned response in the web page always is undefined!!! Where is the

Can I transfer users from one Chrome web store hosted extension to another?

女生的网名这么多〃 提交于 2020-01-06 19:44:13
问题 I have 2 almost identical extensions hosted on the Chrome web store. I want to merge these extensions, Or in other words transfer users from one extension to the other. Can I do that and how? 回答1: You cant. What you can do is take the one with the least users and make it show a message offering the users to install the other one. 来源: https://stackoverflow.com/questions/20949601/can-i-transfer-users-from-one-chrome-web-store-hosted-extension-to-another

Chrome Extension - Having settings saved throughout the site and through refreshing the page

一笑奈何 提交于 2020-01-06 16:54:03
问题 I am here asking how is it possible for my chrome extension to be able to "survive" throughout the user refreshing the page and changing page after selecting a feature. For an example let's use a rather generic background color changing setting which changes the background color of a desired site. Once ticking the enable box and having the background changed to the option selected, it does not stay persistent after changing page or refreshing. I am here asking if someone could possibly help

Chrome Extension - Having settings saved throughout the site and through refreshing the page

风流意气都作罢 提交于 2020-01-06 16:53:10
问题 I am here asking how is it possible for my chrome extension to be able to "survive" throughout the user refreshing the page and changing page after selecting a feature. For an example let's use a rather generic background color changing setting which changes the background color of a desired site. Once ticking the enable box and having the background changed to the option selected, it does not stay persistent after changing page or refreshing. I am here asking if someone could possibly help

Accessing/writing to Chrome app localStorage

时光总嘲笑我的痴心妄想 提交于 2020-01-06 16:02:19
问题 I'm writing a packaged app for Chrome. Is there an advantage to using the background page - instead of the app's main HTML page - to read/write the localStorage values? Currently users seem to be losing data in ways I cannot duplicate. Right now the app reads and writes localStorage in the main HTML page's JavaScript. Would changing the app to use the background page's JavaScript fix this? 回答1: LocalStorage is limited to 5 megabytes, regardless of set permissions. When users checks the

Accessing/writing to Chrome app localStorage

梦想的初衷 提交于 2020-01-06 16:01:10
问题 I'm writing a packaged app for Chrome. Is there an advantage to using the background page - instead of the app's main HTML page - to read/write the localStorage values? Currently users seem to be losing data in ways I cannot duplicate. Right now the app reads and writes localStorage in the main HTML page's JavaScript. Would changing the app to use the background page's JavaScript fix this? 回答1: LocalStorage is limited to 5 megabytes, regardless of set permissions. When users checks the

Chrome Extension breaks web pages, making them seemingly load forever?

谁说我不能喝 提交于 2020-01-06 15:57:06
问题 I am using a chrome extension to inject code into web pages to change parts of the text if they match a certain string. It replaces the text correctly, but seems to hold the web page in an endless state of loading, and messes up certain elements on sites like Facebook. var actualCode = '(' + function() { document.body.innerHTML = document.body.innerHTML.replace(/10:00/g, "11:00 AM"); } + ')();'; var script = document.createElement('script'); script.textContent = actualCode; (document.head|