google-chrome-extension

Chrome Extension: How can I get global settings in preference

南楼画角 提交于 2019-12-24 05:00:09
问题 As you know that there are many entries in chrome://settings, is there any way that I can read the value in my extension JS code? e.g. get the "homepage", "account_info" etc. The values present in the file names Preferences which locates in folder Google\Chrome\User Data\Default. Thanks. Easton 回答1: Marco's answer stating you can't access settings is not entirely true. Chrome APIs provide access to some settings: accessibility, privacy settings, font settings, content settings, and maybe the

VB.Net: How to install plugins/extensions in CEF?

你。 提交于 2019-12-24 04:52:07
问题 I am making a vb.net web browser, and for the browsing engine I am using ChromeWebBrowser.Net. To improve the users browsing experience, I want to add the plugin "Adblock Plus". I cannot figure out how to add this plugin, in my code I have ChromeWebBrowser1.AddPluginDir("C:\MySurf Plugins\") I don't know what type of files/folders I need to put in the custom plugin directory in order for adblock to work. I copied the plugin folder from Google Chrome, and added it in that folder, but it did

VB.Net: How to install plugins/extensions in CEF?

眉间皱痕 提交于 2019-12-24 04:52:01
问题 I am making a vb.net web browser, and for the browsing engine I am using ChromeWebBrowser.Net. To improve the users browsing experience, I want to add the plugin "Adblock Plus". I cannot figure out how to add this plugin, in my code I have ChromeWebBrowser1.AddPluginDir("C:\MySurf Plugins\") I don't know what type of files/folders I need to put in the custom plugin directory in order for adblock to work. I copied the plugin folder from Google Chrome, and added it in that folder, but it did

How to split each word in <p> (html) considering other elements inside

故事扮演 提交于 2019-12-24 04:49:34
问题 I'm new here. I try to explain you my problem. I'm developing an extension for Chrome that manage DOM. I have to split up each single word inside <p> tag element, to apply after some css features on each word, but preserving other tag elements ( <a>, <em>, <strong> , etc.) that could be in <p> tag. Example of possible text in a web page: <p> Sed ut <a> perspiciatis unde omnis </a> iste natus <em> error sit </em> voluptatem <strong> accusantium </strong> doloremque laudantium </p> Using jQuery

How to trigger an event after a Chrome extension popup is displayed?

流过昼夜 提交于 2019-12-24 04:32:07
问题 I am using jQuery with a Google Chrome extension popup. The pop-up page uses jQuery's 'document.ready' event to trigger a request to a web service. The problem is that the pop-up does not render until a response is received, which makes it seem unresponsive. Here's an outline of the page: <html> <head> <script type="text/javascript" src="./plugin.js"></script> <script type="text/javascript"> $(document).ready(function() { plugin.init(); plugin.getData(); }); </script> </head> <body>...</body>

Chrome extension changing popup.html text

强颜欢笑 提交于 2019-12-24 04:27:14
问题 I'm a complete novice, i want to take a text from a "p" tag and put it in another "p" tag so when i click on my extension i see the two texts being displayed. What i'm doing wrong? and how can i avoid similar mistakes in the future? popup.html: <!DOCTYPE html> <html> <head> <script type="text/javascript" scr= "popup.js"></script> </head> <body> <p id="firstText">this is the text to be repeated</p> <p id= "secondText"></p> </body> </html> popup.js: document.addEventListener('DOMContentLoaded',

jQuery-textcomplete does not work on contenteditable div from Chrome extension

我与影子孤独终老i 提交于 2019-12-24 04:13:08
问题 I am working on simple auto complete chrome extension using jQuery-textcomplete script. It is working well on most of traditional sites, because they use textarea. It is not working on Google+ comment box, Facebook comment box and even gmail. Because they only use div tag with HTML5 'contenteditable' option to get user's text, and also use react in facebook. So jquery selector not working. How can I solve this problem? Here is my selector. $("textarea, .editable, textbox, text").textcomplete(

Chrome new tab event

柔情痞子 提交于 2019-12-24 03:49:06
问题 I want to fire an event when a new tab is created in Chrome. I thought the following would do it, but it seems not. (beginner) manifest.json { "name": "My First Extension", "version": "1.0", "description": "The first extension that I made.", "background_page": "background.html", "permissions": [ "tabs" ] } background.html <html> <head> <script type="text/javascript"> chrome.tabs.onCreated.addListener(function() {alert('hello new tab'}); </script> </head> <body> </body> </html> 回答1: Are you

Can I make a simple browser plugin for both desktop and mobile?

旧城冷巷雨未停 提交于 2019-12-24 03:46:30
问题 I wanted to use Chrome but it looks like Chrome for Android can't run extensions? And support in Firefox seems shaky. All I want is to request and execute remote CSS and JS files for a particular domain. I don't need any UI or anything. Not sure if I should just forge ahead with Firefox or perhaps think about rolling my own 'browser' with plugin embedded? 回答1: You can use the Firefox SDK, available here: https://developer.mozilla.org/en-US/Add-ons/SDK It allows you to develop for both

Chrome extension: intercept HTTP Response

走远了吗. 提交于 2019-12-24 03:43:29
问题 I saw many pages talking about how to interecet HTTP Response from a site. I'm trying this: Chrome Extension - How to get HTTP Response Body? There are no execuble programs... this is my code: manifest.json: { "manifest_version": 2, "name": "Extension Name", "description": "Some Desc.", "version": "1.1", "browser_action": { "default_icon": "icon.png", "default_popup": "index.html" }, "permissions": [ "activeTab", "storage", "tabs", "https://*.google.com/" ], "content_scripts": [ { "matches":