google-chrome-extension

webRequest API: How to get the requestId of a new request?

狂风中的少年 提交于 2020-01-05 08:48:51
问题 The chrome.webRequest API has the concept of a request ID (source: Chrome webRequest documention): Request IDs Each request is identified by a request ID. This ID is unique within a browser session and the context of an extension. It remains constant during the the life cycle of a request and can be used to match events for the same request. Note that several HTTP requests are mapped to one web request in case of HTTP redirection or HTTP authentication. You can use it to correlate the

chrome extension authentication identity api

不打扰是莪最后的温柔 提交于 2020-01-05 08:42:35
问题 Hi i am developing a chrome extension and i need to authenticate user based on Google Plus account. I have implemented with Oauth 2.0 . But there is some issue when i execute chrome.identity.getAuthToken({ 'interactive': true } There is no popup window appears for authentication and i checked chrome://identity-internals/ . Token Status Not Found for my extension. I have followed all the steps for Chrome identity api and User authentication process The Application id of my extension is same as

pageAction doesn't show in a browser popup window

这一生的挚爱 提交于 2020-01-05 08:41:42
问题 I'm not talking about the pageACtion's popup.html, but a browser window of type "popup". I have an extension that shows a pageAction on a certain url (as usual). But the pageAction's button doesn't show if the url is in a popup window. Couldn't find anything about it in chrome extension's documentation. Is it so, doesn't work in a popup typed window, or is it happening to me, because I'm using Ubuntu 13, for example? 回答1: Thanks to @apsillers contribute, I conclude Chrome's popup window

Installing Chrome Extension via ExtensionInstallForcelist without Chrome Web Store

為{幸葍}努か 提交于 2020-01-05 08:23:50
问题 I try to auto-install a chrome extension on a WIN10 device that have no connection to the internet and thus can not access the Chrome Web Store. So uploading the extension to the CWS is no option. The extension exists as a crx file on a server in a network and on the device. On Chrome Versions 59 and lower I could install the extension via settings in the registry. When Chrome was started, the user was ask if he wants to install the extension. For this I used the registry key

Chrome Extension stats for more than 3 months

こ雲淡風輕ζ 提交于 2020-01-05 08:16:11
问题 On the chrome web store developer dashboard, there is a stats option that allows you to see graphs for impressions, total users, and uninstallations. The problem is that these graphs only go back 3 months, I would like graphs that go back longer. I am wondering if there is a website that can show me longer graphs or stats. 来源: https://stackoverflow.com/questions/43882293/chrome-extension-stats-for-more-than-3-months

how to listen to tweets loaded dynamically in twitter?

淺唱寂寞╮ 提交于 2020-01-05 07:52:07
问题 I am trying to add an image to every tweet in my timeline by building a chrome plugin. Currently the plugin works for tweets loaded when the page is refreshed. But how do i extend the plugin to include the "new tweets" and the "past tweets" which are dynamically loaded in my timeline? 回答1: You can check for them periodically using setInterval() or search if there is any event that is called by Twitter script after pulling tweets. There are also some events that look relevant, but I did not

Chrome getSelection not working if called from context menu

▼魔方 西西 提交于 2020-01-05 07:14:31
问题 I'm working on a Chrome extension but I don't seem to be able to go past the first few lines. The problem is that when I click on the context menu it fails to grab the selection from the document. It works fine obviously when I use it as a simple script included in an HTML page. Here's the code: var id = chrome.contextMenus.create({ "title" : "Search", "contexts" : ["selection"], "onclick" : openUrl }); function openUrl() { var sel = window.getSelection().toString().trim() alert(sel) } This

actions for chrome notification not working

时光毁灭记忆、已成空白 提交于 2020-01-05 06:26:14
问题 Hello I am trying to create a chrome notification and I want to add actions onto the notification so the user can select the options. I have tried to run this code but it doesnt work for some reason: var options = { type: "basic", title: "Restock", message: "Tee Black", iconUrl: '/images/Hp_Beta7.png', actions: [ {title: "small", action: "action1"}, {title: "medium", action: "action2"} ] }; chrome.notifications.create(options, callback); function callback() { console.log("popup done"); } the

How to add user script js file as a Chrome extension?

倖福魔咒の 提交于 2020-01-05 05:48:11
问题 I have been currently working on user scripts for Chrome that can function without the use of Tampermonkey. Today I added a third party extension (a userscript js) to the Chrome extensions: // ==UserScript== // @name "job changer" // @namespace Marshmellows // @version 0.1 // @description Change 'Jobs' in stackoverflow to Hello! // @match http://stackoverflow.com/* // @grant none // @run-at document-start // ==/UserScript== document.addEventListener('DOMContentLoaded', function() { document