Skip to content
This repository has been archived by the owner on Mar 7, 2023. It is now read-only.

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
hachy committed Feb 24, 2015
0 parents commit 5f5df0a
Show file tree
Hide file tree
Showing 5 changed files with 116 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 @@
# Nanagogo Friendly Nav (Nogizaka46)

[新世代トークアプリ755(ナナゴーゴー)](http://7gogo.jp/)のWeb版で乃木坂46のトークにアクセスしやすくするChrome拡張です

![screenshots1](https://dl.dropboxusercontent.com/u/60760023/screenshots/nanagogo-screenshot1.png)
18 changes: 18 additions & 0 deletions manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"manifest_version": 2,
"name": "Nanagogo Friendly Nav(Nogizaka46)",
"description": "Nogizaka46 friendly navigation in 755(7gogo)",
"version": "1.0.0",
"permissions": [
"http://7gogo.jp/*"
],
"content_scripts": [
{
"all_frames": true,
"matches": ["http://7gogo.jp/*"],
"js": ["myscript.js"],
"css": ["mystyle.css"]
}
],
"web_accessible_resources": ["nav.html"]
}
11 changes: 11 additions & 0 deletions myscript.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
var div = document.createElement("div");
div.className = "main-contents";
while (document.body.firstChild) {
div.appendChild(document.body.firstChild);
}
document.body.appendChild(div);

var iFrame = document.createElement ("iframe");
iFrame.className = 'left-contents';
iFrame.src = chrome.extension.getURL ("nav.html");
document.body.insertBefore (iFrame, document.body.firstChild);
17 changes: 17 additions & 0 deletions mystyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.left-contents {
background: #f4f3f0;
border-right: 1px solid #e5e4e0;
height: 100%;
overflow: visible;
position: fixed;
top: 0;
left: 0;
width: 150px;
z-index: 100;
}

.main-contents {
margin-left: 150px;
width: 100%;
z-index: 90;
}
65 changes: 65 additions & 0 deletions nav.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="ja">
<head>
<meta charset="utf-8">
<title>755 sidebar</title>
<style>
body, * {
color: #000;
font-size: 14px;
margin: 0;
padding: 0;
}
#nav-title {
background: #812990;
color: white;
font-size: 16px;
font-weight: bold;
padding: 10px;
}
#nogi-list {
list-style: none;
height: 100%;
}
#nogi-list li:nth-child(odd) {
background: #eae9e8;
}
#nogi-list li a {
display: block;
padding: 10px 5px 10px 20px;
text-decoration: none;
}
#nogi-list li a:hover {
background: #bc8dc4;
}
</style>
</head>
<body>
<p id="nav-title">乃木坂46</p>
<ul id="nogi-list">
<li><a href="http://7gogo.jp/lp/EHJO22HByVYWkVIvojdMdG==" target="_parent">秋元真夏</a></li>
<li><a href="http://7gogo.jp/lp/jkOW8cD6yvaWkVIvojdMdG==" target="_parent">生駒里奈</a></li>
<li><a href="http://7gogo.jp/lp/mQefyXKRyixWkVIvojdMdG==" target="_parent">伊藤かりん</a></li>
<li><a href="http://7gogo.jp/lp/QQIMkqI4yZLWkVIvojdMdG==" target="_parent">伊藤純奈</a></li>
<li><a href="http://7gogo.jp/lp/m2nb5PEEVF-WkVIvojdMdG==" target="_parent">井上小百合</a></li>
<li><a href="http://7gogo.jp/lp/IehN_dxcAlhWkVIvojdMdG==" target="_parent">衛藤美彩</a></li>
<li><a href="http://7gogo.jp/lp/848OPG81AWtWkVIvojdMdG==" target="_parent">川後陽菜</a></li>
<li><a href="http://7gogo.jp/lp/EJjT0Dzb7XlWkVIvojdMdG==" target="_parent">川村まひろ</a></li>
<li><a href="http://7gogo.jp/lp/2Fl8X2eu81xWkVIvojdMdG==" target="_parent">北野日奈子</a></li>
<li><a href="http://7gogo.jp/lp/ZPRzeIO_rx-WkVIvojdMdG==" target="_parent">斎藤ちはる</a></li>
<li><a href="http://7gogo.jp/lp/WcgJ5NeKFhlWkVIvojdMdG==" target="_parent">斉藤優里</a></li>
<li><a href="http://7gogo.jp/lp/-41Jgd7qLKLWkVIvojdMdG==" target="_parent">白石麻衣</a></li>
<li><a href="http://7gogo.jp/lp/CvkGFK1FrRAWkVIvojdMdG==" target="_parent">新内眞衣</a></li>
<li><a href="http://7gogo.jp/lp/slEyH7eOqmEWkVIvojdMdG==" target="_parent">高山一実</a></li>
<li><a href="http://7gogo.jp/lp/MMhO048Vl1EWkVIvojdMdG==" target="_parent">中田花奈</a></li>
<li><a href="http://7gogo.jp/lp/ipNEKvlo_eAWkVIvojdMdG==" target="_parent">西野七瀬</a></li>
<li><a href="http://7gogo.jp/lp/sPHC9jWzi6xWkVIvojdMdG==" target="_parent">能條愛未</a></li>
<li><a href="http://7gogo.jp/lp/LRWSc-a5BfEWkVIvojdMdG==" target="_parent">畠中 清羅</a></li>
<li><a href="http://7gogo.jp/lp/JV4GaKQJZnaWkVIvojdMdG==" target="_parent">星野みなみ</a></li>
<li><a href="http://7gogo.jp/lp/59sEGXLHsYEWkVIvojdMdG==" target="_parent">堀未央奈</a></li>
<li><a href="http://7gogo.jp/lp/9SGk_al6McHWkVIvojdMdG==" target="_parent">松村沙友理</a></li>
<li><a href="http://7gogo.jp/lp/loSdLlzZXdtWkVIvojdMdG==" target="_parent">山崎怜奈</a></li>
<li><a href="http://7gogo.jp/lp/7J9xwxaZ77eWkVIvojdMdG==" target="_parent">渡辺みり愛</a></li>
</ul>
</body>
</html>

0 comments on commit 5f5df0a

Please sign in to comment.