Create a Google browser extension

Source: Internet
Author: User

First, prepare the json file:

"Version": "1.0" "manifest_version": 2 "description": "javascript JY game development Author: Tian xiangbing, QQ: 55342775, email: 55342775@qq.com "" icons "" 16 ":" snak.png "" 48 ":" snak.png "" 128 ":" snak.png "" name ": "js JY game" "browser_action" "default_title": "JY game" "default_icon": "Snail ke.png" "default_popup": "pup.html" "permissions" "tabs ", "http://www.lovewebgames.com /*"

Then, create a pup.html page, and perform the same operations as a common page .. Reference local files. Do not use eval,

-----: Left; width: 120px; height: 120px; text --- color: #000 </style> <! -- JavaScript and HTML must be-Policy documentation [1]--[1]: http: --> <script src = "jquery-1.7.1.min.js"> </script> <script src = "popup. js "> </script> Js:

$("html""http://www.lovewebgames.com/games.html""get" _html = $(result).find("#main_content" img = _html.find("img" p = $().attr("src","http://www.lovewebgames.com/"+$().attr("src" ( /^\//.test(p.attr("href""href","http://www.lovewebgames.com/"+p.attr("href""a").attr("target","_blank""body"

Then, you can package and load it in the extended development mode provided by Google. After installation, there will be a small icon in the upper right corner of your browser.

Here I have made three small plug-ins. You can try them out for learning and use only:

JY game list

Video seed Update (You know)

Pc and mobile game rankings

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.