Alibabacloud.com offers a wide variety of articles about chrome extension background page, easily find your chrome extension background page information here online.
To recommend a Chrome browser to use the extension-Micro new tab, the expansion of the function is to make the new tab of the Chrome browser into a very powerful navigation station, and users can also DIY new tab content, style.
Chrome Plugin--Micro new tab page
We must have such an experience, when browsing the web, the two ends of the ads, such as "Dragon Blades, click on the Send", as well as the recent fire of the Woods Cong 37 legendary br What "BR mask, br pendant" The magic of the ads are always flooded our eyeballs.Of course there are ready-made plug-ins to clear the page ads, but since being a program ape, especially Feder, why not try to write a clear ad plugin. In fact, writing a browser plugin is
We must have such an experience, when browsing the web, the two ends of the ads, such as "Dragon Blades, click on the Send", as well as the recent fire of the Woods Cong 37 legendary br What "BR mask, br pendant" The magic of the ads are always flooded our eyeballs.Of course there are ready-made plug-ins to clear the page ads, but since being a program ape, especially Feder, why not try to write a clear ad plugin. In fact, writing a browser plug-in is
The whole process is probably like this:Background.js monitors the Click events on the page, creates a new tab, and assigns the ID value of the New tab page to a global variable tasktab:
The code is as follows
Copy Code
var Tasktab;Chrome.tabs.create ({url:/blog/}, function (tab) {Tasktab = tab.id;});
Also, monitor webnavigation oncommitted events in background.js for
Use Chrome extension to copy friends in batches, and chrome extension friends1.Initialize FileIn the official Chrome extension tutorial address, create a folder named zhi-follow. The first part is the default icon. The three sizes
parameters to browser actions. For example, it is the extension icon of Evernote.
3. Page Actions (address bar icon)
If you are familiar with some chrome plug-ins, you will surely find that some extended icons are not displayed on the right of the address bar, but on the right of the address, which is the page action
a key value varA = Localstorage.fresh;//Get key value Deletelocalstorage[' fresh '];//Delete a key value//or use its API:localStorage.setItem ("Fresh", "vfresh.org");//set a key valueLocalstorage.getitem ("fresh");//get a key valueLocalstorage.key (0);//Gets the name of the key that specifies the subscript (as if an array)Localstorage.removeitem ("fresh");//Delete a key valueLocalstorage.clear ();//Empty StoragePay attention to a little! Although the script can access the Localstorage
extension management interface and tick the developer mode button at the top right of the interface:5. After checking the developer mode option, a button such as loading the extension that is being developed will appear on this page, click the "load the expanding program being developed" button and select the location of the
[Switch] Google Chrome (Google Chrome) method of modifying the webpage background color (for example, modifying it to the bean paste green of eye protection)
Google Chrome: how to modify the webpage background color first, download and install Chrome's stylist plug-in: plug
in the picture, I marked the Chrome bookmark, and now you will find that this is the chrome extension, but it is not directly embedded in chrome.The difference between page actions and browser actions is that page actions are not always displayed and must be used on a speci
Axure rp extension for chrome corruption occurs in chrome browser on Windows, chromeaxure
Recently, when I opened the prototype graph on Windows 7 Google browser, I jumped to the download extension page. This is because we have encountered this situation before.
1. Open G
: // {extensionid}/'root directory in the browser.
Content scripts is the script that Page Actions inject to a specific page. Permissions authorizes it to execute under which conditions.
Options page is an extended setting page.
For expansion, the HTML page defined by the
Compile Chrome extension in JavaScript to implement interaction with the browser and time notification. javascriptchrome
Interaction with browsers1. bookmarksUse the chrome. bookmarks module to create, organize, and manage bookmarks. You can also refer to Override Pages to create a customizable bookmarks Manager page.
Chrome extension is a package that contains a profile manifest.json, as well as some files and resources for Web development (HTML, JavaScript, CSS, etc.). Chrome Extension Development Guide
Chrome Extension Overview
= localstorage[' name '];Localstorage is not cross-domain, so the localstorage of different domain names are non-interference. For example, a value is stored on the jgb.com, and www.jgb.com cannot access it, and vice versa.Localstorage in Chrome extensionsThe localstorage in the extension is nothing different, just have a note point, content_script in the localstorage is stored in the corresponding domain
Most designers and developers choose Firefox because Firefox offers a powerful plug-in extension. Although Chrome currently offers less extensions than Firefox offers, it is still likely to be a choice for designers and developers. In some cases, they are not as powerful as Firefox (such as Firebug and Firebug Lite), but if you are using chrome, you may be intere
name = localstorage[' name '];Localstorage is not cross-domain, so the localstorage of different domain names are non-interference. For example, a value is stored on the jgb.com, and www.jgb.com cannot access it, and vice versa.Localstorage in Chrome extensionsThe localstorage in the extension is nothing different, just have a note point, content_script in the localstorage is stored in the corresponding do
very special.
It can be seen that the page flip of this plug-in is not a normal scrolling screen, and the second is to update the page from top to bottom. that is to say, you can scroll the scroll wheel and view the reading progress. the advantage is that you will not skip the course and will remember the position you are reading (equivalent to adding a bookmarked indicating the current reading progres
implementing the Chrome extension to start the local process-supplementalTags: Chrome extension launches local program Access local disk2014-10-17 11:42 6753 people read review (+) collection report Classification:Chrome PluginCopyright NOTICE: This article for Bo Master original article, without Bo Master permissio
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.