CustomGinzaWatch

ニコニコ動画:GINZAの動画プレイヤーのUIをお手軽カスタマイズ。

当前为 2015-01-28 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CustomGinzaWatch
  3. // @include http://www.nicovideo.jp/watch/*
  4. // @version 4.0.54.2
  5. // @namespace http://d.hatena.ne.jp/wfwjfow/
  6. // @description ニコニコ動画:GINZAの動画プレイヤーのUIをお手軽カスタマイズ。
  7. // @grant GM_getValue
  8. // @grant GM_setValue
  9. // ==/UserScript==
  10.  
  11. /*
  12. ■参考スクリプト■
  13. NicoRankingKidokuDelete → http://userscripts.org/scripts/show/45927
  14. */
  15.  
  16.  
  17. var main = function () {
  18.  
  19. if ((typeof GM_getValue == 'undefined') || (GM_getValue('a', 'b') == undefined)) {
  20.  
  21. GM_getValue = function(name, defaultValue) {
  22. var value = localStorage.getItem(name);
  23. if (!value)
  24. return defaultValue;
  25. var type = value[0];
  26. value = value.substring(1);
  27. switch (type) {
  28. case 'b':
  29. return value == 'true';
  30. case 'n':
  31. return Number(value);
  32. default:
  33. return value;
  34. }
  35. }
  36. GM_setValue = function(name, value) {
  37. value = (typeof value)[0] + value;
  38. localStorage.setItem(name, value);
  39. }
  40. if(typeof(unsafeWindow)=='undefined') { unsafeWindow=window; }
  41. }
  42.  
  43.  
  44. //上の動画タイトル消去
  45. function delsustitle(){
  46. if( GM_getValue("delsustitle")=="on"){
  47. $("head").append('<style type="text/css">#videoHeaderDetail div.videoDetailExpand span.videoHeaderTitle{display:none!important;}</style>');
  48. }
  49. }
  50. //タグクリック等時に同じタブで開く
  51. function targetself(){
  52. if( GM_getValue("targetself")=="on"){
  53. function onajitab(){
  54. $(".videoDescription a[href*='http://www.nicovideo.jp/mylist/'],#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink").click( function() {
  55. $("body").css("display","none")
  56. $("#videoExplorerBackContainer").click();
  57. window.location.href=this.href;
  58. });
  59. }
  60. onajitab();
  61. setInterval(function(){onajitab()},1000);
  62.  
  63. $("head").append('<style type="text/css"></style>');
  64. }
  65. }
  66. //タグクリック等時に別タブで開く
  67. function targetblank(){
  68. if( GM_getValue("targetblank")=="on"){
  69. function betsutab(){
  70. $(".videoDescription a[href*='http://www.nicovideo.jp/mylist/'],#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink").click( function() {
  71. window.open(this.href,'blank');
  72. setTimeout(function(){
  73. $("#videoExplorerBackContainer").click();
  74. },200);
  75. });
  76. }
  77. betsutab();
  78. setInterval(function(){betsutab()},1000);
  79.  
  80. $("head").append('<style type="text/css"></style>');
  81. }
  82. }
  83. //コメント欄のソーシャルボタンを消す
  84. function delkomesocial(){
  85. if( GM_getValue("delkomesocial")=="on"){
  86. $("head").append('<style type="text/css">#playerTabContainer .socialButtons{display:none!important;}</style>');
  87. }
  88. }
  89. //もっと見るで簡易大百科記事を消す
  90. function delminidic(){
  91. if( GM_getValue("delminidic")=="on"){
  92. $("head").append('<style type="text/css">#videoExplorer div.tagRelatedNicopedia{display:none!important;}</style>');
  93. }
  94. }
  95. //もっと見るでユーザー広告を消す
  96. function deluserad(){
  97. if( GM_getValue("deluserad")=="on"){
  98. $("head").append('<style type="text/css">#videoExplorer div.uadTagRelated{display:none!important;}</style>');
  99. }
  100. }
  101. //ブラックモード
  102. function backblack(){
  103. if( GM_getValue("backblack")=="on"){
  104. $("head").append('<style type="text/css">body{background-color:#393939!important;}#content,#videoHeader,#outline{background:transparent!important;color:#ccc!important;}*{color:#ccc!important;}#ichibaMain .balloonUe * , #prefDiv * , #playerTabContainer *,#divmottoright *,#menudivmenu *{color:#000000!important;}#videoTagContainer .tagInner #videoHeaderTagList .toggleTagEdit{background-color:#000000!important;}#content #videoTagContainer .tagInner #videoHeaderTagList li.videoHeaderTag a{color:#ccc!important;}#videoStats{border:1px solid #ccc!important;}span.isNotFavoritedText{color:#000000!important;}</style>');
  105. }
  106. }
  107. //タグを開閉式に
  108. function tagtoggle(){
  109. if( GM_getValue("tagtoggle")=="on"){
  110. var divdata = document.createElement("a");
  111. divdata.id="toggle9";
  112. divdata.innerHTML="Tagの開閉";
  113. document.getElementById("playerNicoplayer").appendChild(divdata);
  114. $("#toggle9").click(function(){
  115. $("#videoTagContainer").toggle();
  116. GM_setValue("tagDisplay",$("#videoTagContainer").css("display"));
  117. });
  118. if(GM_getValue("tagDisplay")=="none"){
  119. $("#videoTagContainer").hide();
  120. }
  121. $("head").append('<style type="text/css">#toggle9{float:left!important;margin-left:15px;cursor:pointer;}</style>');
  122. }
  123. }
  124. //ウォールのアイコンだけを消す
  125. function walliconoff(){
  126. if( GM_getValue("walliconoff")=="on"){
  127. $("head").append('<style type="text/css">#chipWallList{display:none!important;}</style>');
  128. }
  129. }
  130. //検索ボックスを消去
  131. function delsearchbox(){
  132. if( GM_getValue("delsearchbox")=="on"){
  133. $("head").append('<style type="text/css">#videoHeaderMenu .searchContainer{display:none!important;}</style>');
  134. }
  135. }
  136. //タグのピンを常時表示
  137. function tagpinon(){
  138. if( GM_getValue("tagpinon")=="on"){
  139. $("head").append('<style type="text/css">#videoTagContainer .tagInner #videoTagContainerPin{display:block!important;}</style>');
  140. }
  141. }
  142. //ウォールを消す
  143. function walloff(){
  144. if( GM_getValue("walloff")=="on"){
  145. $("head").append('<style type="text/css">#wallImageContainer .wallAlignmentArea , #chipWallList{display:none!important;}</style>');
  146. }
  147. }
  148. //タグのピンを消す
  149. function deltagpin(){
  150. if( GM_getValue("deltagpin")=="on"){
  151. $("head").append('<style type="text/css">#videoTagContainerPin{display:none!important;}</style>');
  152. }
  153. }
  154. //プレイヤーのサイズを大きく
  155. function bigwatch(){
  156. if( GM_getValue("bigwatch")=="on" ){
  157. $("head").append('<style type="text/css">#playerAlignmentArea.size_normal{width:99%!important;}#playerTabWrapper{float:right!important;position:relative!important;}#playerNicoplayer{float:left!important;}</style>');
  158.  
  159. $(window).on("load resize", function(){
  160. var wh = $(window).height();
  161. var ww = $(window).width();
  162. var tw = $("#playerTabWrapper").width();
  163. var ww2= Math.round(ww*0.99-tw-30)+"px";
  164. var wh2= Math.round((ww*0.99-tw-30)*0.695)+"px";
  165.  
  166. $("#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #nicoplayerContainer,#playerAlignmentArea.size_normal #playerNicoplayer, #playerAlignmentArea.size_normal #external_nicoplayer").css({'cssText': 'width:'+ww2+'!important;height:'+wh2+'!important;'});
  167. $("#playerContainerWrapper,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper").css({'cssText': 'height:'+wh2+'!important;'});
  168. });
  169. if( GM_getValue("komepaneltoggle_on")=="on"){
  170.  
  171. function panelcheck(){
  172. var wh = $(window).height();
  173. var ww = $(window).width();
  174. var tw = $("#playerTabWrapper").width();
  175. var tdis = $("#playerTabWrapper").css("display");
  176. if(tdis=="none"){
  177. tw=0;
  178. var thide = "none"
  179. }else{thide="block"}
  180. var ww2= Math.round(ww*0.99-tw-30)+"px";
  181. var wh2= Math.round((ww*0.99-tw-30)*0.695)+"px";
  182.  
  183. $("#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #nicoplayerContainer,#playerAlignmentArea.size_normal #playerNicoplayer, #playerAlignmentArea.size_normal #external_nicoplayer").css({'cssText': 'width:'+ww2+'!important;height:'+wh2+'!important;'});
  184. $("#playerContainerWrapper,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee").css({'cssText': 'height:'+wh2+'!important;'});
  185. $("#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper").css({'cssText': 'height:'+wh2+'!important;display:'+thide});
  186. }
  187. panelcheck();
  188. setInterval(function(){panelcheck()},1000);
  189.  
  190. }
  191. }
  192. }
  193. //パンくずリストを消去
  194. function delbread(){
  195. if( GM_getValue("delbread")=="on"){
  196. $("head").append('<style type="text/css">div.ch_breadcrumb{display:none!important;}</style>');
  197. }
  198. if( GM_getValue("infotocomepanel_on")=="on" && GM_getValue("delbread")=="on"){
  199. $("head").append('<style type="text/css">div.ch_breadcrumb,#videoHeaderDetail .videoDetailExpand{display:none!important;}</style>');
  200. }
  201. }
  202. //ツイートボタン等を消去
  203. function delsocial(){
  204. if( GM_getValue("delsocial")=="on"){
  205. $("head").append('<style type="text/css">#videoShareLinks{display:none!important;}#topVideoInfo .socialLinks{display:none!important;}</style>');
  206. }
  207. }
  208. //動画詳細情報を消去
  209. function delshosai(){
  210. if( GM_getValue("delshosai")=="on"){
  211. $("head").append('<style type="text/css">#bottomVideoDetailInformation,#bottomVideoDetailInformation .supplementary{display:none!important;}#topVideoInfo .hiddenInfoTabContent,#topVideoInfo .hiddenInfoTabHeader{display:none!important;}</style>');
  212. }
  213. }
  214. //マイリスボタン・とりあえずマイリスボタン以外を消去
  215. function delbuttons(){
  216. if( GM_getValue("delbuttons")=="on"){
  217. $("head").append('<style type="text/css">#videoMenuTopList .uadButton,#videoMenuTopList .mymemoryButton,#videoMenuTopList .videoMenuListNicoru,#videoMenuTopList .downloadButton,#videoMenuTopList .menuAward,#videoMenuTopList #speedChecker,#videoMenuTopList .userChannel{display:none!important;width:0!important;height:0!important;}#videoMenuWrapper{height:auto!important;}#videoTagContainer{min-height:48px!important;}</style>');
  218. }
  219. }
  220. //ツイートボタンをヘッダーに移動
  221. function tweetinheader(){
  222. if( GM_getValue("tweetinheader")=="on"){
  223. $("head").append('<style type="text/css">.twitter-share-button{margin:7px 0 0 7px!important;}.socialLinkTwitter{width:140px!important;}</style>');
  224. $("#videoShareLinks li.socialLinkTwitter").appendTo("#siteHeaderInner ul.siteHeaderMenuList");
  225. }
  226. }
  227. //コンテンツツリー消去
  228. function ctreeCut(){
  229. if( GM_getValue("ctree_off")=="on"){
  230. $("head").append('<style type="text/css">.parentVideoInfo{display:none!important;}</style>');
  231. }
  232. }
  233. //簡易動画説明文消去
  234. function shortinfoCut(){
  235. if( GM_getValue("shortinfo_off")=="on"){
  236. $("head").append('<style type="text/css">#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}</style>');
  237. }
  238. }
  239. //下の動画説明文・動画情報を消去
  240. function deljosdes(){
  241. if( GM_getValue("deljosdes")=="on"){
  242. $("head").append('<style type="text/css">#videoInfo{display:none!important;}#videoComment{display:none!important;}</style>');
  243. }
  244. }
  245. //広告消去
  246. function senCut2(){
  247. if( GM_getValue("senden2")=="on"){
  248. $("head").append('<style type="text/css">#videoExplorerSideFollowAdAds,#rectangleAd,#sideFollowAd,#superBanner,#tagRelatedBannerContainer,#tagRelatedBanner,#playerBottomAd,#pageFooterAds,#selectionFooter,#videoReviewBottomAd,#resultContainer .resultAdsWrap,#selectionSideAd,.nicoSpotAds{display:none!important;}#videoStartAds{display:none!important;}#leftPanelAdAds,#leftPanelAd{display:none!important;}.ja-jp .panel_ads_shown #playerCommentPanel.has_panel_ads .section #commentDefault.commentTable, .ja-jp .panel_ads_shown #playerCommentPanel.has_panel_ads .section #commentLog.commentTable, .ja-jp .panel_ads_shown #playerCommentPanel.has_panel_ads .section #commentNgSetting.commentTable{bottom:5px!important;}#playerTabWrapper .player-tab-content{bottom:0!important;}#playerTabContainer .playerTabAds{display:none!important;}</style>');
  249. }
  250. }
  251. //コメント一覧非表示
  252. function comeCut(){
  253. if( GM_getValue("come_off")=="on"){
  254. $("head").append('<style type="text/css">#playerTabWrapper{display:none!important;}</style>');
  255. }
  256. }
  257. //動画上マーキー消去
  258. function marqueeCut(){
  259. if( GM_getValue("marquee_off")=="on"){
  260. $("head").append('<style type="text/css">#textMarquee{display:none!important;}#playerContainerSlideArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput.text_marquee,#playerContainerSlideArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:auto!important;}#playerContainerSlideArea.size_medium #playerContainer.full_with_browser.oldTypeCommentInput.text_marquee,#playerContainerSlideArea.size_normal #playerContainer.full_with_browser.oldTypeCommentInput.text_marquee{height:100%!important;}</style>');
  261. $("head").append('<style type="text/css">#playerAlignmentArea.size_medium #playerContainer.controll_panel #playerTabWrapper{height:462px!important;}#playerAlignmentArea.size_normal #playerContainer.controll_panel #playerTabWrapper{height:557px!important;}</style>');
  262. }
  263. }
  264. //フィードバックリンク消去
  265. function feedbackCut(){
  266. if( GM_getValue("feedback_off")=="on"){
  267. $("head").append('<style type="text/css">#feedbackLink{display:none!important;}</style>');
  268. }
  269. }
  270. //もっと見るにマイリスコメント?常時表示
  271. function infoPlus(){
  272. if( GM_getValue("infoplus")=="on"){
  273. $("head").append('<style type="text/css">#videoExplorer .column4 .video .balloon{display:block!important;height:auto!important;min-height:46px!important;box-shadow:none!important;padding-top:5px!important;line-height:1.4em!important;top:-80px!important;left:0!important;}#videoExplorer .column4 li.video{margin-top:70px!important;}#videoExplorer .column4 li .balloon ul.videoInformation{display:block!important;}#videoExplorer .column4 li .balloon .videoInformationOuter .videoInformation li{float:none!important;}.balloon .contentInfo{display:none!important;}.balloon .uadComments{font-size:13px!important;line-height:1.2em!important;}</style>');
  274. }
  275. }
  276.  
  277. //レビュー消去
  278. function reviewCut(){
  279. if( GM_getValue("review_off")=="on"){
  280. $("head").append('<style type="text/css">#videoReview{display:none!important;}</style>');
  281. }
  282. }
  283. //レビューを開閉式に
  284. function reviewtoggle(){
  285. if( GM_getValue("reviewtoggle_on")=="on"){
  286. var divdata = document.createElement("a");
  287. divdata.id="toggle3";
  288. divdata.innerHTML="Reviewの開閉";
  289. document.getElementById("playerNicoplayer").appendChild(divdata);
  290. $("#toggle3").click(function(){
  291. $("#videoReview").toggle();
  292. GM_setValue("reviewDisplay",$("#videoReview").css("display"));
  293. });
  294. if(GM_getValue("reviewDisplay")=="none"){
  295. $("#videoReview").hide();
  296. }
  297. $("head").append('<style type="text/css">#toggle3{float:right!important;margin-left:15px;cursor:pointer;}</style>');
  298. }
  299. }
  300. //市場消去
  301. function ichibaCut(){
  302. if( GM_getValue("ichiba_off")=="on"){
  303. $("head").append('<style type="text/css">#nicoIchiba{display:none!important;}</style>');
  304. }
  305. }
  306. //市場を開閉式に
  307. function ichibatoggle(){
  308. if( GM_getValue("ichibatoggle_on")=="on"){
  309. var divdata = document.createElement("a");
  310. divdata.id="toggle4";
  311. divdata.innerHTML="市場の開閉";
  312. document.getElementById("playerNicoplayer").appendChild(divdata);
  313. $("#toggle4").click(function(){
  314. $("#nicoIchiba").toggle();
  315. GM_setValue("ichibaDisplay",$("#nicoIchiba").css("display"));
  316. });
  317. if(GM_getValue("ichibaDisplay")=="none"){
  318. $("#nicoIchiba").hide();
  319. }
  320. $("head").append('<style type="text/css">#toggle4{float:left!important;margin-left:15px;cursor:pointer;}</style>');
  321. }
  322. }
  323. //マイリスボタン等常時表示
  324. function tvchanCut(){
  325. if( GM_getValue("tvchan_off")=="on"){
  326. $("head").append('<style type="text/css">.videoMenuToggle{display:none !important;}#videoHeader.menuOpened #videoHeaderDetail{margin-top:8px!important;}#videoMenuTopList li{display:block!important;}#videoTagContainer{padding-right:0!important;}#videoMenuTopList li.videoMenuList a.defmylistButton span {background-position: -44px -929px!important;}#videoMenuTopList li.videoMenuList a.mylistButton span{background-position: -2px -929px!important;}#videoMenuTopList li.videoMenuList a.uadButton span {background-position: -89px -929px!important;}#videoMenuTopList .videoMenuList.mymemoryButton .button {background-position: -397px -929px!important;}#videoMenuTopList #speedChecker.active .button {background-position: -353px -929px!important;}#videoMenuTopList #speedChecker .button {background-position: -353px -929px!important;}#videoMenuTopList li.videoMenuList a.downloadButton span{background-position: -177px -929px!important;}#videoMenuTopList li.videoMenuList a.userChannelButton span{background-position: -442px -929px!important;}#videoMenuTopList li.videoMenuList, #videoMenuTopList li.videoMenuListNicoru{font-size:0!important;height: 35px !important;width: 35px !important;}#videoMenuTopList li.videoMenuList a span , #videoMenuTopList li.videoMenuList .button{width:32px!important;height:32px!important;border-radius: 5px;}#videoMenuTopList li .nicoruButton .nicorub-link {width:32px!important;height:32px!important;border-radius: 5px;background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll -133px -929px transparent !important;}#videoMenuTopList li .nicoruButton .nicorub-link span.nicorub-icon {left: 6px!important;top: 6px!important;}#videoTagContainer.default{width:779px!important;min-width:779px!important;}#videoTagContainer{width:779px!important;min-width:779px!important;}#videoMenuTopList{padding-right:0!important;}#videoMenuWrapper{float:right!important;}#videoTagContainer{float:left!important;margin-top:0!important;height:auto!important;min-height:62px!important;}body.size_normal #videoTagContainer{width:898px!important;min-width:898px!important;}body.size_normal #videoTagContainer.dafault{width:898px!important;min-width:898px!important;}#videoMenuWrapper{overflow:visible!important;}#videoMenuTopList{margin-top:0!important;}</style>');
  327. if( GM_getValue("infocombine3")=="off"){
  328. $("head").append('<style type="text/css">#videoMenuTopList{width:175px!important;}#videoMenuWrapper{width:175px!important;height:60px!important;}</style>');
  329. }
  330. }
  331. }
  332. //コメント一覧の幅を広げる
  333. function komespread(){
  334. if( GM_getValue("spread_on")=="on"){
  335. $("head").append('<style type="text/css">#playerAlignmentArea.size_medium{width:1082px!important;}#playerAlignmentArea.size_normal{width:1307px!important;}#playerTabWrapper{float:right!important;position:relative!important;width:400px!important;}#playerNicoplayer{float:left!important;}#playerTabContainer .player-tab-header .nicommend{border-right: 1px solid #333333;}#commentDefault .commentTableContainer{width:386px!important;}#appliPanel{display:none!important;}.area-JP .panel_ads_shown #playerTabContainer.has_panel_ads .playerTabAds{display:none!important;}body.size_normal #videoHeader{width:1307px!important;}body.size_medium #videoHeader{width:1082px!important;}body.size_medium .outer{width:1082px!important;}body.size_normal .outer{width:1307px!important;}#commentLog div.commentTableContainer{width:100%!important;}#playerTabContainer .player-tab-header .playerTabItem{width:133px!important;}</style>');
  336. }
  337. }
  338. //プレイヤー下のプレイリストを消去
  339. function playlistCut(){
  340. if( GM_getValue("playlist_off")=="on"){
  341. $("head").append('<style type="text/css">#playlist{display:none!important;}</style>');
  342. }
  343. }
  344. //もっと見るバーを消去
  345. function mottoCut(){
  346. if( GM_getValue("motto_off")=="on"){
  347. $("head").append('<style type="text/css">#videoExplorerExpand{display:none!important;}</style>');
  348. }
  349. }
  350.  
  351. //市場の幅を広げる
  352. function wideichiba(){
  353. if( GM_getValue("wideichiba_on")=="on"){
  354.  
  355. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  356. $("head").append('<style type="text/css">body .main{width:100%!important;}#nicoIchiba{width:100%!important;}#ichibaMain{width:100%!important;margin:0 auto!important;}#bottomContentTabContainer #outline .outer .main #videoInfo{margin:0 auto;}#ichibaMainFooter{clear:both!important;}.rowJustify{clear:none!important;}body.size_medium #bottomContentTabContainer #outline .outer{width:1082px!important;}body.size_normal #bottomContentTabContainer #outline .outer{width:1307px!important;}#ichibaMain dl{height:400px!important;}</style>');
  357. if( GM_getValue("miniichiba_on")=="off"){
  358. $("head").append('<style type="text/css">body.size_medium #ichibaMain dl{margin: 0 18px 10px!important;}body.size_normal #ichibaMain dl{margin: 0 18px 10px!important;}</style>');
  359. }else{
  360. $("head").append('<style type="text/css">body.size_medium #ichibaMain dl{margin: 0 9px 10px!important;}body.size_normal #ichibaMain dl{margin: 0 14px 10px!important;}</style>');
  361. }
  362. }else{
  363. $("head").append('<style type="text/css">body.size_normal .outer,body.size_normal .main{width:1234px!important;}#nicoIchiba{width:100%!important;}#ichibaMain{width:100%!important;margin:0 auto!important;}#bottomContentTabContainer #outline .outer .main #videoInfo{margin:0 auto;}#ichibaMainFooter{clear:both!important;}.rowJustify{clear:none!important;}#ichibaMain #ichibaMainHeader{margin-right: 20px!important;}#bottomContentTabContainer #outline .outer .main #videoInfo{width:1008px;}body.size_normal #bottomContentTabContainer #outline .outer .main #videoInfo{width:1234px;}body .main{width:100%!important;}#ichibaMain dl{height:400px!important;}</style>');
  364. if( GM_getValue("miniichiba_on")=="off"){
  365. $("head").append('<style type="text/css">body.size_medium #ichibaMain dl{margin: 0 10px 10px!important;}body.size_normal #ichibaMain dl{margin: 0 12px 10px!important;}</style>');
  366. }else{
  367. $("head").append('<style type="text/css">body.size_medium #ichibaMain dl{margin: 0 16px 10px!important;}body.size_normal #ichibaMain dl{margin: 0 9px 10px!important;}</style>');
  368. }
  369. }
  370. }
  371. }
  372. //市場の商品画像等を小さく
  373. function miniichiba(){
  374. if( GM_getValue("miniichiba_on")=="on"){
  375. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  376. $("head").append('<style type="text/css">.ichiba_item img{width:130px!important;height:130px!important;}#ichibaMain .balloonUe{width:132px!important;}#ichibaMain .balloonUe a{background-size: 132px 40px !important;}#ichibaMain .balloonShita img{width:132px!important;}#ichibaMain dl{width:135px!important;overflow:hidden!important;}#ichibaMain .balloonUe{font-size:10px!important;}#ichibaMain .itemname{font-size:11px!important;}#ichibaMain dd.mobile a.uta{background-size: 73% auto!important;background-position: 0 -50px!important;}#ichibaMain dd.mobile a.kashi{background-size: 73% auto!important;background-position: 0 -208px!important;}#ichibaMain dd.mobile a.utafull{background-size: 73% auto!important;background-position: 0 -392px!important;}#ichibaMain .balloonUe a{padding:6px 4px 3px!important;}#ichibaMain dl.pia dd.pia{width:123px!important;}#ichibaMain .balloonUe{bottom:auto!important;}#ichibaMain .balloonUe a{height:30px!important;}</style>');
  377. }else{
  378. $("head").append('<style type="text/css">.ichiba_item img{width:130px!important;height:130px!important;}#ichibaMain .balloonUe{width:132px!important;}#ichibaMain .balloonUe a{background-size: 132px 40px !important;}#ichibaMain .balloonShita img{width:132px!important;}#ichibaMain dl{width:135px!important;overflow:hidden!important;}#ichibaMain .balloonUe{font-size:10px!important;}#ichibaMain .itemname{font-size:11px!important;}#ichibaMain dd.mobile a.uta{background-size: 73% auto!important;background-position: 0 -50px!important;}#ichibaMain dd.mobile a.kashi{background-size: 73% auto!important;background-position: 0 -208px!important;}#ichibaMain dd.mobile a.utafull{background-size: 73% auto!important;background-position: 0 -392px!important;}#ichibaMain .balloonUe a{padding:6px 4px 3px!important;}#ichibaMain dl.pia dd.pia{width:123px!important;}#ichibaMain .balloonUe{bottom:auto!important;}#ichibaMain .balloonUe a{height:30px!important;}</style>');
  379. }
  380. }
  381. }
  382. //下の動画情報と動画説明文を左右に分離
  383. function infoseparate(){
  384. if( GM_getValue("infoseparate_on")=="on"){
  385. var divinfo=document.createElement("div");
  386. divinfo.id="divinfo";
  387. document.body.appendChild(divinfo);
  388. $("#divinfo").appendTo("#videoInfo .videoMainInfoContainer");
  389. $("#videoInfo .parentVideoInfo,#videoInfoHead,#bottomVideoDetailInformation,#videoShareLinks").appendTo("#divinfo");
  390. $("head").append('<style type="text/css">body.size_medium #divinfo{float:right;width:430px;}#divinfo:after{clear:both;}body.size_normal #divinfo{float:right;width:480px;}body.size_normal #videoInfoHead, body.size_normal #videoShareLinks,body.size_normal .blogLinks,body.size_normal .parentVideoInfo, body.size_normal #bottomVideoDetailInformation, body.size_normal .videoEditMenu,body.size_normal #divinfo #userProfile,body.size_normal .videoInformation{width:470px!important;}#videoComment{float:left!important;}#videoInfo{border:none!important;}#videoComment h4{display:none!important;}#nicommendContainer,#nicoIchiba{clear:both!important;}body.size_medium #videoComment{width:540px!important;}body.size_normal #videoComment{width:640px!important;}#videoInfo #videoComment{padding-right:15px!important;border-right:1px solid #222222!important;}#videoInfoHead, #videoShareLinks,.blogLinks, .parentVideoInfo, #bottomVideoDetailInformation, .videoEditMenu,#divinfo #userProfile,.videoInformation{width:420px!important;}#nicoIchiba{float:left!important;}#videoInfo .videoMainInfoContainer{border-bottom:none!important;}#videoInfo .videoMainInfoContainer{display:block!important;}#topVideoInfo .videoDescriptionHeader,#videoDetailInformation .description{display:none!important;}#topVideoInfo .videoMainInfoContainer{display:none!important;}#videoDetailInformation,.arrow{display:none!important;}#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}#divinfo #userProfile .profile{width:250px!important;}#videoInfo .videoThumb,.videoInformation{float:none!important;}#outline .outer .main,#outline .outer .main #videoInfo{width:100%!important;}body.size_normal #outline .outer{width:1234px!important;}#videoInfo div.videoMainInfoContainer:after{clear:both;content:".";display:block;height:0;line-height:0;visibility:hidden;}#videoInfo div.videoMainInfoContainer{border-bottom:1px solid #222222!important;}</style>');
  391. if( GM_getValue("infocombine3")=="off"){
  392. $("#userProfile").appendTo("#divinfo");
  393. }
  394. if( GM_getValue("review_off")=="off"){
  395. $(".outer .sidebar").appendTo(".outer .main");
  396. }
  397. }
  398. }
  399. //ニコるを消す
  400. function nicorudel(){
  401. if( GM_getValue("nicorudel_on")=="on"){
  402. $("head").append('<style type="text/css">ul#videoHeaderTagList li{margin-right:17px!important;}.nicoruWrapper,#ichibaMain .nicoru,.cell span.nicoru-button,.nicorepoNicoru{display:none!important;}#videoShareLinks .socialLinkNicoru,.nicoruPia,.reviewNicoru,.comment-panel .nicoru-button{display:none!important;}</style>');
  403. }
  404. }
  405. //下の動画詳細情報を常時表示に
  406. function infonontoggle(){
  407. if( GM_getValue("infonontoggle_on")=="on"){
  408. $("head").append('<style type="text/css">.extraVideoTrigger .open, .extraVideoTrigger .close{display:none!important;}.supplementary{display:block!important;}#topVideoInfo .hiddenInfoTabContent{display:block!important;}</style>');
  409. }
  410. }
  411. //左寄せにする
  412. function hidariyose(){
  413. if( GM_getValue("left_on")=="on"){
  414. $("head").append('<style type="text/css">#videoHeader,#siteHeaderInner,.outer,#foot_inner{margin:0 0 0 15px!important;}#playerContainerSlideArea{margin-bottom:5px!important;}#playlist{clear:both!important;}#playerAlignmentArea{margin-left:15px!important;}#playerContainerSlideArea.size_small{margin-left:0!important;}#siteHeader #siteHeaderInner .siteHeaderMenuList{float:left!important;}body.full_with_browser #playerAlignmentArea{margin-left:0!important;}</style>');
  415. }
  416. }
  417. //ヘッダー消去
  418. function headcut(){
  419. if( GM_getValue("header_off")=="on"){
  420. $("#zero").appendTo("#content");
  421. $("head").append('<style type="text/css">#siteHeader{display:none!important;}body #content {padding-top:0px!important;}#zero{position:absolute!important;top:5px!important;right:10px!important;}</style>');
  422. document.getElementById("zero").innerHTML="設定";
  423. var menudivmenu = document.createElement("div");
  424. menudivmenu.innerHTML = "メニュー";
  425. menudivmenu.style.zIndex = 100;
  426. menudivmenu.id = "menudivmenu";
  427.  
  428. document.body.appendChild(menudivmenu);
  429. $("#menudivmenu").appendTo("#content");
  430.  
  431. $("#menudivmenu").hover(
  432. function () {
  433. $("#menudiv").css("visibility","visible");
  434. },
  435. function () {
  436. $("#menudiv").css("visibility","hidden");
  437. }
  438. );
  439.  
  440.  
  441. var menudiv = document.createElement("div");
  442. menudiv.id = "menudiv";
  443. menudiv.style.width = "170px";
  444. menudiv.style.height = "700px";
  445. menudiv.innerHTML = "";
  446. menudiv.style.backgroundColor = "white";
  447. menudiv.style.border = "1px solid #888";
  448. menudiv.style.position = "absolute";
  449. menudiv.style.top = "20px";
  450. menudiv.style.right = "0px";
  451. menudiv.style.zIndex = 100;
  452. menudiv.style.opacity = 1;
  453. /* menudiv.style.display =
  454. (GM_getValue("menudivDisplay") == "none") ? "none" : "";
  455. */
  456. document.body.appendChild(menudiv);
  457. $("#menudiv").appendTo("#menudivmenu");
  458.  
  459. /* menudivmenu.addEventListener("click",function(e){
  460. menudiv.style.display =
  461. (menudiv.style.display == "") ? "none" : "";
  462. GM_setValue("menudivDisplay",menudiv.style.display);
  463. },false);
  464. */
  465. $("head").append('<style type="text/css">#menudivmenu{position:absolute;top:25px;right:10px;cursor:pointer;color:#ff0099;height:50px;}#siteHeader,#siteHeaderUserIconContainer,#siteHeaderNotificationContainer,#siteHeaderRightMenu,#siteHeaderLeftMenu,#siteHeaderRightMenuUnfix{display:none!important;}#siteHeaderUserContainer{border:none!important;}#menudiv{font-size:15px;visibility:hidden;}#menudiv li{line-height:1.5em;}</style>');
  466.  
  467.  
  468. $(".siteHeaderGlovalNavigation li").appendTo("#menudiv");
  469. $("#siteHeaderLeftMenuContainer li").appendTo("#menudiv");
  470. $(".siteHeaderMenuList li").appendTo("#menudiv");
  471. $("#siteHeaderRightMenuContainer li").appendTo("#menudiv");
  472.  
  473.  
  474.  
  475. if( GM_getValue("set8_on")=="on"){
  476. $("#zero").appendTo("body");
  477. $("head").append('<style type="text/css">#zero{right:80px!important;z-index:9999999;}#menudivmenu{right:80px;}</style>');
  478. }
  479. }
  480. }
  481. //フッター消去
  482. function footcut(){
  483. if( GM_getValue("footer_off")=="on"){
  484. $("head").append('<style type="text/css">#footer{display:none!important;}body,#content{background-color:#F3F3F3!important;}.outer{margin-bottom:0!important;}</style>');
  485. }
  486. }
  487. //旧検索をヘッダーに追加
  488. function oldsearch(){
  489. if( GM_getValue("oldsearch_on")=="on"){
  490. $("head").append('<style type="text/css">#bar_search{width:100px;height: 24px;}#head_search{margin-top:5px!important;float:left;}#selectsearch{background-color:#525252!important;border:none;height:26px;color:#FFFFFF;}#head_search input#bar_search{background-color:#525252!important;border:none;border-right:1px solid #474747!important;height:26px;color:#FFFFFF;}#submitbutton{background-image:url("http://uni.res.nimg.jp/img/zero_index/theme/default/icon.png");height:26px;width:30px;border:none;}div#siteHeader div#siteHeaderInner div.searchText div.clear-button{display:none!important;}</style>');
  491.  
  492. $("#siteHeaderInner").append("<div id='head_search'><form id='head_search_form' method='get' target='_blank' action='http://www.nicovideo.jp/search/'><select id='selectsearch' name='selectsearch'><option value='word'>word</option><option value='tag'>tag</option></select><input id='bar_search' name='s' value='' type='text'><input name='submit' id='submitbutton' type='submit' value=''></form></div>");
  493.  
  494. $("#selectsearch").change(function() {
  495. if($("#selectsearch").val()=="word"){
  496. $("#head_search_form").attr("action","http://www.nicovideo.jp/search/")
  497. }else if($("#selectsearch").val()=="tag"){
  498. $("#head_search_form").attr("action","http://www.nicovideo.jp/tag/")
  499. }
  500. });
  501. }
  502. }
  503. //プレイリストを開閉式に
  504. function playlisttoggle(){
  505. if( GM_getValue("playlisttoggle_on")=="on"){
  506. var divdata = document.createElement("a");
  507. divdata.id="toggle";
  508. divdata.innerHTML="Playlistの開閉";
  509. document.getElementById("playerNicoplayer").appendChild(divdata);
  510. $("#toggle").click(function(){
  511. $("#playlist").toggle();
  512. GM_setValue("playlistDisplay",$("#playlist").css("display"));
  513. });
  514. if(GM_getValue("playlistDisplay")=="none"){
  515. $("#playlist").hide();
  516. }
  517. $("head").append('<style type="text/css">#toggle{float:left!important;cursor:pointer;}</style>');
  518. }
  519. }
  520. //コメント一覧を開閉式に
  521. function komepaneltoggle(){
  522. if( GM_getValue("komepaneltoggle_on")=="on"){
  523. var divdata = document.createElement("a");
  524. divdata.id="toggle2";
  525. divdata.innerHTML="コメント一覧の開閉";
  526. document.getElementById("playerNicoplayer").appendChild(divdata);
  527. $("#toggle2").click(function(){
  528. $("#playerTabWrapper").toggle();
  529. GM_setValue("commentpanelDisplay",$("#playerTabWrapper").css("display"));
  530. });
  531. if(GM_getValue("commentpanelDisplay")=="none"){
  532. $("#playerTabWrapper").hide();
  533. }
  534. $("head").append('<style type="text/css">#toggle2{float:right!important;margin-left:15px;cursor:pointer;}</style>');
  535. }
  536. }
  537. //再生数等を上に移動3
  538. function infoCombine3(){
  539. if( GM_getValue("infocombine3")=="on"){
  540. var divimg=document.createElement("div");
  541. divimg.id="divimg";
  542. document.body.appendChild(divimg);
  543. $("#videoThumbnailImage").css("height","100px").appendTo("#divimg");
  544. $("#divimg").insertBefore(".videoDetailExpand h2");
  545. $("#videoInfoHead p:first-child").appendTo(".videoDetailExpand h2").addClass("toko");
  546. $(".videoHeaderTitle").appendTo(".videoDetailExpand h2");
  547. $("#videoStats .ranking").appendTo(".toko");
  548. $(".dicIcon").appendTo(".videoDetailExpand h2").css({"color":"#00BFFF","cursor":"pointer"});
  549. $("#userProfile,#videoInfo .videoMainInfoContainer .ch_prof").appendTo("#videoHeaderDetail");
  550. $(".usericon").css({"width":"100px","height":"100px","float":"left"});
  551. $("#videoStats").appendTo("#videoHeaderDetail");
  552.  
  553.  
  554. $("head").append('<style type="text/css">#divimg{float:left;}#videoTagContainer{float:left!important;margin-top:0!important;}#videoStats{float:right!important;height:44px!important;}#videoTagContainer .tagInner #tagEditContainer{padding-top:0!important;}#videoTagContainer .tagInner #tagEditContainer .note{font-size:12px!important;}#videoTagContainer .tagInner #tagEditContainer .tagAddButton input{height:18px!important;}#videoHeader{padding:0!important;}body #videoHeaderDetail{width:1008px!important;}body.size_normal #videoHeaderDetail{width:1234px!important;}#videoHeaderDetail h2{font-size:100%!important;float:left;margin-right:0!important;}.toko{font-size:12px!important;font-weight:normal!important;line-height:1.3!important;}.videoHeaderTitle{font-size:20px!important;}#videoTagContainer .tagInner #videoHeaderTagList li{font-size:12px!important;height:1.2em!important;}.ranking{color:#666666!important;}body.size_medium .videoDetailExpand h2{padding-left:12px!important;width:440px!important;min-height:100px!important;}body.size_normal .videoDetailExpand h2{padding-left:12px!important;width:640px!important;height:100px!important;}.videoDetailExpand{width:584px!important;float:left!important;}#videoMenuTopList{right:0!important;}#videoDetailInformation{clear:both!important;}p.dicIcon span.dic.enable{background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll 0 -3350px rgba(0, 0, 0, 0);}p.dicIcon span.dic.disable{background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll 0 -3377px rgba(0, 0, 0, 0);}p.dicIcon{display:inline-block!important;}p.dicIcon span.dic{display:inline-block!important;text-indent:-9999px!important;width:17px!important;height:17px!important;}#videoMenuTopList{padding-right:0!important;}.arrow{display:none!important;}#videoHeader.menuOpened .videoMenuToggle{right:-70px!important;}#videoHeaderMenu{margin-top:0!important;}#userProfile{padding-top:4px!important;}#videoHeader.menuOpened #videoHeaderDetail{margin-top:8px!important;}#videoHeaderDetail .videoDetailExpand{cursor:auto!important;}span.dicIcon{display:none!important;}#videoMenuTopList li.videoMenuList, #videoMenuTopList li.videoMenuListNicoru{font-size:0!important;height: 35px !important;width: 35px !important;}#videoMenuTopList li.videoMenuList a span , #videoMenuTopList li.videoMenuList .button{width:32px!important;height:32px!important;border-radius: 5px;}#videoMenuTopList li .nicoruButton .nicorub-link {width:32px!important;height:32px!important;border-radius: 5px;background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll -133px -929px transparent !important;}#videoMenuTopList li .nicoruButton .nicorub-link span.nicorub-icon {left: 6px!important;top: 6px!important;}#userProfile{float:right!important;margin-bottom:4px!important;}.userIconContainer{width:110px!important;}.profile{margin-top:0px!important;}#siteHeaderInner .searchContainer .searchText{height:36px;padding:5px;margin-top:0;}#siteHeaderInner .searchContainer{display:block!important;position:relative;width:180px;float:left;}#siteHeader{height:36px!important;}#userProfile .profile{font-size:14px!important;}.ch_prof{float: right !important;margin:0!important;background: transparent!important;padding:4px 0!important;}.channel .ch_prof a.symbol{width:90px!important;}.channel .ch_prof a.symbol img{width:100px!important;height:100px!important;box-shadow:none!important;}.channel .ch_prof a.symbol:hover img{box-shadow:none!important;}.channel .ch_prof .info{padding:0 0 0 110px!important;}.channel .ch_prof h6{font-size:13px!important;}.ch_prof div.info p.bread{margin:0!important;}.channel .channelFavoriteLink{margin-bottom:0!important;}#userProfile .profile h4 a{padding-left:0!important;}#topVideoInfo div.userProfile{display:none!important;}#topVideoInfo div.videoMainInfoContainer .videoThumb,#topVideoInfo div.videoMainInfoContainer .infoHeadOuter,#topVideoInfo div.videoMainInfoContainer .videoInformation{display:none!important;}.userIconContainer a img{border:none!important;}.size_normal .videoDetailExpand{width:800px!important;}.videoMenuToggle{display:none !important;}#videoHeader.menuOpened #videoHeaderDetail{margin-top:8px!important;}#videoMenuTopList li{display:block!important;}#videoTagContainer{padding-right:0!important;}#videoMenuTopList li.videoMenuList a.defmylistButton span {background-position: -44px -929px!important;}#videoMenuTopList li.videoMenuList a.mylistButton span{background-position: -2px -929px!important;}#videoMenuTopList li.videoMenuList a.uadButton span {background-position: -89px -929px!important;}#videoMenuTopList .videoMenuList.mymemoryButton .button {background-position: -397px -929px!important;}#videoMenuTopList #speedChecker.active .button {background-position: -353px -929px!important;}#videoMenuTopList li.videoMenuList a.userChannelButton span{background-position: -442px -929px!important;}#videoMenuTopList #speedChecker .button {background-position: -353px -929px!important;}#videoMenuTopList li.videoMenuList a.downloadButton span{background-position: -177px -929px!important;}#videoMenuTopList li.videoMenuList, #videoMenuTopList li.videoMenuListNicoru{font-size:0!important;height: 35px !important;width: 35px !important;}#videoMenuTopList li.videoMenuList a span , #videoMenuTopList li.videoMenuList .button{width:32px!important;height:32px!important;border-radius: 5px;}#videoMenuTopList li .nicoruButton .nicorub-link {width:32px!important;height:32px!important;border-radius: 5px;background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll -133px -929px transparent !important;}#videoMenuTopList li .nicoruButton .nicorub-link span.nicorub-icon {left: 6px!important;top: 6px!important;}#videoTagContainer.default{width:592px!important;min-width:592px!important;}#videoTagContainer{width:592px!important;min-width:592px!important;}#videoMenuTopList{padding-right:0!important;}#videoTagContainer{float:left!important;margin-top:0!important;height:auto!important;min-height:50px!important;}body.size_normal #videoTagContainer{width:808px!important;min-width:808px!important;}body.size_normal #videoTagContainer.dafault{width:808px!important;min-width:808px!important;}body.size_medium #videoMenuWrapper{left:592px!important;position:absolute!important;width:80px!important;}body.size_normal #videoMenuWrapper{left:818px!important;position:absolute!important;width:80px!important;}#topVideoInfo div.ch_prof{display:none!important;}#videoMenuTopList{margin-top:0!important;}#videoMenuWrapper{overflow:visible!important;position:absolute!important;left:592px!important;width:70px!important;}#videoMenuTopList{width:70px!important;}#videoTagContainer .tagInner #videoHeaderTagList{padding-left: 80px!important;}#videoTagContainer .tagInner #videoHeaderTagList .toggleTagEdit{height:auto!important;width:60px!important;padding:4px 4px 3px 4px!important;}#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}#videoStats *{font-size:15px!important;font-weight:bold;}#videoStats span{padding-right:20px;float:right;}#videoStats{line-height:1.5;border:1px solid #333333;}#videoStats li{float:left!important;color:#555555!important;padding-left:5px;}#siteHeaderInner .searchContainer .searchText input{width:115px!important;}#siteHeaderInner .searchContainer .searchText{width:180px!important;background-color:#272727!important;border:none!important;}#siteHeaderInner .searchContainer .searchText a,#siteHeaderInner .searchContainer .searchText button,#siteHeaderInner .searchContainer .searchText input{background-color:#474747!important;color:#FFFFFF!important;border:none!important;}.searchContainer .searchText button{background:url("http://uni.res.nimg.jp/img/zero_index/theme/default/icon.png")!important;border:none!important;width:30px!important;}.searchContainer .searchText a.searchKeywordIcon{background:url("http://uni.res.nimg.jp/img/zero_my/search.png");background-position: -45px -28px;}.searchContainer .searchText a.searchTagIcon{background:url("http://uni.res.nimg.jp/img/zero_my/search.png");background-position: -149px -29px!important;}#siteHeaderInner .searchContainer .searchText a.searchKeywordIcon{width:23px!important;}.searchContainer .searchOption ul li.searchKeyword span{background:url("http://uni.res.nimg.jp/img/zero_my/search.png");background-position: -45px -28px;width:20px!important;}.searchContainer .searchOption ul li.searchTag span{background:url("http://uni.res.nimg.jp/img/zero_my/search.png");background-position: -149px -29px!important;width:20px!important;}body #content {margin-top:8px!important;}div#siteHeader div#siteHeaderInner div.searchText div.clear-button{display:none!important;}div.ch_breadcrumb{display:none!important;}#videoHeaderMenu .searchContainer{display:none!important;}</style>');
  555. $("#videoTitle").remove();
  556. // $("#videoHeaderMenu .searchContainer").appendTo("#siteHeaderInner");
  557.  
  558. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  559. $("head").append('<style type="text/css">body #videoHeaderDetail{width:1082px!important;}body.size_normal #videoHeaderDetail{width:1307px!important;}#userProfile{width:400px!important;}.profile{width:280px!important;}#videoStats{width:398px!important;}#videoStats li{width:190px!important;}.ch_prof{width:400px!important;}</style>');
  560. }else{
  561. $("head").append('<style type="text/css">body #videoHeaderDetail{width:1008px!important;}body.size_normal #videoHeaderDetail{width:1234px!important;}#userProfile{width:326px!important;}.profile{width:192px!important;}#videoStats{width:324px!important;}#videoStats li{width:150px!important;}.ch_prof{width:324px!important;}</style>');
  562. }
  563.  
  564. }
  565. }
  566.  
  567. //動画情報をコメントパネルに
  568. function infotocomepanel(){
  569. if( GM_getValue("infotocomepanel_on")=="on"){
  570. $("head").append('<style type="text/css">#playerAlignmentArea.size_medium{width:1082px!important;}#playerAlignmentArea.size_normal{width:1307px!important;}#playerTabWrapper{float:right!important;position:relative!important;width:400px!important;}#playerNicoplayer{float:left!important;}#commentDefault .commentTableContainer{width:100%!important;}#appliPanel{display:none!important;}.area-JP .panel_ads_shown #playerTabContainer.has_panel_ads .playerTabAds{display:none!important;}#kirikae1{line-height:3em;float:right;cursor:pointer;position:relative;z-index:999999;text-align:center!important;}#videoComment h4{display:none!important;}#hiddenUserProfile,.mymemory,div.videoInformation span.community{display:none;}body.size_medium #videoInfo{border:none!important;text-align:left!important;border-bottom:none!important;padding-top:10px!important;height:390px!important;overflow-y:scroll!important;overflow-x:hidden!important;}body.size_normal #videoInfo{border:none!important;text-align:left!important;border-bottom:none!important;padding-top:10px!important;height:490px!important;overflow-y:scroll!important;}#bottomVideoDetailInformation .triger {background: transparent!important;}#videoInfoHead{margin:0!important;}#videoInfo .videoMainInfoContainer{border-bottom:none!important;}#videoInfo .videoEditMenu{margin:0!important;padding:0!important;}#videoInfoHead,#videoShareLinks,#bottomVideoDetailInformation,.videoDescription,.parentVideoInfo,.videoEditMenu,.blogLinks{margin-left:5px!important;width:340px!important;}#appliPanel{height:0!important;}div#topVideoInfo.videoInfo p.videoDescription{width:auto!important;}span.dicIcon{display:none!important;}#topVideoInfo .videoDescriptionHeader,#videoDetailInformation .description{display:none!important;}#topVideoInfo .videoMainInfoContainer{display:none!important;}#videoDetailInformation,.arrow{display:none!important;}#kirikae1{-moz-box-sizing: border-box;background-color: #CCCCCC;border-left: 1px solid #333333;color: #666666;cursor: pointer;font-weight: bold;border-bottom: 1px solid #000000;height: 52px;width: 121px;}#kirikae1.active{background-color: #F4F4F4;color: #333333;cursor: default;border-bottom: medium none;height: 42px;}#bottomVideoDetailInformation .trigger{background:transparent!important;}#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}body.size_normal #videoHeader{width:1307px!important;}body.size_medium #videoHeader{width:1082px!important;}#videoComment{border-bottom: 1px solid #CCCCCC !important;margin-left:5px!important;width:360px!important;padding-bottom:15px!important;margin-bottom:0!important;}#videoComment .videoDescription{line-height:1.5em!important;}#playerTabContainer .player-tab-content{top:45px!important;}#commentLog div.commentTableContainer{width:100%!important;}#commentToolTip{width:200px!important;}span.message{display:block!important;white-space:normal!important;word-wrap:break-word!important;}.ch_prof{width:400px !important;}#videoInfoHead div.infoHeadOuter p{width:100%!important;}</style>');
  571.  
  572. $("#videoInfo").appendTo("#playerTabContainer div.player-tab-content");
  573. $("#bottomVideoDetailInformation").appendTo("#videoInfo .videoMainInfoContainer");
  574. $("#videoInfo .parentVideoInfo").appendTo("#videoInfo .videoMainInfoContainer");
  575. $("#videoShareLinks").appendTo("#videoInfo .videoMainInfoContainer");
  576.  
  577. var kirikae1=document.createElement("div");
  578. kirikae1.id="kirikae1";
  579. kirikae1.innerHTML="動画説明文";
  580. document.body.appendChild(kirikae1);
  581. $("#kirikae1").appendTo("#playerTabContainer thead.player-tab-header tr");
  582. $("#videoInfo").css("display","none");
  583.  
  584. $("#kirikae1").click(function() {
  585. $("#playerTabContainer .player-tab-content .comment,#playerTabContainer .player-tab-content .ng").removeClass("active");
  586. $("#playerTabContainer .player-tab-header .comment,#playerTabContainer .player-tab-header .ng").removeClass("active");
  587. $("#videoInfo").css("display","block");
  588. $("#kirikae1").addClass("active");
  589. });
  590.  
  591. $("#playerTabContainer .player-tab-header th.comment").click(function() {
  592. $("#playerTabContainer .player-tab-header .ng,#kirikae1").removeClass("active");
  593. $("#playerTabContainer .player-tab-content .ng").removeClass("active");
  594. $("#videoInfo").css("display","none");
  595. $("#playerTabContainer .player-tab-content .comment,#playerTabContainer .player-tab-header .comment").addClass("active");
  596. });
  597.  
  598. $("#playerTabContainer .player-tab-header th.ng").click(function() {
  599. $("#playerTabContainer .player-tab-header .comment,#kirikae1").removeClass("active");
  600. $("#playerTabContainer .player-tab-content .comment").removeClass("active");
  601. $("#videoInfo").css("display","none");
  602. $("#playerTabContainer .player-tab-header .ng,#playerTabContainer .player-tab-content .ng").addClass("active");
  603. });
  604.  
  605.  
  606. var timerID = setInterval(
  607. function(){
  608. if(document.getElementById("commentDefault").getElementsByClassName("commentTableContainerInner")[0].style.height!="0px"){
  609.  
  610. setTimeout(function(){
  611. $("#playerTabContainer .player-tab-content .comment,#playerTabContainer .player-tab-content .ng,#playerTabContainer .player-tab-content .nicommend").removeClass("active");
  612. $("#playerTabContainer .player-tab-header .comment,#playerTabContainer .player-tab-header .ng,#playerTabContainer .player-tab-header .nicommend").removeClass("active");
  613. $("#videoInfo").css("display","block");
  614. $("#kirikae1").addClass("active");
  615. clearInterval(timerID);
  616. timerID = null;
  617. },2000);
  618. }
  619. },500);
  620.  
  621.  
  622. if( GM_getValue("infocombine3")=="off"){
  623. $("head").append('<style type="text/css">#videoStats{clear:both!important;margin-bottom:10px!important;}#videoStats li{margin-top:10px!important;}p.dicIcon span.dic.enable{background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll 0 -3350px rgba(0, 0, 0, 0);}p.dicIcon span.dic.disable{background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-s4bdca239f7.png") no-repeat scroll 0 -3377px rgba(0, 0, 0, 0);}p.dicIcon{display:inline-block!important;}p.dicIcon span.dic{display:inline-block!important;text-indent:-9999px!important;width:17px!important;height:17px!important;}#userProfile{margin-left:10px!important;width:360px!important;}#videoInfo #userProfile .profile{width:200px!important;}</style>');
  624. }
  625.  
  626. if( GM_getValue("infocombine3")=="off" && GM_getValue("motto_off")=="on" ){
  627. $("head").append('<style type="text/css">#videoHeader #videoHeaderDetail h2{display:none!important;}#videoHeaderDetail .videoDetailExpand{height:0!important;}</style>');
  628. }
  629. }
  630. }
  631.  
  632.  
  633.  
  634.  
  635. function labelElement(str,che){
  636. var k = document.createElement("label");
  637. k.innerHTML = str;
  638. k.style.cursor = "hand";
  639. k.setAttribute("for",che);
  640. k.style.lineHeight = "1.5em";
  641. k.style.fontSize = "16px";
  642. return k;
  643. }
  644.  
  645. function interface_kidoku(){
  646. var prefDiv = document.createElement("div");
  647. prefDiv.style.width = "500px";
  648. prefDiv.style.height = "400px";
  649. prefDiv.style.overflowY = "scroll";
  650. prefDiv.innerHTML = "カスタマイズ設定" + "<br>";
  651. prefDiv.style.backgroundColor = "#ccccff";
  652. prefDiv.style.color = "black";
  653. prefDiv.style.border = "1px solid #888";
  654. prefDiv.style.position = "fixed";
  655. prefDiv.style.bottom = "0px";
  656. prefDiv.style.right = "0px";
  657. prefDiv.style.margin = "0 0 0 0";
  658. prefDiv.style.zIndex = 999999;
  659. prefDiv.id = "prefDiv";
  660. document.body.appendChild(prefDiv);
  661.  
  662. var memo=document.createElement("div");
  663. memo.setAttribute("class", "bunrui");
  664. memo.innerHTML = "【併用時にレイアウトが崩れやすい項目】" ;
  665. var memo2=document.createElement("div");
  666. memo2.setAttribute("class", "bunrui");
  667. memo2.innerHTML = "【まずはわかりやすい設定項目】";
  668. var memo3=document.createElement("div");
  669. memo3.setAttribute("class", "bunrui");
  670. memo3.innerHTML = "【若干細かい設定1】";
  671. var memo4=document.createElement("div");
  672. memo4.setAttribute("class", "bunrui");
  673. memo4.innerHTML = "【特殊設定項目】";
  674. var memo5=document.createElement("div");
  675. memo5.setAttribute("class", "bunrui");
  676. memo5.innerHTML = "【オススメ設定項目】";
  677. var memo6=document.createElement("div");
  678. memo6.setAttribute("class", "bunrui");
  679. memo6.innerHTML = "【若干細かい設定2】";
  680. $("head").append('<style type="text/css">div.bunrui{font-size:20px;padding:5px 0 5px 0;margin:20px 0 10px 0;background-color:#FFFFFF;border-bottom:1px solid #CCC;}</style>');
  681. var tojiru=document.createElement("div");
  682. tojiru.innerHTML = "閉じる";
  683. tojiru.style.position = "absolute";
  684. tojiru.style.top = "0px";
  685. tojiru.style.right = "5px";
  686. tojiru.style.color="#00BFFF";
  687. tojiru.style.cursor = "pointer";
  688. tojiru.id="tojiru";
  689.  
  690. var reset00=document.createElement("div");
  691. reset00.innerHTML = "リセット";
  692. reset00.style.position = "absolute";
  693. reset00.style.right = "5px";
  694. reset00.style.color="#00BFFF";
  695. reset00.style.cursor = "pointer";
  696. reset00.id="reset00";
  697. reset00.addEventListener("click",function(e){
  698.  
  699. var settings = document.getElementById("prefDiv").getElementsByTagName("input");
  700. for (var i=0;i<settings.length;i++){
  701. settings[i].checked=false;
  702. }
  703. for (var i=0;i<links.length;i++){
  704. GM_setValue(links[i].name,"off");
  705. }
  706.  
  707. },false);
  708.  
  709.  
  710. var linkdelsustitle = document.createElement("input");
  711. linkdelsustitle.name = "delsustitle";
  712. linkdelsustitle.caption = "上の動画タイトル消去";
  713. var linkdelminidic = document.createElement("input");
  714. linkdelminidic.name = "delminidic";
  715. linkdelminidic.caption = "もっと見るで簡易大百科を消去";
  716. var linkdeluserad = document.createElement("input");
  717. linkdeluserad.name = "deluserad";
  718. linkdeluserad.caption = "もっと見るでユーザー広告を消去";
  719. var linkbackblack = document.createElement("input");
  720. linkbackblack.name = "backblack";
  721. linkbackblack.caption = "背景黒モード(※適当です)";
  722. var linktagtoggle = document.createElement("input");
  723. linktagtoggle.name = "tagtoggle";
  724. linktagtoggle.caption = "タグを開閉式に(若干のネタバレ回避)";
  725. var linkwalliconoff = document.createElement("input");
  726. linkwalliconoff.name = "walliconoff";
  727. linkwalliconoff.caption = "ウォールのアイコンだけを消去";
  728. var linkdelsearchbox = document.createElement("input");
  729. linkdelsearchbox.name = "delsearchbox";
  730. linkdelsearchbox.caption = "検索ボックスを消去";
  731. var linktagpinon = document.createElement("input");
  732. linktagpinon.name = "tagpinon";
  733. linktagpinon.caption = "タグのピンを常時表示(ピン留め後は不要な設定。プレイヤーがグラグラ動く人はピン留めをお願いします。)";
  734. var linkwalloff = document.createElement("input");
  735. linkwalloff.name = "walloff";
  736. linkwalloff.caption = "ウォールを消去";
  737. var linkdeltagpin = document.createElement("input");
  738. linkdeltagpin.name = "deltagpin";
  739. linkdeltagpin.caption = "タグのピンを消去(ピン留め後ピンを解除しない人で、ピンが邪魔な人向け)";
  740. var linkbigwatch = document.createElement("input");
  741. linkbigwatch.name = "bigwatch";
  742. linkbigwatch.caption = "プレイヤーサイズを大きく(大画面時のみ)";
  743. var linkdelbread = document.createElement("input");
  744. linkdelbread.name = "delbread";
  745. linkdelbread.caption = "パンくずリスト消去(コミュ動画用?)";
  746. var linkdelsocial = document.createElement("input");
  747. linkdelsocial.name = "delsocial";
  748. linkdelsocial.caption = "ツイートボタン等消去";
  749. var linkdelshosai = document.createElement("input");
  750. linkdelshosai.name = "delshosai";
  751. linkdelshosai.caption = "動画詳細情報消去";
  752. var linkdelbuttons = document.createElement("input");
  753. linkdelbuttons.name = "delbuttons";
  754. linkdelbuttons.caption = "マイリス・とりあえずマイリスボタン以外消去";
  755. var linktweetinheader = document.createElement("input");
  756. linktweetinheader.name = "tweetinheader";
  757. linktweetinheader.caption = "ツイートボタンをヘッダーに移動";
  758. var linkctree = document.createElement("input");
  759. linkctree.name = "ctree_off";
  760. linkctree.caption = "コンテンツツリー消去";
  761. var linkshortinfo = document.createElement("input");
  762. linkshortinfo.name = "shortinfo_off";
  763. linkshortinfo.caption = "簡易説明文・動画情報開閉ボタン消去";
  764. var linkdeljosdes = document.createElement("input");
  765. linkdeljosdes.name = "deljosdes";
  766. linkdeljosdes.caption = "下の動画説明文・情報を消去(上の開閉で読む人向け)";
  767. var linkSen2 = document.createElement("input");
  768. linkSen2.name = "senden2";
  769. linkSen2.caption = "広告を消去";
  770. var linkcome = document.createElement("input");
  771. linkcome.name = "come_off";
  772. linkcome.caption = "コメント一覧パネルを消去";
  773. var linkmarq = document.createElement("input");
  774. linkmarq.name = "marquee_off";
  775. linkmarq.caption = "動画上のニュースを消去";
  776. var linkfeed = document.createElement("input");
  777. linkfeed.name = "feedback_off";
  778. linkfeed.caption = "フィードバックリンクを消去";
  779. var linkinfo = document.createElement("input");
  780. linkinfo.name = "infoplus";
  781. linkinfo.caption = "もっと見るでマイリスコメント?を常時表示";
  782. var linkreview = document.createElement("input");
  783. linkreview.name = "review_off";
  784. linkreview.caption = "レビュー欄消去";
  785. var linkichiba = document.createElement("input");
  786. linkichiba.name = "ichiba_off";
  787. linkichiba.caption = "市場消去";
  788. var linktv = document.createElement("input");
  789. linktv.name = "tvchan_off";
  790. linktv.caption = "マイリスボタン常時表示";
  791. var linkspread = document.createElement("input");
  792. linkspread.name = "spread_on";
  793. linkspread.caption = "コメント一覧の幅を広げる";
  794. var linkleft = document.createElement("input");
  795. linkleft.name = "left_on";
  796. linkleft.caption = "左寄せにする";
  797. var linklist = document.createElement("input");
  798. linklist.name = "playlist_off";
  799. linklist.caption = "プレイリストを消去";
  800. var linkmotto = document.createElement("input");
  801. linkmotto.name = "motto_off";
  802. linkmotto.caption = "もっと見るバーを消去";
  803. var linkwideichiba = document.createElement("input");
  804. linkwideichiba.name = "wideichiba_on";
  805. linkwideichiba.caption = "市場の幅を広く(要レビュー消去)";
  806. var linknicorudel = document.createElement("input");
  807. linknicorudel.name = "nicorudel_on";
  808. linknicorudel.caption = "ニコるを消去";
  809. var linkinfonontoggle = document.createElement("input");
  810. linkinfonontoggle.name = "infonontoggle_on";
  811. linkinfonontoggle.caption = "動画詳細情報を常時表示に";
  812. var linkheadcut = document.createElement("input");
  813. linkheadcut.name = "header_off";
  814. linkheadcut.caption = "ヘッダー消去";
  815. var linkfootcut = document.createElement("input");
  816. linkfootcut.name = "footer_off";
  817. linkfootcut.caption = "フッター消去";
  818. var linkinfo33 = document.createElement("input");
  819. linkinfo33.name = "infocombine3";
  820. linkinfo33.caption = "サムネ・再生数・投稿者サムネ等を上に移動(マイリスボタンも常時表示に) / 検索ボックス消去";
  821. var linkoldsearch = document.createElement("input");
  822. linkoldsearch.name = "oldsearch_on";
  823. linkoldsearch.caption = "旧検索をヘッダーに追加";
  824. var linkplaylisttoggle = document.createElement("input");
  825. linkplaylisttoggle.name = "playlisttoggle_on";
  826. linkplaylisttoggle.caption = "プレイリストを開閉式に";
  827. var linkminiichiba = document.createElement("input");
  828. linkminiichiba.name = "miniichiba_on";
  829. linkminiichiba.caption = "市場の商品画像等を小さく";
  830. var linkkomepaneltoggle = document.createElement("input");
  831. linkkomepaneltoggle.name = "komepaneltoggle_on";
  832. linkkomepaneltoggle.caption = "コメント一覧を開閉式に";
  833. var linkreviewtoggle = document.createElement("input");
  834. linkreviewtoggle.name = "reviewtoggle_on";
  835. linkreviewtoggle.caption = "レビューを開閉式に";
  836. var linkichibatoggle = document.createElement("input");
  837. linkichibatoggle.name = "ichibatoggle_on";
  838. linkichibatoggle.caption = "市場を開閉式に";
  839. var linkdelkomesocial = document.createElement("input");
  840. linkdelkomesocial.name = "delkomesocial";
  841. linkdelkomesocial.caption = "コメント欄のソーシャルボタンを消す";
  842. var linktargetblank = document.createElement("input");
  843. linktargetblank.name = "targetblank";
  844. linktargetblank.caption = "タグクリック等時に別タブで開く";
  845. var linktargetself = document.createElement("input");
  846. linktargetself.name = "targetself";
  847. linktargetself.caption = "タグクリック等時に同じタブで開く";
  848. var linkinfoseparate = document.createElement("input");
  849. linkinfoseparate.name = "infoseparate_on";
  850. linkinfoseparate.type = "checkbox";
  851. linkinfoseparate.caption = "下の動画情報と動画説明文を左右に分離(上の説明文非表示)";
  852. linkinfoseparate.defaultValue = "off";
  853. var linkinfotocomepanel = document.createElement("input");
  854. linkinfotocomepanel.name = "infotocomepanel_on";
  855. linkinfotocomepanel.caption = "動画情報をコメント一覧に(※コメント一覧の幅も広くなります/※上の説明文を開かないでください)";
  856.  
  857. var form = document.createElement("form");
  858.  
  859. var links =
  860. [linkshortinfo,linkSen2,linkcome,linkmarq,linkfeed,linkinfo,linkreview,linkichiba,linktv,linkspread,linkleft,linklist,linkmotto,linkwideichiba,linknicorudel,linkinfonontoggle,linkheadcut,linkfootcut,linkoldsearch,linkplaylisttoggle,linkinfo33,linkminiichiba,linkkomepaneltoggle,linkreviewtoggle,linkichibatoggle,linkinfotocomepanel,linkdeljosdes,linkctree,linktweetinheader,linkdelbuttons,linkdelshosai,linkdelsocial,linkdelbread,linkbigwatch,linkdeltagpin,linkwalloff,linktagpinon,linkdelsearchbox,linkwalliconoff,linktagtoggle,linkbackblack,linkdeluserad,linkdelminidic,linkdelkomesocial,linktargetblank,linktargetself,linkdelsustitle,linkinfoseparate];
  861.  
  862. for (var i=0;i<links.length;i++){
  863. links[i].type = "checkbox";
  864. links[i].defaultValue = "off";
  865. }
  866.  
  867. for (var i=0;i<links.length;i++){
  868. if (!GM_getValue(links[i].name)) {
  869. GM_setValue(links[i].name, links[i].defaultValue);
  870. }
  871. links[i].id = links[i].name;
  872. links[i].checked = (GM_getValue(links[i].name) != "on") ? false : true;
  873. links[i].addEventListener("click", function(e){
  874. GM_setValue(this.name, (GM_getValue(this.name) != "on") ? "on" : "off");
  875. }, true);
  876. }
  877.  
  878.  
  879.  
  880. //登録
  881. form.appendChild(tojiru);
  882. form.appendChild(document.createElement("hr"));
  883. form.appendChild(memo2);
  884. form.appendChild(linkSen2);
  885. form.appendChild(labelElement(linkSen2.caption, linkSen2.id));
  886. form.appendChild(document.createElement("br"));
  887. form.appendChild(linkmarq);
  888. form.appendChild(labelElement(linkmarq.caption, linkmarq.id));
  889. form.appendChild(document.createElement("br"));
  890. form.appendChild(linknicorudel);
  891. form.appendChild(labelElement(linknicorudel.caption, linknicorudel.id));
  892. form.appendChild(document.createElement("br"));
  893. form.appendChild(linkfeed);
  894. form.appendChild(labelElement(linkfeed.caption, linkfeed.id));
  895. form.appendChild(document.createElement("br"));
  896. form.appendChild(linkwalloff);
  897. form.appendChild(labelElement(linkwalloff.caption, linkwalloff.id));
  898. form.appendChild(document.createElement("br"));
  899. form.appendChild(linkwalliconoff);
  900. form.appendChild(labelElement(linkwalliconoff.caption, linkwalliconoff.id));
  901. form.appendChild(document.createElement("br"));
  902. form.appendChild(linkdelkomesocial);
  903. form.appendChild(labelElement(linkdelkomesocial.caption, linkdelkomesocial.id));
  904. form.appendChild(document.createElement("hr"));
  905. form.appendChild(linkheadcut);
  906. form.appendChild(labelElement(linkheadcut.caption, linkheadcut.id));
  907. form.appendChild(document.createElement("br"));
  908. form.appendChild(linkfootcut);
  909. form.appendChild(labelElement(linkfootcut.caption, linkfootcut.id));
  910. form.appendChild(document.createElement("hr"));
  911. form.appendChild(linkreview);
  912. form.appendChild(labelElement(linkreview.caption, linkreview.id));
  913. form.appendChild(document.createElement("br"));
  914. form.appendChild(linkichiba);
  915. form.appendChild(labelElement(linkichiba.caption, linkichiba.id));
  916. form.appendChild(document.createElement("br"));
  917. form.appendChild(linklist);
  918. form.appendChild(labelElement(linklist.caption, linklist.id));
  919. form.appendChild(document.createElement("br"));
  920. form.appendChild(linkmotto);
  921. form.appendChild(labelElement(linkmotto.caption, linkmotto.id));
  922. form.appendChild(document.createElement("br"));
  923. form.appendChild(linkcome);
  924. form.appendChild(labelElement(linkcome.caption, linkcome.id));
  925. form.appendChild(document.createElement("hr"));
  926. form.appendChild(linkreviewtoggle);
  927. form.appendChild(labelElement(linkreviewtoggle.caption, linkreviewtoggle.id));
  928. form.appendChild(document.createElement("br"));
  929. form.appendChild(linkichibatoggle);
  930. form.appendChild(labelElement(linkichibatoggle.caption, linkichibatoggle.id));
  931. form.appendChild(document.createElement("br"));
  932. form.appendChild(linkplaylisttoggle);
  933. form.appendChild(labelElement(linkplaylisttoggle.caption, linkplaylisttoggle.id));
  934. form.appendChild(document.createElement("br"));
  935. form.appendChild(linkkomepaneltoggle);
  936. form.appendChild(labelElement(linkkomepaneltoggle.caption, linkkomepaneltoggle.id));
  937. form.appendChild(document.createElement("br"));
  938. form.appendChild(linktagtoggle);
  939. form.appendChild(labelElement(linktagtoggle.caption, linktagtoggle.id));
  940. form.appendChild(document.createElement("hr"));
  941. form.appendChild(memo5);
  942. form.appendChild(linkinfo33);
  943. form.appendChild(labelElement(linkinfo33.caption, linkinfo33.id));
  944. form.appendChild(document.createElement("hr"));
  945. form.appendChild(linkinfotocomepanel);
  946. form.appendChild(labelElement(linkinfotocomepanel.caption, linkinfotocomepanel.id));
  947. form.appendChild(document.createElement("hr"));
  948. form.appendChild(memo3);
  949. form.appendChild(linkspread);
  950. form.appendChild(labelElement(linkspread.caption, linkspread.id));
  951. form.appendChild(document.createElement("br"));
  952. form.appendChild(linktv);
  953. form.appendChild(labelElement(linktv.caption, linktv.id));
  954. form.appendChild(document.createElement("br"));
  955. form.appendChild(linkwideichiba);
  956. form.appendChild(labelElement(linkwideichiba.caption, linkwideichiba.id));
  957. form.appendChild(document.createElement("br"));
  958. form.appendChild(linkminiichiba);
  959. form.appendChild(labelElement(linkminiichiba.caption, linkminiichiba.id));
  960. form.appendChild(document.createElement("hr"));
  961. form.appendChild(linktargetblank);
  962. form.appendChild(labelElement(linktargetblank.caption, linktargetblank.id));
  963. form.appendChild(document.createElement("br"));
  964. form.appendChild(linktargetself);
  965. form.appendChild(labelElement(linktargetself.caption, linktargetself.id));
  966. form.appendChild(memo6);
  967. form.appendChild(linkctree);
  968. form.appendChild(labelElement(linkctree.caption, linkctree.id));
  969. form.appendChild(document.createElement("br"));
  970. form.appendChild(linkdelshosai);
  971. form.appendChild(labelElement(linkdelshosai.caption, linkdelshosai.id));
  972. form.appendChild(document.createElement("br"));
  973. form.appendChild(linkinfonontoggle);
  974. form.appendChild(labelElement(linkinfonontoggle.caption, linkinfonontoggle.id));
  975. form.appendChild(document.createElement("br"));
  976. form.appendChild(linkdelsocial);
  977. form.appendChild(labelElement(linkdelsocial.caption, linkdelsocial.id));
  978. form.appendChild(document.createElement("hr"));
  979. form.appendChild(linkbackblack);
  980. form.appendChild(labelElement(linkbackblack.caption, linkbackblack.id));
  981. form.appendChild(document.createElement("br"));
  982. form.appendChild(linkdelsustitle);
  983. form.appendChild(labelElement(linkdelsustitle.caption, linkdelsustitle.id));
  984. form.appendChild(document.createElement("br"));
  985. form.appendChild(linkdelsearchbox);
  986. form.appendChild(labelElement(linkdelsearchbox.caption, linkdelsearchbox.id));
  987. form.appendChild(document.createElement("br"));
  988. form.appendChild(linkdelbuttons);
  989. form.appendChild(labelElement(linkdelbuttons.caption, linkdelbuttons.id));
  990. form.appendChild(document.createElement("hr"));
  991. form.appendChild(linkdeljosdes);
  992. form.appendChild(labelElement(linkdeljosdes.caption, linkdeljosdes.id));
  993. form.appendChild(document.createElement("br"));
  994. form.appendChild(linkdelbread);
  995. form.appendChild(labelElement(linkdelbread.caption, linkdelbread.id));
  996. form.appendChild(document.createElement("br"));
  997. form.appendChild(linkoldsearch);
  998. form.appendChild(labelElement(linkoldsearch.caption, linkoldsearch.id));
  999. form.appendChild(document.createElement("br"));
  1000. form.appendChild(linktweetinheader);
  1001. form.appendChild(labelElement(linktweetinheader.caption, linktweetinheader.id));
  1002. form.appendChild(document.createElement("br"));
  1003. form.appendChild(linkshortinfo);
  1004. form.appendChild(labelElement(linkshortinfo.caption, linkshortinfo.id));
  1005. form.appendChild(memo4);
  1006. form.appendChild(linktagpinon);
  1007. form.appendChild(labelElement(linktagpinon.caption, linktagpinon.id));
  1008. form.appendChild(document.createElement("br"));
  1009. form.appendChild(linkdeltagpin);
  1010. form.appendChild(labelElement(linkdeltagpin.caption, linkdeltagpin.id));
  1011. form.appendChild(document.createElement("hr"));
  1012. form.appendChild(linkinfo);
  1013. form.appendChild(labelElement(linkinfo.caption, linkinfo.id));
  1014. form.appendChild(document.createElement("br"));
  1015. form.appendChild(linkdeluserad);
  1016. form.appendChild(labelElement(linkdeluserad.caption, linkdeluserad.id));
  1017. form.appendChild(document.createElement("br"));
  1018. form.appendChild(linkdelminidic);
  1019. form.appendChild(labelElement(linkdelminidic.caption, linkdelminidic.id));
  1020. form.appendChild(document.createElement("hr"));
  1021. form.appendChild(linkinfoseparate);
  1022. form.appendChild(labelElement(linkinfoseparate.caption, linkinfoseparate.id));
  1023. form.appendChild(memo);
  1024. form.appendChild(linkleft);
  1025. form.appendChild(labelElement(linkleft.caption, linkleft.id));
  1026. form.appendChild(document.createElement("br"));
  1027. form.appendChild(linkbigwatch);
  1028. form.appendChild(labelElement(linkbigwatch.caption, linkbigwatch.id));
  1029. form.appendChild(document.createElement("hr"));
  1030. form.appendChild(document.createElement("br"));
  1031. form.appendChild(document.createElement("br"));
  1032. form.appendChild(document.createElement("br"));
  1033. form.appendChild(reset00);
  1034.  
  1035.  
  1036. prefDiv.appendChild(form);
  1037.  
  1038.  
  1039. var prefSw = document.createElement("a");
  1040. prefSw.innerHTML = "カスタマイズ設定";
  1041. prefSw.id = "zero";
  1042. /* prefSw.addEventListener("click",function(e){
  1043. prefDiv.style.display =
  1044. (prefDiv.style.display == "") ? "none" : "";
  1045. GM_setValue("prefDisplay",prefDiv.style.display);
  1046. },false);
  1047. */
  1048. document.getElementById("siteHeaderRightMenuContainer").appendChild(prefSw);
  1049.  
  1050. $("#zero").click(function(){
  1051. $("#prefDiv").animate(
  1052. {width:"toggle",height:"toggle",opacity:"toggle"},
  1053. "slow"
  1054. );
  1055. setTimeout(function(){
  1056. GM_setValue("prefDisplay",$("#prefDiv").css("display"));
  1057. },1000);
  1058. });
  1059. if(GM_getValue("prefDisplay","block")=="none"){
  1060. $("#prefDiv").hide();
  1061. };
  1062.  
  1063. $("#tojiru").click(function(){
  1064. $("#prefDiv").animate(
  1065. {width:"hide",height:"hide",opacity:"hide"},
  1066. "slow"
  1067. );
  1068. setTimeout(function(){
  1069. GM_setValue("prefDisplay",$("#prefDiv").css("display"));
  1070. },1000);
  1071. });
  1072. if(GM_getValue("prefDisplay","block")=="none"){
  1073. $("#prefDiv").hide();
  1074. };
  1075.  
  1076. $("head").append('<style type="text/css">#zero{margin-left:17px;color:#000000!important;cursor:pointer;}span[style="font-size: 45px;line-height:1.1;"],span[style="font-size: 90px;line-height:1.1;"],span[style="font-size: 60px;line-height:1.1;"],span[style="font-size: 36px;line-height:1.1;"]{font-size:22px!important;}#siteHeader #siteHeaderInner{width:99%!important;max-width:none!important;min-width:none!important;}.socialLinks .socialLinkTwitter,.socialLinks .socialLinkFacebook{width:150px!important;}.socialLinks .socialLinkFacebook .facebook{width:140px!important;}#siteHeaderNotificationPremium{display:none!important;}#videoTagContainer .tagInner #videoHeaderTagList li.videoHeaderTag a{color:#292F2F !important;}#videoTagContainer .tagInner #videoHeaderTagList li{margin-bottom:1px!important;text-decoration: underline!important;}#videoTagContainer .tagInner #videoHeaderTagList .toggleTagEdit{height:auto!important;}#videoTagContainer .tagInner #videoHeaderTagList li .tagControlContainer, #videoTagContainer .tagInner #videoHeaderTagList li .tagControlEditContainer{padding:2px 4px 2px 0!important;}#ichibaMain .itemname a {color: #4A6EBC!important;}.videoStart #nicoplayerContainer #nicoplayerContainerInner{top:0!important;}#siteHeader #siteHeaderInner ul li a.siteHeaderPoint small{display:none!important;}body.full_with_browser #playerAlignmentArea.size_normal #playerNicoplayer, #playerAlignmentArea.size_normal #external_nicoplayer{width:100%!important;}body.full_with_browser #playerAlignmentArea{width:100%!important;}#videoInformationWrapper{display:none!important;}#bottomContentTabContainer #outline .outer .main #videoInfo,body .outer{width:1008px;}#ichibaMainLogo,#ichibaMainHeader{display:none!important;}#ichibaMain #ichibaMainFooter .commandArea{text-align:left!important;}#outline{padding-top:5px!important;}#outline{background-color:#F3F3F3!important;}</style>');
  1077.  
  1078.  
  1079. if(GM_getValue("reviewtoggle_on")=="on"||GM_getValue("ichibatoggle_on")=="on"||GM_getValue("tagtoggle")=="on"||GM_getValue("playlisttoggle_on")=="on"||GM_getValue("komepaneltoggle_on")=="on"){
  1080. $("head").append('<style type="text/css">#playerContainerWrapper{padding-bottom:20px!important;}</style>');
  1081. }
  1082.  
  1083. if(GM_getValue("ctree_off")=="off" && $("#outline").attr("class")=="wrapper commonsTreeExists"){
  1084. $("head").append('<style type="text/css">#videoInfo .parentVideoInfo{display:block!important;}</style>');
  1085. };
  1086.  
  1087.  
  1088.  
  1089.  
  1090.  
  1091.  
  1092.  
  1093. }
  1094.  
  1095. interface_kidoku();
  1096. infotocomepanel();
  1097. shortinfoCut();
  1098. senCut2();
  1099. comeCut();
  1100. marqueeCut();
  1101. feedbackCut();
  1102. infoPlus();
  1103. reviewCut();
  1104. ichibaCut();
  1105. tvchanCut();
  1106. komespread();
  1107. hidariyose();
  1108. playlistCut();
  1109. mottoCut();
  1110. wideichiba();
  1111. nicorudel();
  1112. infonontoggle();
  1113. infoseparate();
  1114. oldsearch();
  1115. headcut();
  1116. footcut();
  1117. playlisttoggle();
  1118. infoCombine3();
  1119. miniichiba();
  1120. ichibatoggle();
  1121. reviewtoggle();
  1122. komepaneltoggle();
  1123. deljosdes();
  1124. ctreeCut();
  1125. tweetinheader();
  1126. delbuttons();
  1127. delshosai();
  1128. delsocial();
  1129. delbread();
  1130. bigwatch();
  1131. deltagpin();
  1132. walloff();
  1133. tagpinon();
  1134. delsearchbox();
  1135. walliconoff();
  1136. tagtoggle();
  1137. backblack();
  1138. deluserad();
  1139. delminidic();
  1140. delkomesocial();
  1141. targetblank();
  1142. targetself();
  1143. delsustitle();
  1144. };
  1145.  
  1146. var script = document.createElement('script');
  1147. script.type = "text/javascript";
  1148. script.textContent = '(' + main.toString() + ')();';
  1149. document.body.appendChild(script);