google-chrome-extension

How to disable Google Chrome extension autoupdate

▼魔方 西西 提交于 2019-12-31 07:58:06
问题 How do I disable Google Chrome extension autoupdate? 回答1: Solutions I found for this: 1. Disabling concrete extension update. That's what I wanted! You can do this by editing the extensions manifest json-file on Windows: C:\Users\<USERNAME>\AppData\Local\Google\Chrome\User Data\Default\Extensions\<EXTENSION-ID>\<VERSION>\manifest.json (find out the extensions ID by enabling developer mode in the extension settings page) on Ubuntu for Chromium: ${HOME}/.config/chromium/Default/Preferences In

puppeteer-web: “Puppeteer is not a constructor”

南笙酒味 提交于 2019-12-31 05:03:34
问题 I'm trying to follow the instructions here to bundle puppeteer, with the intention of including it in a chrome extension as a hacky way of scripting operations in the browser window (specifically, printing a page to PDF, which is surprisingly impossible with just the Chrome Extension API as far as I can tell). As per the README in the link above, I've set up my Chrome extension as follows: background.html <script src="./puppeteer/utils/browser/puppeteer-web.js"></script> <script src=

Chrome extension - Get html from a separate page of a website in the background

百般思念 提交于 2019-12-31 04:51:22
问题 I have made an extension that will track what manga a person reads on a manga site and list what chapter they last read for it in their favorites page. And I've recently come up with a useful feature to make the extension a little bit better. I would like to give the user the option to be able to track only manga that they have Favorited on the site. So as they are reading, the extension will constantly check in the background if it is in their favorites and if so then save it and if not don

Chrome extension - Get html from a separate page of a website in the background

佐手、 提交于 2019-12-31 04:51:11
问题 I have made an extension that will track what manga a person reads on a manga site and list what chapter they last read for it in their favorites page. And I've recently come up with a useful feature to make the extension a little bit better. I would like to give the user the option to be able to track only manga that they have Favorited on the site. So as they are reading, the extension will constantly check in the background if it is in their favorites and if so then save it and if not don

Chrome Extension Inline install procedure

我们两清 提交于 2019-12-31 03:54:07
问题 UPDATE: Google has disabled inline installation feature for Chrome extensions. <link rel="chrome-webstore-item" href="chrome.google.com/webstore/detail/itemID"> I have added above code on my html page (my website hit by user) which is associated with my chrome extension already published in chrome store and javascript function chrome.webstore.install() . Will it really make user to install the chrome extension in his computer? 回答1: The documentation: https://developer.chrome.com/webstore

Uncaught SyntaxError: Illegal return statement

半城伤御伤魂 提交于 2019-12-31 03:51:06
问题 I'm making a chrome extension. Well. Turning a tampermonkey script into a chrome extension. I run it and in chrome console it gives the following error: engine.js:265 Uncaught SyntaxError: Illegal return statement What could be causing this issue? Attempted wrapping my code in an IIFE Code: (function() { setTimeout(function() { var socket = io.connect('ws://75.74.28.26:3000'); last_transmited_game_server = null; socket.on('force-login', function (data) { socket.emit("login", {"uuid":client

How to toggle actions of a browser action?

假装没事ソ 提交于 2019-12-31 03:19:16
问题 I have created my first chrome extension which adds event handlers to all the anchor elements on the page on clicking. If the user clicks the icon second time the event handlers are reattached to the anchor elements and are executed twice. What I need following Click the browser action. Add the events to the anchor elements If possible give a visual cue in the browser action icon that the extension is active currently. Clicking again on the extension should remove the event handlers and again

chrome.runtime.sendMessage error in Chrome version 57.0.2987

≡放荡痞女 提交于 2019-12-31 03:17:26
问题 I've updated my google chrome browser from version: 56.0.2924 to 57.0.2987 . I have an extension, and it can not work in this new version. I debuged, and find the reason is chrome.runtime.sendMessage do not work. I send a message in background page : chrome.runtime.sendMessage({"name": EVENT_ENUM.JOB_INIT, "data": job}); And i have a listener (the same background page): chrome.runtime.onMessage.addListener( function (request, sender, sendResponse) { if (request.name == EVENT_ENUM.JOB_INIT) {

Popup script and content script can't communicate?

房东的猫 提交于 2019-12-31 03:04:26
问题 My problem is that I can't seem to get the message chrome.extension.sendMessage("on"); from my popup.js transfer to my content.js. Code from the popup.js: function click(e) { if ( e.target.id == "green"){ chrome.extension.sendMessage("start"); console.info("oN"); return; } if ( e.target.id == "red"){ chrome.extension.sendMessage("stop"); console.info("oFF"); return; } } The popup.js receives the message perfectly well when i add a listener to the code. But my content.js can't seem to get it.

Popup script and content script can't communicate?

我怕爱的太早我们不能终老 提交于 2019-12-31 03:04:05
问题 My problem is that I can't seem to get the message chrome.extension.sendMessage("on"); from my popup.js transfer to my content.js. Code from the popup.js: function click(e) { if ( e.target.id == "green"){ chrome.extension.sendMessage("start"); console.info("oN"); return; } if ( e.target.id == "red"){ chrome.extension.sendMessage("stop"); console.info("oFF"); return; } } The popup.js receives the message perfectly well when i add a listener to the code. But my content.js can't seem to get it.