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