google-chrome

Android - “setToolbarColor(int)” and “setSecondaryToolbarColor(int)” is deprecated

流过昼夜 提交于 2021-02-09 10:43:45
问题 I use this code to open links with Chrome Custom Tabs. But it's showing @Deprecated for setToolbarColor() and setSecondaryToolbarColor() . I haven't found anything for replacement. Note: Android studio suggests "Use setDefaultColorSchemeParams instead." but haven't found any examples of that. Uri uri = Uri.parse(url); CustomTabsIntent.Builder intentBuilder = new CustomTabsIntent.Builder(); intentBuilder.setToolbarColor(ContextCompat.getColor(activity,R.color.background)); intentBuilder

How do I launch a frameless window from a Google Chrome extension?

喜你入骨 提交于 2021-02-09 10:31:51
问题 I'm looking to achieve something similar to Bitly's Chrome Extension. It's not exactly frameless but the style of the title bar is minimal. Also, unlike other types of windows, in Mac OS you can maximize the main browser window and spawn Bitly's window on top. Neither window.open nor chrome.windows.create offer any options to remove the frame of a launched window. And when these windows are spawned from a fullscreen browser window (maximized) they are also maximized and cannot be used on top

How do I launch a frameless window from a Google Chrome extension?

∥☆過路亽.° 提交于 2021-02-09 10:27:51
问题 I'm looking to achieve something similar to Bitly's Chrome Extension. It's not exactly frameless but the style of the title bar is minimal. Also, unlike other types of windows, in Mac OS you can maximize the main browser window and spawn Bitly's window on top. Neither window.open nor chrome.windows.create offer any options to remove the frame of a launched window. And when these windows are spawned from a fullscreen browser window (maximized) they are also maximized and cannot be used on top

Alpine Linux fonts

自作多情 提交于 2021-02-09 07:24:29
问题 How to install fonts for all languages? This is what I do, but no Japanese fonts in Chrome. From this image: https://github.com/Zenika/alpine-chrome/blob/master/Dockerfile FROM zenika/alpine-chrome USER root RUN apk add --no-cache msttcorefonts-installer fontconfig RUN update-ms-fonts # Installs latest Chromium package. RUN apk add --no-cache \ msttcorefonts-installer fontconfig \ font-noto \ font-noto-adlam \ font-noto-adlamunjoined \ font-noto-arabic \ font-noto-armenian \ font-noto-avestan

Is the file:// protocol for web browser links defunct?

强颜欢笑 提交于 2021-02-09 07:03:50
问题 Is the file protocol effectively defunct? It would be extremely useful to me if an intranet server could generate links such as <a href="file:///shared/customer_info/customer-name"> <a href="file:///shared/customer_info/customer-name/history.ods"> Since it's an internal intranet app, the server and the users' systems share access to the same filestore, so this is sensible. Unfortunately, Firefox and Chrome have disabled file:// links. The only thing I can do with them is right-click, copy

How to swap two elements inside of a 2D Array in JavaScript? (Confused about what I’m seeing from console.log in Chrome)

若如初见. 提交于 2021-02-08 20:53:20
问题 I want to swap two arrays inside a 2D array, however JS seems to be doing that before my actual swap is happening. This is for an algorithm I'm working on, providing each possible way to display a list of points. I have tried several ways of doing this, but the key problem keeps returning, and I've managed to crop it down to this peace of code: var points = [[1,2],[10,20],[100,200]]; console.log(points); var a = points[1][0]; var b = points[1][1]; points[1][0] = points[2][0]; points[1][1] =

How to swap two elements inside of a 2D Array in JavaScript? (Confused about what I’m seeing from console.log in Chrome)

拈花ヽ惹草 提交于 2021-02-08 20:51:11
问题 I want to swap two arrays inside a 2D array, however JS seems to be doing that before my actual swap is happening. This is for an algorithm I'm working on, providing each possible way to display a list of points. I have tried several ways of doing this, but the key problem keeps returning, and I've managed to crop it down to this peace of code: var points = [[1,2],[10,20],[100,200]]; console.log(points); var a = points[1][0]; var b = points[1][1]; points[1][0] = points[2][0]; points[1][1] =

FileReader onload not getting fired when selecting same file in Chrome

白昼怎懂夜的黑 提交于 2021-02-08 20:00:07
问题 FileReader onload not getting fired on second time when the same file selected with Chrome, it's getting fired all the time for FireFox. function uploadCover(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function(e) { var image = new Image(); image.src = e.target.result; image.onload = function () { // code }; }; reader.readAsDataURL(input.files[0]); } } Here I want to validate image width and height on upload. So there is two scenarios which is

Running Chrome on an AWS micro instance

こ雲淡風輕ζ 提交于 2021-02-08 15:48:10
问题 Let me start by saying my server administration experience is limited, so please forgive me if I'm making assumptions that might seem odd. I've written an extension for Google Chrome and I'd like to test its stability when left running continuously for days, but unfortunately I have no access to a pc or laptop that I can leave on 24/7. So my idea is to set up a EC2 micro instance with ubuntu, then install ubuntu-desktop and a vnc server, and finally connect via vnc to the instance, access to

Favicon not showing up in Google Chrome browser

南楼画角 提交于 2021-02-08 15:44:19
问题 For some reason my favicon is not showing up on my chrome tab. From all the articles I have read I am writing the code correctly. It does work in Firefox. I also cleared my cache and tried an incognito window and am still not seeing it. When I go to: localhost:8080/favicon.ico I do see the favicon. Here is my code within the HTML header: <link rel="shortcut icon" sizes="16x16 32x32 64x64" href="/favicon.ico" type="image/x-icon" /> <link rel="icon" href="favicon.ico" type="image/x-icon" />