Skip to content

Commit

Permalink
Version1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lete114 committed Mar 2, 2021
0 parents commit 34bd150
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# SplitScreen

> Website split screen is Chrome Plugins
![SplitScreen Demo](https://cdn.jsdelivr.net/gh/lete114/CDN/SplitScreen/Demo1.png)
5 changes: 5 additions & 0 deletions SplitScreen.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
chrome.browserAction.onClicked.addListener(function(tab) {
chrome.tabs.executeScript({
code: `document.write('<title>'+document.title+'</title><frameset cols="50%,*"><frame src='+location.href +'><frame src='+location.href+'></frameset>')`
});
});
Binary file added icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
18 changes: 18 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"name": "SplitScreen",
"version": "1.0",
"description": "Website split screen is Chrome Plugins ",
"browser_action": {"default_icon": "icon.png"},
"permissions": ["http://*/*","https://*/*"],
"manifest_version": 2,
"author": "Lete乐特",
"homepage_url": "https://github.com/lete114/SplitScreen",
"background": {
"scripts": ["./SplitScreen.js"],
"persistent": false
},
"icons": {
"128": "icon.png",
"16": "icon.png"
}
}

0 comments on commit 34bd150

Please sign in to comment.