Often, if I’m using webpack to compile/transpile code from ES2015 syntax to something my web browser can read (in a single bundle.js file) I’ll end up with an error like this The specific error here isn’t important — what’s important is that Chrome points me towards line 99 of bundle.js, that looks like this (with surrounding lines for context) Is
Tag: google-chrome
Open blob objectURL in Chrome
I want to open a PDF in a new tab in chrome browser (Chrome 56.0.2924.87, Ubuntu 14.04) using window.open(fileObjectURL) in javascript. I am creating the blob from base64 encoded data and do create an objectURL like this: It works fine in latest Firefox browser. But in Chrome I can see that the new tab gets opened but then closed immediately.
javascript set cookie doesn’t work on chrome android
i have a problem to set a cookie on chrome on my android phone. The source code is upload on an online server. here my javascript code : function updateCookie( value ) { document.cookie = ‘l=’+value+’; expires=Thu, 2 Aug 240 20:47:11 UTC; path=/’; location.reload(); } it work on chrome/mozilla on my computer it work on mozilla on my android phone
Getting Error “Form submission canceled because the form is not connected”
I have an old website with JQuery 1.7 which works correctly till two days ago. Suddenly some of my buttons do not work anymore and, after clicking on them, I get this warning in the console: Form submission canceled because the form is not connected The code behind the click is something like this: It seems that Chrome 56 doesn’t
Content Security Policy not allowing form submission
Please I need assistance here. I have a form to submit to another url but when I try to submit it, it refuses to submit and I was checking my console. On Chrome, I see the following errors resources2.aspx?HCCID=75694719&culture=en-US&mlcv=3006&template=5:7 Refused to load the image ‘https://s4.mylivechat.com/livechat2/images/sprite.png’ because it violates the following Content Security Policy directive: “img-src ‘self’ data:”. Refused to send
Develop Tampermonkey scripts in a real IDE with automatic deployment to OpenUserJs repo
I recently started development on a Tampermonkey script, which is hosted on OpenUserJs. It seems that I’m going to invest a bit more time in the future on this script by keep it up to date and extend his features when time is there. The first lines I wrote on the Tampermonkey editor which is integrated in chrome (edit button
Chrome Extension – show dynamic text on mouse hover over extension icon
I’ve recently built a popup chrome extension(Popup Notes) It basically takes notes of whatever you type in popup. Now I want to show saved notes whenever I hover my mouse over the extension icon. Right now it shows the static default title on mouse hover. I know it’s possible because this extension Checker Plus for Gmail shows the unread emails
Chrome Extension: detecting keypresses in Google Docs
Hey my friends and I new to javascript and are encountering problems with some code. Currently we’re trying to make a chrome extension that detects when and how much a user works on a particular google document, by detecting keystrokes. Our current method involves creating a ‘keypress’ event listener. We put it into a content.js file that runs on any
Javascript count function calls in Chrome profiler
Is it possible to get information from Chrome profile (Developer Tools) how many times functions are called? I found how to do it in code: and some really old (year 2011 and around) topics and feature request like this one. But no new information if it is possible to record count for every function calls. Sometimes you figure it out
How to make side panel in chrome extension?
I have been learning to create a chrome extension. I have tried hello world example and it was working fine. Now I have been trying to add custom code and make some changes in the hello world code according to my requirements. What I am trying to create is when the user clicks on the icon in the address bar,