浏览代码

Rearranged for publishing

父节点
当前提交
d964ffaad4
共有 7 个文件被更改,包括 3 次插入3 次删除
  1. 2
    2
      eventPage.js
  2. 1
    1
      index.html
  3. 0
    0
      index.js
  4. 0
    0
      rsc/icon-128.png
  5. 0
    0
      rsc/icon-big.png
  6. 0
    0
      rsc/icon-red.png
  7. 0
    0
      rsc/icon.png

+ 2
- 2
eventPage.js 查看文件

28
             sites = sites.sites
28
             sites = sites.sites
29
             domain = url.match(/:\/\/(www\.)?([^\/]+)\//).slice(-1)[0]
29
             domain = url.match(/:\/\/(www\.)?([^\/]+)\//).slice(-1)[0]
30
             if(domain in sites) {
30
             if(domain in sites) {
31
-                chrome.browserAction.setIcon({path: 'icon-red.png'})
31
+                chrome.browserAction.setIcon({path: 'rsc/icon-red.png'})
32
             }
32
             }
33
             else {
33
             else {
34
-                chrome.browserAction.setIcon({path: 'icon.png'})
34
+                chrome.browserAction.setIcon({path: 'rsc/icon.png'})
35
             }
35
             }
36
         })
36
         })
37
     })
37
     })

popup.html → index.html 查看文件

18
       }
18
       }
19
     </style>
19
     </style>
20
     <script src="jquery.js"></script>
20
     <script src="jquery.js"></script>
21
-    <script src="popup.js"></script>
21
+    <script src="index.js"></script>
22
   </head>
22
   </head>
23
   <body>
23
   <body>
24
     <div id="mirror" style="display:none">This website may be blocked in your region.<br />
24
     <div id="mirror" style="display:none">This website may be blocked in your region.<br />

popup.js → index.js 查看文件


icon-128.png → rsc/icon-128.png 查看文件


icon-big.png → rsc/icon-big.png 查看文件


icon-red.png → rsc/icon-red.png 查看文件


icon.png → rsc/icon.png 查看文件