google-chrome

CSS Filter not working on body in Chrome & Firefox

坚强是说给别人听的谎言 提交于 2021-01-29 04:50:53
问题 I want to create a chrome extension that does some filtering for color blindness testing and wanted to use css/svg filters but have a problem with filters not affecting body background. Any suggestions? Link to codepen (test in Chrome) or see screenshots below: http://codepen.io/larsenwork/pen/oZvdzX/?editors=1100 html { filter: grayscale(100%); } body, div { background-color: cyan; } /* Codepen style (ignore) */ * { margin: 0; padding: 0; box-sizing: border-box; } body { min-height: 100vh;

Progressive Web App (PWA) redirect page into standalone mode

北战南征 提交于 2021-01-29 03:20:10
问题 I have PWA and I can run it as standalone (if user clicks icon on a device) or I can run as normal website (if user enter URL directly into web browser). Is it possible to redirect page (open as standalone) if user open it as non standalone? My manifest file already contain standalone parameter: "display": "standalone" I need something to start with. 回答1: As far as I know you need to "install" the pwa on the user device first. By clicking the icon on the device (meaning you already installed

Not allowed to load local resource trying opening googlechrome://navigate?url=xxxx.com URI schema on Android with Javascript

独自空忆成欢 提交于 2021-01-29 03:15:28
问题 On Android devices I need to open a URL using google chrome regardless the browser where the url is clicked (in my case facebook in-app browser). To do so I created small proxy with a Javascript redirect using the chrome URI schema: window.location = "googlechrome://navigate?url=google.com"; I am testing this on two different devices, on the first one (ASUS X018D - Android 8.1) it works perfectly. On the second one (Samsung Galaxy S9 plus - Android 9) I get the error Not allowed to load local

HTML5 audio tag - Handling of m3u8 in chrome/firefox

橙三吉。 提交于 2021-01-29 01:41:55
问题 I'm facing issues with m3u8 playlists on chrome and firefox (edge works like a charm) I'm trying to send data converted with ffmpeg the line I use for conversion is the following making the m3u8 file at same time: ffmpeg -i .\european-anthem-2012.mp3 -c:a aac -b:a 64k -f segment -segment_time 15 -segment_time_delta 3 -segment_list_type m3u8 -segment_list playlist_aac.m3u8 outfile_aac-%03d.aac As destination formats I've tried also mp3: -c:a mp3 -b:a 64k and vorbis: -c:a libvorbis -b:a 64k the

Chrome Extension: Edit the current url on click and then redirect to the edited one

走远了吗. 提交于 2021-01-28 22:22:26
问题 I am a psychology student and I read papers very often. The university libraries provide the access to the databases but I need to use library search engine and log in every time. Quite annoying. I found a way to avoid jumping around the pages. Here is the method: I add "ezp.lib.unimelb.edu.au" to the end of the target database address after I found a paper in Google Scholar, then it will redirect to the library login page. For example, the paper's address is: http://www.sciencedirect.com

Chrome Extension: How do I get a web page to access functions defined by my content script?

南笙酒味 提交于 2021-01-28 21:58:04
问题 I'm programming a Chrome Extension, and I'm having it inject a content script which iterates through a few elements and attaches an onclick property to them which sends a message to my background script to execute a custom function on the DOM (the function defined in content scripts). To send a message from the web page to the extension, I must specify the extension ID which, as of now, I was manually getting from the extensions menu. Could I manage to query something for the extension's own

Chrome Extension: How do I get a web page to access functions defined by my content script?

夙愿已清 提交于 2021-01-28 21:39:00
问题 I'm programming a Chrome Extension, and I'm having it inject a content script which iterates through a few elements and attaches an onclick property to them which sends a message to my background script to execute a custom function on the DOM (the function defined in content scripts). To send a message from the web page to the extension, I must specify the extension ID which, as of now, I was manually getting from the extensions menu. Could I manage to query something for the extension's own

What kind of dialog box is this? How can I interact with it using Puppeteer?

匆匆过客 提交于 2021-01-28 21:22:38
问题 I'm using puppeteer to run a Google Chrome browser(I've tried with Chromium as well), to generate a PDF and then I'm using the URL to send the PDF to some other software. I'm getting stuck at this dialog box of sorts. I assumed it was a normal dialog box and have tried the usual method of hitting the "confirm" button. I can't seem to get it to work. I'm unable to show you the URL I am using the get this to show up, as it is sensitive. As I mentioned, page.on() doesn't seem to catch the box.

Session/Cookies are resetting to blank in Asp.Net MVC application in an iframe

放肆的年华 提交于 2021-01-28 19:23:46
问题 After updating the chrome to 80 (Version 80.0.3987.149 (64-bit)) recently and clearing cookies of the browser we are seeing below issue in our ASP.Net MVC application. Session/Cookies are resetting to blank when redirecting to other page. Application is embedded in a iFrame. I have tried setting Same site to "None" in web.config in below ways but none of them worked - <sessionState cookieSameSite="None" timeout="60" /> <httpCookies sameSite="None" /> Also installed URL rewrite to override set

ChromeDriver is assuming that Chrome has crashed when passing profile arguments [duplicate]

别来无恙 提交于 2021-01-28 18:51:17
问题 This question already has answers here : How to open a Chrome Profile through Python (2 answers) selenium.common.exceptions.WebDriverException: Message: unknown error: Chrome failed to start: crashed with ChromeDriver and Selenium in Python (1 answer) Closed 2 years ago . If any Chrome processes are running and the following code is run, Stack Overflow will NEVER load: options = webdriver.ChromeOptions() options.add_argument("user-data-dir=C:\\Users\\RvBVakama\\AppData\\Local\\Google\\Chrome\