Apps, Extensions and scripts cannot be added from this website

Instead of opening the file, you have to: extract it (crx are zip files), then visit chrome://extensions, enable developer mode, and load unpacked extension. The reason for this is: lots of people try to abuse chrome apps/extensions to install nasty applications to your browser. So Chrome tries to make it impossible to automatically side-load these … Read more

Unchecked runtime.lastError while running storage.set: QUOTA_BYTES_PER_ITEM quota exceeded

This error comes when you use chrome.storage.sync.set…to set the data greater than 8,192 bytes for a single item as chrome.storage.sync.set allows 8,192 QUOTA_BYTES_PER_ITEM. Use chrome.storage.local.set, to save the large data…instead of chrome.storage.sync.set. As chrome.storage.local.set can contains 5242880 :QUOTA_BYTES. See https://developer.chrome.com/extensions/storage Also, you can get the alert if still want to use chrome.storage.sync.set using below code: … Read more

Run chrome in fullscreen mode on Windows

Update 03-Oct-19 new script that displays 10second countdown then launches chrome/chromiumn in fullscreen kiosk mode. more updates to chrome required script update to allow autoplaying video with audio. Note –overscroll-history-navigation=0 isn’t working currently will need to disable this flag by going to chrome://flags/#overscroll-history-navigation in your browser and setting to disabled. @echo off echo Countdown to … Read more

Refused to execute inline script because it violates the following Content Security Policy directive: “script-src ‘self'”

I also faced such type of problem when working with LinkedIn oAuth API. I was using linkedIn API with following settings for cordova config.xml <access origin=”https://stackoverflow.com/questions/17653384/*” launch-external=”yes”/> <allow-navigation href=”https://stackoverflow.com/questions/17653384/*” /> Meta Tag was <meta http-equiv=”Content-Security-Policy” content=”default-src *; style-src ‘self’ ‘unsafe-inline’; script-src ‘self’ ‘unsafe-inline’ ‘unsafe-eval'”> Script <script type=”text/javascript” src=”http://platform.linkedin.com/in.js”></script> When i run the application on emulator … Read more

Unchecked runtime.lastError when using Chrome API

This error is not important in this case, but I’ll explain it and how to get rid of it. What is this error? Chrome APIs are mostly asynchronous: you have a callback that is called when the operation completes. In case of chrome.fileSystem.chooseEntry, the chosen entry (or entries) will be passed to a callback: chrome.fileSystem.chooseEntry( … Read more

Is it possible to remove “Inspect Element”?

I have one requirement for one page. On that page, I want to block the user from performing the below actions, Right Click F12 Ctrl + Shift + I Ctrl + Shift + J Ctrl + Shift + C Ctrl + U For this, I googled and finally got the below link, http://andrewstutorials.blogspot.in/2014/03/disable-ways-to-open-inspect-element-in.html I tested … Read more

Chrome App webview and touch scroll propagation

I’m going to assume a couple things here: Styling a Chrome app is similar to styling a webpage. Your current scrolling solution relies on using overflow:hidden and using JavaScript only to scroll. I fixed something similar once for a page. Its strange but I learned that for touch devices, a scrollbar is invisible unless the … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)