Can we hide “Save As PDF” option from the print preview screen of browser using extension?

I’m getting the onprintbefore and onprintafter events.
Can refer the image to get the idea about the problem.

onclick+ settimeout event is not working in Chromebase system for chrome extension app

I have created the chrome apps. My code is working fine in Windows/Mac/Chromebook(V8) but it is not working in Chromebase while user in trying to tap/trap the logo after that 3 minutes,it is not redirecting on the home page. I have setup the timeout for 3 minutes and its working on all system instead of Chrombase touch event.

My code is the below from reset timeout and DOM element:

    var t;  
    onload = function() {
      var webview = document.querySelector('webview');
      window.onload = resetTimer;
      // DOM Events
      document.onclick = resetTimer;
      document.onmousemove = resetTimer;
      document.onkeypress = resetTimer;

    function resetTimer() {
    t = setTimeout(goHome, 180000);
    // 1000 milisec = 1 sec

    function goHome() {

  function navigateTo(url) {
    document.querySelector('webview').src = url;

Also, I have also search over google for the touch event like touchstart,touchmove but it seems that it is also not working..

what can be issue? please help

Cannot catch `file:///` webRequest in chrome extension on Chromebook

Below is a simple extension that works fine on a normal version of chrome. The onHeadersReceived, and onBeforeSendHeaders catch all requests. However, on a chromebook, it doesn’t catch file:/// requests. Could this have to do with extra security measures on Chromebooks, or something like that? Local html files load fine via the SD card on the chromebook, but the request aren’t caught (both the initial html file request, and any local resources like images that are subsequently loaded by that html page).


chrome.webRequest.onHeadersReceived.addListener(function(details) {
}, {urls: ["", "file://*/*"]}, ["blocking", "responseHeaders"]);

chrome.webRequest.onBeforeSendHeaders.addListener(function(details) {
}, {urls: ["", "file://*/*"]}, ["blocking", "requestHeaders"]);


    "name": "test",
    "version": "0.0.1",
    "manifest_version": 2,
    "description": "test.",
    "background": {
        "scripts": ["background.js"]
    "permissions": [

How do I run Jest on Chrome OS?

I just got a new pixel book, and I only know the bear basics of coding and javascript. Could someone please tell me the most expedient way to run this and possibly other good development tools on my Pixelbook.

How to shutdown or log off a user from a chromebook using Javascript APIs in a chrome extension

I’m making a chrome extension that handles logging off and shutting the chromebook down. I looked on for a way to be able to restart the chromebook, but I didn’t find anything.

Right now, this only has to work on Chrome OS.

Chrome extension Notifications display extension’s ID, not the extension’s name

I am developing a Chrome extension which is to be deployed on Chromebooks.

I use new Notification() to display notifications. It works OK on my Windows and Mac development machines: it displays the notification, with title, message and the Chrome extension’s full name.

But on a Chromebook I’m testing on, it displays the Chrome extensions ID (long string of alphanumeric characters) instead of the extensions full name. The title and message display properly though.

I have another Chromebook where this does not occur.

Any ideas on what’s causing this?

Could I use Chromebook as IDE using Chrome DevTools Workspaces 2.0?

Could I use Chromebook as IDE using Chrome DevTools Workspaces 2.0?

How to make a script to move the mouse on a Chromebook?

Is it possible to make a chrome extension/app that automatically moves the mouse to the center of the screen on a Chromebook? If so how?
I’m having a problem with chrome remote desktop with the mouse not returning to the center of the screen so I’m trying to write the script that does that on a Chromebook.