Home > Web Front-end > JS Tutorial > Using JavaScript to develop IE browser local plug-in examples_javascript skills

Using JavaScript to develop IE browser local plug-in examples_javascript skills

WBOY
Release: 2016-05-16 16:13:43
Original
1451 people have browsed it

The IE plug-in developed using js can execute js code in the currently browsed page, and on this basis, any function that the user can think of can be realized.
You can do some common processing for unused websites (such as extracting certain types of information), or you can do special processing for specific websites (such as buying train tickets).

Implementing this plug-in method is relatively simple, just copy a few files and modify a registry value. Therefore, it is more suitable to quickly implement some browser or website auxiliary functions.

Implementation steps:

1. Create html files that implement specific functions

Copy code The code is as follows:

//File name: getticketslist.html
//File content:


2. Create registry file
Copy code The code is as follows:

//File name: getticketslist.reg
//File content: The CLSID in the file can be modified arbitrarily, as long as it is unique

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINESOFTWAREMicrosoftInternet ExplorerExtensions{878EC0C9-AAAD-4331-9B3A-2D8BA93AEAD2}]
"CLSID"="{2FBA04EE-3024-11D2-8F1F-0000F87ABD16}"
"Default Visible"="Yes"
"Script"="c:\getticketslist.html"
"MenuText"="Handling tickets"


3. Copy the html file to the path specified in the reg file (such as c:getticketslist.html)
4. Run getticketslist.reg and modify the registry
5. Restart IE. In the menu [Tools], you can see the function "processing tickets" just added, click to execute
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template