google-chrome

Is there a work-around for allowing content/background scripts to execute while open in the chrome web store?

不问归期 提交于 2021-02-19 08:13:05
问题 I've been spending several long hours trying to figure out why my Chrome extension wasn't working as it should only to find that apparently the Google Chrome webstore does not allow extensions to do certain things while it's open. I've read this thread on SO, though it's 2 years old now and the solutions posted did not work for me: Chrome Extension Content Script on https://chrome.google.com/webstore/ I'm running Chrome version 41.0.2272.118 (64-bit) on OS X Yosemite. As one of the responses

PC8 / CP437 character set with filereader in Chrome

こ雲淡風輕ζ 提交于 2021-02-19 07:48:35
问题 anyone knows if it is possible to get the FileReader API in chrome to read a file with the CP437 character set? Is there a place where I can list the available encodings? Currently, my workaround is to read it with CP1251 reader.readAsText(file, 'CP1251') and manually replace special characters, which is not cool! Is there other browsers which support this character set? Or do you have any better idea at a workaround? Edit: The file is parsed only in the browser, there is no backend available

getting this net::ERR_EMPTY_RESPONSE error in browser

烈酒焚心 提交于 2021-02-19 07:36:45
问题 I used gem "paperclip" for upload images and gem "paperclip-storage-ftp" for store images on my own ftp server.I got success to upload multiple photos and it's saved in my database too without having error. but when I go to show photos page there i can see some photos proper, But some most of photos are broken, and i am getting so many error in browser console like this Failed to load resource: net::ERR_EMPTY_RESPONSE help me if you have any solution for this. Thank you. 回答1: Process Your

Chrome webRequest onCompleted: Size of the page

☆樱花仙子☆ 提交于 2021-02-19 07:31:30
问题 I am working on a Chrome Extension, and I wanted to know if there was a way to know the amount of data which has been downloaded while loading a page. For example, if the user activates the extension, and goes on Google.com, I want to show him the size of the page: google.com. Is there a way to do this? Thanks! 回答1: There are a multitude of ways you could determine the size of a page using just javascript. You could manually calculate the size of the page by counting the ammount of characters

Scanning for beacons on iOS thru' web browser

十年热恋 提交于 2021-02-19 05:57:06
问题 Is there any way to make a web page scan for beacons on iOS ? I know that no iOS web browser supports Web Bluetooth at the present. I even could not find any information about if Chrome team is planning to add support for Web Bluetooth for Chrome on iOS. Is there any other way to scan for the beacons on iOS thru' web browsers (be it Safari or Chrome) ? Thanks 回答1: Unfortunately, Google can't add Web Bluetooth to Chrome for iOS without Apple's participation , and Apple has given no indication

Chrome canary headless mode does not work on windows10

ぃ、小莉子 提交于 2021-02-19 04:16:50
问题 Google Chrome Canary does not work with headless on Windows. Chrome headless does not work on windows. The Error happens like following when I tried to execute below code. But it works on non-headless mode. I know Canary is unstable but I want to using it to learning about web advanced spec. This error caused by bug in canary? Or caused by my code? code: from selenium import webdriver from selenium.webdriver.chrome.options import Options op = Options() op.binary_location = "C:\\Users\

Chrome canary headless mode does not work on windows10

感情迁移 提交于 2021-02-19 04:14:53
问题 Google Chrome Canary does not work with headless on Windows. Chrome headless does not work on windows. The Error happens like following when I tried to execute below code. But it works on non-headless mode. I know Canary is unstable but I want to using it to learning about web advanced spec. This error caused by bug in canary? Or caused by my code? code: from selenium import webdriver from selenium.webdriver.chrome.options import Options op = Options() op.binary_location = "C:\\Users\

Safari send POST request when refresh after pushState/replaceState

别说谁变了你拦得住时间么 提交于 2021-02-19 04:08:01
问题 After post a form, I use pushState/replaceState to manipulate the history. Then when refresh, Chrome will send GET request to the new url, but Safari will send POST. Is it a BUG in Safafi? Anyone had met it before? 来源: https://stackoverflow.com/questions/46933389/safari-send-post-request-when-refresh-after-pushstate-replacestate

Safari send POST request when refresh after pushState/replaceState

旧时模样 提交于 2021-02-19 04:07:52
问题 After post a form, I use pushState/replaceState to manipulate the history. Then when refresh, Chrome will send GET request to the new url, but Safari will send POST. Is it a BUG in Safafi? Anyone had met it before? 来源: https://stackoverflow.com/questions/46933389/safari-send-post-request-when-refresh-after-pushstate-replacestate

Is Chrome's JavaScript console lazy about evaluating arrays?

强颜欢笑 提交于 2021-02-19 03:21:12
问题 I'll start with the code: var s = ["hi"]; console.log(s); s[0] = "bye"; console.log(s); Simple, right? In response to this, Firebug says: ["hi"] ["bye"] Wonderful, but Chrome's JavaScript console (7.0.517.41 beta) says: ["bye"] ["bye"] Have I done something wrong, or is Chrome's JavaScript console being exceptionally lazy about evaluating my array? 回答1: Thanks for the comment, tec. I was able to find an existing unconfirmed Webkit bug that explains this issue: https://bugs.webkit.org/show_bug