Skip to content

Commit 34bd150

Browse files
committed
Version1.0
0 parents  commit 34bd150

File tree

4 files changed

+28
-0
lines changed

4 files changed

+28
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# SplitScreen
2+
3+
> Website split screen is Chrome Plugins
4+
5+
![SplitScreen Demo](https://cdn.jsdelivr.net/gh/lete114/CDN/SplitScreen/Demo1.png)

SplitScreen.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
chrome.browserAction.onClicked.addListener(function(tab) {
2+
chrome.tabs.executeScript({
3+
code: `document.write('<title>'+document.title+'</title><frameset cols="50%,*"><frame src='+location.href +'><frame src='+location.href+'></frameset>')`
4+
});
5+
});

icon.png

9.75 KB
Loading

manifest.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"name": "SplitScreen",
3+
"version": "1.0",
4+
"description": "Website split screen is Chrome Plugins ",
5+
"browser_action": {"default_icon": "icon.png"},
6+
"permissions": ["http://*/*","https://*/*"],
7+
"manifest_version": 2,
8+
"author": "Lete乐特",
9+
"homepage_url": "https://github.com/lete114/SplitScreen",
10+
"background": {
11+
"scripts": ["./SplitScreen.js"],
12+
"persistent": false
13+
},
14+
"icons": {
15+
"128": "icon.png",
16+
"16": "icon.png"
17+
}
18+
}

0 commit comments

Comments
 (0)