google-chrome

How to import ES6 modules in content script for Chrome Extension

做~自己de王妃 提交于 2021-02-20 10:01:25
问题 In Chrome 61 , support for modules in JavaScript was added. Right now I am running Chrome 63. I am trying to use import / export syntax in Chrome extension content script to use modules. In manifest.json : "content_scripts": [ { "js": [ "content.js" ], } ] In my-script.js (same directory as content.js ): 'use strict'; const injectFunction = () => window.alert('hello world'); export default injectFunction; In content.js : 'use strict'; import injectFunction from './my-script.js';

How to import ES6 modules in content script for Chrome Extension

≯℡__Kan透↙ 提交于 2021-02-20 10:01:02
问题 In Chrome 61 , support for modules in JavaScript was added. Right now I am running Chrome 63. I am trying to use import / export syntax in Chrome extension content script to use modules. In manifest.json : "content_scripts": [ { "js": [ "content.js" ], } ] In my-script.js (same directory as content.js ): 'use strict'; const injectFunction = () => window.alert('hello world'); export default injectFunction; In content.js : 'use strict'; import injectFunction from './my-script.js';

ADB2C refresh token challenge not working on Chrome Android

混江龙づ霸主 提交于 2021-02-20 04:53:32
问题 I am using the standard OIDC .NET library to make a challenge request to ADB2C. From my understanding, this automagically attempts the sign in with the refresh token in cache and gains an authorization without re-asking for credentials. This seems to work absolutely fine, except on 1 browser - Chrome on Android. No matter what I try, this browser seems to to lose the refresh token, so after around 1 hr, it starts asking for credentials again. I have cross checked this on Chrome web/mac, edge,

ADB2C refresh token challenge not working on Chrome Android

本秂侑毒 提交于 2021-02-20 04:52:44
问题 I am using the standard OIDC .NET library to make a challenge request to ADB2C. From my understanding, this automagically attempts the sign in with the refresh token in cache and gains an authorization without re-asking for credentials. This seems to work absolutely fine, except on 1 browser - Chrome on Android. No matter what I try, this browser seems to to lose the refresh token, so after around 1 hr, it starts asking for credentials again. I have cross checked this on Chrome web/mac, edge,

What is the difference between , and + in the console.log?

拟墨画扇 提交于 2021-02-20 04:32:55
问题 pt=new Date(2019,11,12,8,2,3) console.log(pt.getFullYear()," ",pt.getMonth()); gives result 2019 " " 11 console.log(pt.getFullYear()+" "+pt.getMonth()); gives the result as 2019 11 What is the difference between using, and + in this example? 回答1: console.log(pt.getFullYear()," ",pt.getMonth()); The above example passes three separate arguments to console.log. What it outputs depends on how console.log is implemented. It has changed over time and is little bit different between browsers. When

How to Use JSONView in Chrome

廉价感情. 提交于 2021-02-20 04:09:11
问题 I have the JSONView extension installed on Chrome, how do I actually use it to view the JSON tree for a particular website? The only options I see are "copy path" and "copy value." 回答1: I don't get your question, the JSON tree for a particular website ? What de you mean by that ? :) I have this great extension too, and when I access for exemple a json data on the web JSONView proceed to parse it for me and give a good looking in order to simplify the reading for me, and it does this

How to Use JSONView in Chrome

ぐ巨炮叔叔 提交于 2021-02-20 04:08:02
问题 I have the JSONView extension installed on Chrome, how do I actually use it to view the JSON tree for a particular website? The only options I see are "copy path" and "copy value." 回答1: I don't get your question, the JSON tree for a particular website ? What de you mean by that ? :) I have this great extension too, and when I access for exemple a json data on the web JSONView proceed to parse it for me and give a good looking in order to simplify the reading for me, and it does this

How to Use JSONView in Chrome

五迷三道 提交于 2021-02-20 04:07:08
问题 I have the JSONView extension installed on Chrome, how do I actually use it to view the JSON tree for a particular website? The only options I see are "copy path" and "copy value." 回答1: I don't get your question, the JSON tree for a particular website ? What de you mean by that ? :) I have this great extension too, and when I access for exemple a json data on the web JSONView proceed to parse it for me and give a good looking in order to simplify the reading for me, and it does this

Why is my css grid not working in Chrome (works in all other browsers)

可紊 提交于 2021-02-19 09:00:40
问题 I've setup a css grid with 3 columns to display our portfolio. I found a working code for Firefox and Internet Explorer and Safari. However on Chrome it doesn't show my grid at all, all the pictures are below each other. See the website: http://www.ddw-sanitair.be Additionally it does not accept the 'display: none' class on some of the pictures, hence the double/triple images ... Any suggestions? I tried to add grid-auto-rows: 270px; as suggested in another thread. I tried adding grid

Why does google-chrome-devtools identifies less number of elements through XPath then number of elements identified through CssSelector

◇◆丶佛笑我妖孽 提交于 2021-02-19 08:27:37
问题 I am trying to identify the elements containing the reviews on this webpage using google-chrome-devtools. Using the following xpath: //div[@class='text show-more__control'] The number of elements identified are: 15 Snapshot: Using the following css-selectors: div.text.show-more__control The number of elements identified are: 25 Snapshot: So, why does google-chrome-devtools identifies less number of elements through XPath then number of elements identified through CssSelector 回答1: The XPath is