modified: pixi.toml
[GalaxyCodeBases.git] / etc / Chrome / 115 / firefox / index.js
bloba6f6f1abb096b1f07e44f9c1d19d78094e7c68ae
1 var buttons = require('sdk/ui/button/action');
2 var tabs = require("sdk/tabs");
3 var button = buttons.ActionButton({
4 id: "pan115-link",
5 label: "Visit 115",
6 icon: {
7 "16": "./img/logo16.png",
8 "32": "./img/logo32.png",
9 "64": "./img/logo64.png"
11 onClick: handleClick
12 });
14 function handleClick(state) {
15 tabs.open("http://115.com/?mode=wangpan");
20 var data = require("sdk/self").data;
21 var pageMod = require("sdk/page-mod");
23 pageMod.PageMod({
24 include: ["http://115.com/*"],
25 contentScriptWhen:"end",
26 contentScriptFile: [data.url("js/115.js")],
27 });