CustomGinzaWatch

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

当前为 2014-04-03 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name CustomGinzaWatch
  3. // @namespace http://d.hatena.ne.jp/wfwjfow/
  4. // @include http://www.nicovideo.jp/watch/*
  5. // @version 4.0.47
  6. // @description ニコニコ動画:GINZAの動画プレイヤーのUIをお手軽カスタマイズ。
  7. // ==/UserScript==
  8. /*
  9. ■参考スクリプト
  10. NicoRankingKidokuDelete → http://userscripts.org/scripts/show/45927
  11. */
  12.  
  13.  
  14. var main = function () {
  15.  
  16. if ((typeof GM_getValue == 'undefined') || (GM_getValue('a', 'b') == undefined)) {
  17.  
  18. GM_getValue = function(name, defaultValue) {
  19. var value = localStorage.getItem(name);
  20. if (!value)
  21. return defaultValue;
  22. var type = value[0];
  23. value = value.substring(1);
  24. switch (type) {
  25. case 'b':
  26. return value == 'true';
  27. case 'n':
  28. return Number(value);
  29. default:
  30. return value;
  31. }
  32. }
  33. GM_setValue = function(name, value) {
  34. value = (typeof value)[0] + value;
  35. localStorage.setItem(name, value);
  36. }
  37. if(typeof(unsafeWindow)=='undefined') { unsafeWindow=window; }
  38. }
  39.  
  40.  
  41. //タグクリック等時に同じタブで開く
  42. function targetself(){
  43. if( GM_getValue("targetself")=="on"){
  44. function onajitab(){
  45. $(".videoDescription a[href*='http://www.nicovideo.jp/mylist/'],#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink").click( function() {
  46. $("body").css("display","none")
  47. $("#videoExplorerBackContainer").click();
  48. window.location.href=this.href;
  49. });
  50. }
  51. onajitab();
  52. setInterval(function(){onajitab()},1000);
  53.  
  54. $("head").append('<style type="text/css"></style>');
  55. }
  56. }
  57. //タグクリック等時に別タブで開く
  58. function targetblank(){
  59. if( GM_getValue("targetblank")=="on"){
  60. function betsutab(){
  61. $(".videoDescription a[href*='http://www.nicovideo.jp/mylist/'],#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink").click( function() {
  62. window.open(this.href,'blank');
  63. setTimeout(function(){
  64. $("#videoExplorerBackContainer").click();
  65. },200);
  66. });
  67. }
  68. betsutab();
  69. setInterval(function(){betsutab()},1000);
  70.  
  71. $("head").append('<style type="text/css"></style>');
  72. }
  73. }
  74. //コメント欄のソーシャルボタンを消す
  75. function delkomesocial(){
  76. if( GM_getValue("delkomesocial")=="on"){
  77. $("head").append('<style type="text/css">#playerTabContainer .socialButtons{display:none!important;}</style>');
  78. }
  79. }
  80. //もっと見るを3列に
  81. function mottoright3line(){
  82. if( GM_getValue("mottoright3line")=="on"){
  83. $("head").append('<style type="text/css"></style>');
  84. }
  85. }
  86. //もっと見るで簡易大百科記事を消す
  87. function delminidic(){
  88. if( GM_getValue("delminidic")=="on"){
  89. $("head").append('<style type="text/css">#videoExplorer div.tagRelatedNicopedia{display:none!important;}</style>');
  90. }
  91. }
  92. //もっと見るでユーザー広告を消す
  93. function deluserad(){
  94. if( GM_getValue("deluserad")=="on"){
  95. $("head").append('<style type="text/css">#videoExplorer div.uadTagRelatedContainer{display:none!important;}</style>');
  96. }
  97. }
  98. //ブラックモード
  99. function backblack(){
  100. if( GM_getValue("backblack")=="on"){
  101. $("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>');
  102. }
  103. }
  104. //下の説明文等を開閉式に
  105. function josdestoggle(){
  106. if( GM_getValue("josdestoggle")=="on"){
  107. var divdata = document.createElement("a");
  108. divdata.id="toggle10";
  109. divdata.innerHTML="↓説明文の開閉";
  110. document.getElementById("playerNicoplayer").appendChild(divdata);
  111. $("#toggle10").click(function(){
  112. $("#outline .outer .main #videoInfo").toggle();
  113. GM_setValue("josdesDisplay",$("#outline .outer .main #videoInfo").css("display"));
  114. });
  115. if(GM_getValue("josdesDisplay")=="none"){
  116. $("#outline .outer .main #videoInfo").hide();
  117. }
  118. $("head").append('<style type="text/css">#toggle10{float:right!important;margin-right:15px;cursor:pointer;}</style>');
  119. }
  120. }
  121. //着うたとかを1行に
  122. function uta1line(){
  123. if( GM_getValue("uta1line")=="on"){
  124. setTimeout(function(){
  125. var divuta = document.createElement("div");
  126. divuta.id="divuta";
  127. document.getElementById("ichibaMain").appendChild(divuta);
  128. $("#divuta").insertBefore("#ichibaMain .ichiba_mainitem:first");
  129. $("#ichiba_mainpiaitem").appendTo("#divuta");
  130. $(".mobile").parent().parent().appendTo("#divuta");
  131. },2000);
  132.  
  133. $("head").append('<style type="text/css">#divuta .ichiba_mainitem{width:100%!important;height:auto!important;}#divuta .ichiba_mainitem dd{float:left!important;margin:0 0 0 10px!important;line-height:20px!important;}#divuta .ichiba_mainitem dt{display:none!important;}#divuta dd.mobile a{width:100px!important;}#divuta dd.mobile a.kashi{background-position:-41px -285px!important;background-size:auto auto!important;}#divuta dd.mobile a.uta{background-position:-41px -70px!important;background-size:auto auto!important;}#divuta dd.mobile a.kisekae{background-position:-40px -250px!important;background-size:auto auto!important;}#divuta dd.mobile a.utafull{background-position:-40px -538px!important;background-size:auto auto!important;}#divuta dd.mobile a.melo{background-position:-40px -33px!important;background-size:auto auto!important;}#divuta dd.mobile a.decome{background-position:-39px -106px!important;background-size:auto auto!important;}#divuta .thumbnail,#divuta .action,#divuta .goIchiba{margin:0!important;}#divuta #ichiba_mainpiaitem,#ichibaMain #divuta dl.pia{width:100%!important;margin:0!important;}#ichibaMain #divuta dl{height:auto!important;}#ichibaMain #divuta dl.pia dd.pia *{font-size:20px!important;}#ichibaMain #divuta dl.pia dd.ichiba{float:left!important;margin-left:10px!important;}#ichibaMain #divuta dl.pia dd.pia span.eke{float:left!important;}#ichibaMain #divuta dl.pia dd.pia a{display:block!important;}#ichibaMain #divuta dl.pia dd.pia{width:auto!important;float:left!important;}</style>');
  134. }
  135. }
  136. //タグを開閉式に
  137. function tagtoggle(){
  138. if( GM_getValue("tagtoggle")=="on"){
  139. var divdata = document.createElement("a");
  140. divdata.id="toggle9";
  141. divdata.innerHTML="Tagの開閉";
  142. document.getElementById("playerNicoplayer").appendChild(divdata);
  143. $("#toggle9").click(function(){
  144. $("#videoTagContainer").toggle();
  145. GM_setValue("tagDisplay",$("#videoTagContainer").css("display"));
  146. });
  147. if(GM_getValue("tagDisplay")=="none"){
  148. $("#videoTagContainer").hide();
  149. }
  150. $("head").append('<style type="text/css">#toggle9{float:left!important;margin-left:15px;cursor:pointer;}</style>');
  151. }
  152. }
  153. //ウォールのアイコンだけを消す
  154. function walliconoff(){
  155. if( GM_getValue("walliconoff")=="on"){
  156. $("head").append('<style type="text/css">#chipWallList{display:none!important;}</style>');
  157. }
  158. }
  159. //検索ボックスを消去
  160. function delsearchbox(){
  161. if( GM_getValue("delsearchbox")=="on"){
  162. $("head").append('<style type="text/css">#videoHeaderMenu .searchContainer{display:none!important;}</style>');
  163. }
  164. }
  165. //タグのピンを常時表示
  166. function tagpinon(){
  167. if( GM_getValue("tagpinon")=="on"){
  168. $("head").append('<style type="text/css">#videoTagContainer .tagInner #videoTagContainerPin{display:block!important;}</style>');
  169. }
  170. }
  171. //ウォールを消す
  172. function walloff(){
  173. if( GM_getValue("walloff")=="on"){
  174. $("head").append('<style type="text/css">#wallImageContainer .wallAlignmentArea , #chipWallList{display:none!important;}</style>');
  175. }
  176. }
  177. //タグのピンを消す
  178. function deltagpin(){
  179. if( GM_getValue("deltagpin")=="on"){
  180. $("head").append('<style type="text/css">#videoTagContainerPin{display:none!important;}</style>');
  181. }
  182. }
  183. //プレイヤーのサイズを大きく
  184. function bigwatch(){
  185. if( GM_getValue("bigwatch")=="on" ){
  186. $("head").append('<style type="text/css">#playerAlignmentArea.size_normal{width:99%!important;}#playerTabWrapper{float:right!important;position:relative!important;}#playerNicoplayer{float:left!important;}</style>');
  187.  
  188. $(window).on("load resize", function(){
  189. var wh = $(window).height();
  190. var ww = $(window).width();
  191. var tw = $("#playerTabWrapper").width();
  192. var ww2= Math.round(ww*0.99-tw-30)+"px";
  193. var wh2= Math.round((ww*0.99-tw-30)*0.695)+"px";
  194.  
  195. $("#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;'});
  196. $("#playerContainerWrapper,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper").css({'cssText': 'height:'+wh2+'!important;'});
  197. });
  198. if( GM_getValue("komepaneltoggle_on")=="on"){
  199.  
  200. function panelcheck(){
  201. var wh = $(window).height();
  202. var ww = $(window).width();
  203. var tw = $("#playerTabWrapper").width();
  204. var tdis = $("#playerTabWrapper").css("display");
  205. if(tdis=="none"){
  206. tw=0;
  207. var thide = "none"
  208. }else{thide="block"}
  209. var ww2= Math.round(ww*0.99-tw-30)+"px";
  210. var wh2= Math.round((ww*0.99-tw-30)*0.695)+"px";
  211.  
  212. $("#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;'});
  213. $("#playerContainerWrapper,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee").css({'cssText': 'height:'+wh2+'!important;'});
  214. $("#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper").css({'cssText': 'height:'+wh2+'!important;display:'+thide});
  215. }
  216. panelcheck();
  217. setInterval(function(){panelcheck()},1000);
  218.  
  219. }
  220. }
  221. }
  222. //パンくずリストを消去
  223. function delbread(){
  224. if( GM_getValue("delbread")=="on"){
  225. $("head").append('<style type="text/css">div.ch_breadcrumb{display:none!important;}</style>');
  226. }
  227. if( GM_getValue("infotocomepanel_on")=="on" && GM_getValue("delbread")=="on"){
  228. $("head").append('<style type="text/css">div.ch_breadcrumb,#videoHeaderDetail .videoDetailExpand{display:none!important;}</style>');
  229. }
  230. }
  231. //ツイートボタン等を消去
  232. function delsocial(){
  233. if( GM_getValue("delsocial")=="on"){
  234. $("head").append('<style type="text/css">#videoShareLinks{display:none!important;}#topVideoInfo .socialLinks{display:none!important;}</style>');
  235. }
  236. }
  237. //動画詳細情報を消去
  238. function delshosai(){
  239. if( GM_getValue("delshosai")=="on"){
  240. $("head").append('<style type="text/css">#bottomVideoDetailInformation,#bottomVideoDetailInformation .supplementary{display:none!important;}#topVideoInfo .hiddenInfoTabContent,#topVideoInfo .hiddenInfoTabHeader{display:none!important;}</style>');
  241. }
  242. }
  243. //マイリスボタン・とりあえずマイリスボタン以外を消去
  244. function delbuttons(){
  245. if( GM_getValue("delbuttons")=="on"){
  246. $("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>');
  247. }
  248. }
  249. //ツイートボタンをヘッダーに移動
  250. function tweetinheader(){
  251. if( GM_getValue("tweetinheader")=="on"){
  252. $("head").append('<style type="text/css">.twitter-share-button{margin:7px 0 0 7px!important;}.socialLinkTwitter{width:140px!important;}</style>');
  253. $("#videoShareLinks li.socialLinkTwitter").appendTo("#siteHeaderInner ul.siteHeaderMenuList");
  254. }
  255. }
  256. //コンテンツツリー消去
  257. function ctreeCut(){
  258. if( GM_getValue("ctree_off")=="on"){
  259. $("head").append('<style type="text/css">.parentVideoInfo{display:none!important;}</style>');
  260. }
  261. }
  262. //簡易動画説明文消去
  263. function shortinfoCut(){
  264. if( GM_getValue("shortinfo_off")=="on"){
  265. $("head").append('<style type="text/css">#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}</style>');
  266. }
  267. }
  268. //下の動画説明文・動画情報を消去
  269. function deljosdes(){
  270. if( GM_getValue("deljosdes")=="on"){
  271. $("head").append('<style type="text/css">#videoInfo{display:none!important;}#videoComment{display:none!important;}</style>');
  272. }
  273. }
  274. //広告消去
  275. function senCut2(){
  276. if( GM_getValue("senden2")=="on"){
  277. $("head").append('<style type="text/css">#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 .playerTabContent{bottom:0!important;}#playerTabContainer .playerTabAds{display:none!important;}</style>');
  278. }
  279. }
  280. //コメント一覧非表示
  281. function comeCut(){
  282. if( GM_getValue("come_off")=="on"){
  283. $("head").append('<style type="text/css">#playerTabWrapper{display:none!important;}</style>');
  284. }
  285. }
  286. //動画上マーキー消去
  287. function marqueeCut(){
  288. if( GM_getValue("marquee_off")=="on"){
  289. $("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>');
  290. // $("head").append('<style type="text/css">#playerContainerSlideArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:506px!important;}#playerContainerSlideArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:602px!important;}</style>');
  291.  
  292. if(GM_getValue("set8_on")=="off"){
  293. $("head").append('<style type="text/css">#playerAlignmentArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper,#playerAlignmentArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper #playerTabContainer{height:459px!important;}#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper,#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper #playerTabContainer{height:555px!important;}#playerAlignmentArea.up_marquee.size_medium #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper,#playerAlignmentArea.up_marquee.size_medium #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper #playerTabContainer{height:516px!important;}#playerAlignmentArea.up_marquee.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper,#playerAlignmentArea.up_marquee.size_normal #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper #playerTabContainer{height:612px!important;}#playerContainer{margin-bottom:0!important;}#playerContainerSlideArea.size_medium #playerContainer.full_with_browser.oldTypeCommentInput.text_marquee,#playerContainerSlideArea.size_normal #playerContainer.full_with_browser.oldTypeCommentInput.text_marquee,#playerAlignmentArea.size_normal #playerContainer.full_with_browser.controll_panel.oldTypeCommentInput.text_marquee{height:100%!important;}#playerAlignmentArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:468px!important;}#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:563px!important;}</style>');
  294. /*setTimeout(function(){
  295. $("#playerContainerSlideArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput.text_marquee").css("height","488px");
  296. $("#playerContainerSlideArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee").css("height","573px");
  297. },2000);*/
  298. }
  299.  
  300. }
  301. }
  302. //フィードバックリンク消去
  303. function feedbackCut(){
  304. if( GM_getValue("feedback_off")=="on"){
  305. $("head").append('<style type="text/css">#feedbackLink{display:none!important;}</style>');
  306. }
  307. }
  308. //もっと見るにマイリスコメント?常時表示
  309. function infoPlus(){
  310. if( GM_getValue("infoplus")=="on"){
  311. $("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>');
  312. }
  313. }
  314.  
  315. //レビュー消去
  316. function reviewCut(){
  317. if( GM_getValue("review_off")=="on"){
  318. $("head").append('<style type="text/css">#videoReview{display:none!important;}</style>');
  319. }
  320. }
  321. //レビューを開閉式に
  322. function reviewtoggle(){
  323. if( GM_getValue("reviewtoggle_on")=="on"){
  324. var divdata = document.createElement("a");
  325. divdata.id="toggle3";
  326. divdata.innerHTML="Reviewの開閉";
  327. document.getElementById("playerNicoplayer").appendChild(divdata);
  328. $("#toggle3").click(function(){
  329. $("#videoReview").toggle();
  330. GM_setValue("reviewDisplay",$("#videoReview").css("display"));
  331. });
  332. if(GM_getValue("reviewDisplay")=="none"){
  333. $("#videoReview").hide();
  334. }
  335. $("head").append('<style type="text/css">#toggle3{float:right!important;margin-left:15px;cursor:pointer;}</style>');
  336. }
  337. }
  338. //市場消去
  339. function ichibaCut(){
  340. if( GM_getValue("ichiba_off")=="on"){
  341. $("head").append('<style type="text/css">#nicoIchiba{display:none!important;}</style>');
  342. }
  343. }
  344. //市場を開閉式に
  345. function ichibatoggle(){
  346. if( GM_getValue("ichibatoggle_on")=="on"){
  347. var divdata = document.createElement("a");
  348. divdata.id="toggle4";
  349. divdata.innerHTML="市場の開閉";
  350. document.getElementById("playerNicoplayer").appendChild(divdata);
  351. $("#toggle4").click(function(){
  352. $("#nicoIchiba").toggle();
  353. GM_setValue("ichibaDisplay",$("#nicoIchiba").css("display"));
  354. });
  355. if(GM_getValue("ichibaDisplay")=="none"){
  356. $("#nicoIchiba").hide();
  357. }
  358. $("head").append('<style type="text/css">#toggle4{float:left!important;margin-left:15px;cursor:pointer;}</style>');
  359. }
  360. }
  361. //マイリスボタン等常時表示
  362. function tvchanCut(){
  363. if( GM_getValue("tvchan_off")=="on"){
  364. $("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 -4019px!important;}#videoMenuTopList li.videoMenuList a.mylistButton span{background-position: -2px -4019px!important;}#videoMenuTopList li.videoMenuList a.uadButton span {background-position: -89px -4019px!important;}#videoMenuTopList .videoMenuList.mymemoryButton .button {background-position: -397px -4019px!important;}#videoMenuTopList #speedChecker.active .button {background-position: -353px -4019px!important;}#videoMenuTopList #speedChecker .button {background-position: -353px -4019px!important;}#videoMenuTopList li.videoMenuList a.downloadButton span{background-position: -177px -4019px!important;}#videoMenuTopList li.videoMenuList a.userChannelButton span{background-position: -442px -4019px!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-sfde3ef9539.png") no-repeat scroll -133px -4019px 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>');
  365. if( GM_getValue("infocombine3")=="off"){
  366. $("head").append('<style type="text/css">#videoMenuTopList{width:175px!important;}#videoMenuWrapper{width:175px!important;height:60px!important;}</style>');
  367. }
  368. }
  369. }
  370. //コメント一覧の幅を広げる
  371. function komespread(){
  372. if( GM_getValue("spread_on")=="on"){
  373. $("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 .playerTabHeader .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 .playerTabHeader .playerTabItem{width:133px!important;}</style>');
  374. }
  375. }
  376. //プレイヤー下のプレイリストを消去
  377. function playlistCut(){
  378. if( GM_getValue("playlist_off")=="on"){
  379. $("head").append('<style type="text/css">#playlist{display:none!important;}</style>');
  380. }
  381. }
  382. //もっと見るバーを消去
  383. function mottoCut(){
  384. if( GM_getValue("motto_off")=="on"){
  385. $("head").append('<style type="text/css">#videoExplorerExpand{display:none!important;}</style>');
  386. }
  387. }
  388. //もっと見るを横に
  389. function mottoright(){
  390. if( GM_getValue("mottoright_on")=="on"){
  391.  
  392. var divmottoright=document.createElement("div");
  393. divmottoright.id="divmottoright";
  394. document.body.appendChild(divmottoright);
  395. $("#videoExplorer").appendTo("#divmottoright");
  396.  
  397. var divdata = document.createElement("a");
  398. divdata.id="mottorightbutton";
  399. divdata.innerHTML="もっと見る(右)の開閉";
  400. document.getElementById("playerNicoplayer").appendChild(divdata);
  401. $("#divmottoright").hide();
  402. $("#mottorightbutton").click(function(){
  403. $("#divmottoright").animate(
  404. {width:"toggle",opacity:"toggle"},
  405. "slow"
  406. );
  407. });
  408.  
  409. document.onkeydown = function(e){
  410. if(e.target.type=="textarea"||e.target.type=="text"){
  411. return;
  412. }else{
  413. switch(e.keyCode){
  414. case 83:
  415. $("#divmottoright").animate(
  416. {width:"toggle",opacity:"toggle"},
  417. "slow"
  418. );
  419. }
  420. }
  421. }
  422.  
  423. $("#siteHeader,#content .videoHeaderOuter,#bottomContentTabContainer,#footer").click(function(e){
  424. if(!$(e.target).is("#mottorightbutton,#videoExplorerBackContainer,#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink,.showOtherVideos,.videoDescription a[href*='http://www.nicovideo.jp/mylist/']"))
  425. $("#divmottoright").hide("slow");
  426. });
  427.  
  428.  
  429. $("head").append('<style type="text/css">#videoExplorerExpand{display:none!important;}#divmottoright{position:fixed;right:0;top:0;z-index:99999;height:100%;overflow:scroll;overflow-x:hidden;}#mottorightbutton{cursor:pointer;float:right!important;}body{width:100%!important;height:100%!important;overflow-y:scroll!important;}body.full_with_browser{padding-right:0!important;}.wrapper{height:auto!important;}#mottorightbutton2{float:right;margin-right:20px;cursor:pointer;}#playerContainer{margin-bottom:20px;text-align:left!important;}.uadTagRelatedContainer{background: url("http://res.nimg.jp/img/common/uad/bg_grade_2.png") repeat-x scroll 0 0 #FFDD00;}#siteHeaderInner .searchContainer{display:none!important;}#divmottoright,#videoExplorer,#videoExplorer .videoExplorerBody,#videoExplorer .videoExplorerMenu .item.active,.videoExplorerContentWrapper{background-color:#E7E9FD!important;}#videoExplorer .videoExplorerMenu .item .arrow{display:none!important;}img[src="../../../img/watch_zero/noimage.png"]{display:none!important;}#searchResultExplorerButton,#resultContainer h3,#searchResultExplorer{display:none!important;}.videoInformation .itemVideoUad{display:none!important;}#searchResultExplorerExpand{display:none!important;}#searchResultSearchBox,#searchResultNavigation{display:block!important;}ul#resultlist li .thumbContainer img{position:relative!important;}#searchResultNavigation > ul > li a{line-height:20px!important;}#searchResultNavigation > ul > li a:after{display:none!important;}#resultContainer .searchContainer .searchText .searchInput{width:80%!important;}ul#resultlist li .thumbContainer{border-color:transparent!important;}#searchResultNavigation > ul > li a{padding:0!important;}#searchResultMylistDetail{margin-bottom:20px!important;}#searchResultUadTagRelatedContainer{display:none!important;}#videoHeaderMenu .searchContainer{display:none!important;}#videoExplorer div.videoExplorerMenu div:first-of-type{height:0!important;}#videoExplorer div.videoExplorerMenu .itemList li.item span.text{text-overflow: ellipsis!important;}.videoExplorerBody .searchBox .searchText .searchInput{width:80%!important;}#videoExplorer .videoExplorerBody{display:block!important;}#videoExplorerExpand{display:none!important;}#selectionSideAd{display:none!important;}#nicoplayerContainer #external_nicoplayer{position:relative!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item.item4n-3{clear:none!important;}#bottomContentTabContainer.videoExplorer #outline{display:block!important;position:relative!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper{position:relative!important;height:468px!important;width:1082px!important;margin:0 auto!important;}#playerAlignmentArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #nicoplayerContainer, #playerAlignmentArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #external_nicoplayer{height:468px!important;width:672px!important;}#playerTabWrapper{top:0!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper #playerAlignmentArea{width:100%!important;}#playerAlignmentArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #playerTabWrapper{height:468px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .video .column4 span.title{display:block!important;clear:both!important;height:70px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .video .column4 .videoInformation{display:block!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .videoInformation .info, .videoExplorerBody .videoExplorerContent .suggestVideo .item .videoInformation .info{display:block!important;}#videoExplorerBackContainer{visibility:hidden!important;}body.full_with_browser #playerTabWrapper{display:none!important;}</style>');
  430.  
  431.  
  432. if( GM_getValue("mottoright3line")=="on"){
  433. $("head").append('<style type="text/css">#searchResultContainer,#searchResult,#divmottoright,#videoExplorer{width:580px;}.topicPath{width:400px!important;}#divmottoright .videoExplorerContentWrapper{margin-left:5px!important;padding-top:10px!important;}#videoExplorer .videoExplorerMenu{position:relative!important;width:560px!important;top:0!important;height:50px!important;}#videoExplorer .videoExplorerMenu .videoExplorerMenuInner{width:560px!important;position:relative!important;top:0!important;left:0!important;}#videoExplorer .videoExplorerMenu .item{float:left!important;width:140px!important;white-space: nowrap;overflow: hidden;text-overflow: ellipsis!important;}.videoExplorerContent{padding:0!important;width:555px!important;}.uadTagRelated .default,.uadTagRelated.isEmpty .empty{height:270px!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .thumbnail, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .thumbnail,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper .itemImage{width:130px!important;height:100px!important;top:0!important;left:0!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper,.uadTagRelated .default .itemList .item .imageContainer{width:150px!important;height:100px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{width:155px!important;}#videoExplorer .column4 .video .balloon{width:114px!important;}.uadTagRelated .default .itemList .item.graderankSilver .uadFrame,.uadTagRelated .default .itemList .item.graderankGold .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.silver .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.silver .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.gold .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.gold .uadFrame{background-size:130px 100px!important;height:100px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{margin-right:12px!important;margin-left:12px!important;}.videoExplorerBody .contentItemList{width:550px!important;max-width:550px!important;min-width:550px!important;clear:none!important;}.uadTagRelated .default .itemList .item{margin-right:5px!important;margin-left:5px!important;margin-top:5px!important;}.uadTagRelated .default{padding-bottom:40px!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .title, .videoExplorerBody .videoExplorerContent .suggestVideo .item .title{line-height:1.3em!important;}.videoExplorerBody .contentItemList *{background-repeat:no-repeat!important;}#videoExplorer .videoExplorerMenu{display:none!important;}</style>');
  434. }else{
  435. $("head").append('<style type="text/css">#divmottoright,#videoExplorer{width:371px;}.topicPath{width:330px!important;}#searchResultOptions{width:330px!important;}#searchResultMylistOptions{width:340px!important;}#divmottoright .videoExplorerContentWrapper{margin-left:5px!important;padding-top:10px!important;}#videoExplorer .videoExplorerMenu{display:none!important;position:relative!important;width:355px!important;top:0!important;height:50px!important;}#videoExplorer .videoExplorerMenu .videoExplorerMenuInner{width:355px!important;position:relative!important;top:0!important;left:0!important;}#videoExplorer .videoExplorerMenu .item{float:left!important;width:88px!important;white-space: nowrap;overflow: hidden;text-overflow: ellipsis!important;}.videoExplorerContent{padding:0!important;width:345px!important;}.videoExplorerBody .contentItemList{width:340px!important;max-width:340px!important;min-width:340px!important;}.uadTagRelated .default,.uadTagRelated.isEmpty .empty{height:270px!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .thumbnail, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .thumbnail,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper .itemImage{width:130px!important;height:100px!important;top:0!important;left:0!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper,.uadTagRelated .default .itemList .item .imageContainer{width:130px!important;height:100px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{width:130px!important;}#videoExplorer .column4 .video .balloon{width:114px!important;}.uadTagRelated .default .itemList .item.graderankSilver .uadFrame,.uadTagRelated .default .itemList .item.graderankGold .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.silver .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.silver .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.gold .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.gold .uadFrame{background-size:130px 100px!important;height:100px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{margin-right:20px!important;margin-left:20px!important;}.videoExplorerBody .contentItemList{width:340px!important;max-width:340px!important;min-width:340px!important;clear:none!important;}.uadTagRelated .default .itemList .item{margin-right:5px!important;margin-left:5px!important;margin-top:5px!important;}.uadTagRelated .default{padding-bottom:40px!important;}</style>');
  436. }
  437.  
  438. function saisettei(){
  439. $(".videoDescription a[href*='http://www.nicovideo.jp/mylist/'],#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink,.showOtherVideos").click( function() {
  440. $("#divmottoright").show("slow");
  441. $("#videoExplorerBackContainer").click();
  442. });
  443. }
  444. saisettei();
  445. setInterval(function(){saisettei()},3000);
  446.  
  447. function denymini(){
  448. if($("body").hasClass("setting_panel")){
  449. return;
  450. }else if($("body").hasClass("size_small")){
  451. $("#videoExplorerBackContainer").click();
  452. }
  453. }
  454. denymini();
  455. setInterval(function(){denymini()},500);
  456.  
  457.  
  458. var timerID = setInterval(
  459. function(){
  460. if(document.getElementById("videoHeaderTagList").getElementsByTagName("li").length>1){
  461. setTimeout(function(){
  462. $("#videoExplorerExpand a.expandButton").click();
  463. $("#videoExplorerBackContainer").click();
  464.  
  465. clearInterval(timerID);
  466. timerID = null;
  467. },1000);
  468.  
  469. }
  470. },1000);
  471.  
  472.  
  473. }
  474. }
  475. //市場の幅を広げる
  476. function wideichiba(){
  477. if( GM_getValue("wideichiba_on")=="on"){
  478.  
  479. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  480. $("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>');
  481. if( GM_getValue("miniichiba_on")=="off"){
  482. $("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>');
  483. }else{
  484. $("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>');
  485. }
  486. }else{
  487. $("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>');
  488. if( GM_getValue("miniichiba_on")=="off"){
  489. $("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>');
  490. }else{
  491. $("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>');
  492. }
  493. }
  494. }
  495. }
  496. //市場の商品画像等を小さく
  497. function miniichiba(){
  498. if( GM_getValue("miniichiba_on")=="on"){
  499. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  500. $("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>');
  501. }else{
  502. $("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>');
  503. }
  504. }
  505. }
  506. //ニコるを消す
  507. function nicorudel(){
  508. if( GM_getValue("nicorudel_on")=="on"){
  509. $("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{display:none!important;}</style>');
  510. }
  511. }
  512. //下の動画詳細情報を常時表示に
  513. function infonontoggle(){
  514. if( GM_getValue("infonontoggle_on")=="on"){
  515. $("head").append('<style type="text/css">.extraVideoTrigger .open, .extraVideoTrigger .close{display:none!important;}.supplementary{display:block!important;}#topVideoInfo .hiddenInfoTabContent{display:block!important;}</style>');
  516. }
  517. }
  518. //左寄せにする
  519. function hidariyose(){
  520. if( GM_getValue("left_on")=="on"){
  521. $("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>');
  522. }
  523. }
  524. //ヘッダー消去
  525. function headcut(){
  526. if( GM_getValue("header_off")=="on"){
  527. $("#zero").appendTo("#content");
  528. $("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>');
  529. document.getElementById("zero").innerHTML="設定";
  530. var menudivmenu = document.createElement("div");
  531. menudivmenu.innerHTML = "メニュー";
  532. menudivmenu.style.zIndex = 100;
  533. menudivmenu.id = "menudivmenu";
  534.  
  535. document.body.appendChild(menudivmenu);
  536. $("#menudivmenu").appendTo("#content");
  537.  
  538. $("#menudivmenu").hover(
  539. function () {
  540. $("#menudiv").css("visibility","visible");
  541. },
  542. function () {
  543. $("#menudiv").css("visibility","hidden");
  544. }
  545. );
  546.  
  547.  
  548. var menudiv = document.createElement("div");
  549. menudiv.id = "menudiv";
  550. menudiv.style.width = "170px";
  551. menudiv.style.height = "700px";
  552. menudiv.innerHTML = "";
  553. menudiv.style.backgroundColor = "white";
  554. menudiv.style.border = "1px solid #888";
  555. menudiv.style.position = "absolute";
  556. menudiv.style.top = "20px";
  557. menudiv.style.right = "0px";
  558. menudiv.style.zIndex = 100;
  559. menudiv.style.opacity = 1;
  560. /* menudiv.style.display =
  561. (GM_getValue("menudivDisplay") == "none") ? "none" : "";
  562. */
  563. document.body.appendChild(menudiv);
  564. $("#menudiv").appendTo("#menudivmenu");
  565.  
  566. /* menudivmenu.addEventListener("click",function(e){
  567. menudiv.style.display =
  568. (menudiv.style.display == "") ? "none" : "";
  569. GM_setValue("menudivDisplay",menudiv.style.display);
  570. },false);
  571. */
  572. $("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>');
  573.  
  574.  
  575. $(".siteHeaderGlovalNavigation li").appendTo("#menudiv");
  576. $("#siteHeaderLeftMenuContainer li").appendTo("#menudiv");
  577. $(".siteHeaderMenuList li").appendTo("#menudiv");
  578. $("#siteHeaderRightMenuContainer li").appendTo("#menudiv");
  579.  
  580.  
  581.  
  582. if( GM_getValue("set8_on")=="on"){
  583. $("#zero").appendTo("body");
  584. $("head").append('<style type="text/css">#zero{right:80px!important;z-index:9999999;}#menudivmenu{right:80px;}</style>');
  585. }
  586. }
  587. }
  588. //フッター消去
  589. function footcut(){
  590. if( GM_getValue("footer_off")=="on"){
  591. $("head").append('<style type="text/css">#footer{display:none!important;}body,#content{background-color:#F3F3F3!important;}.outer{margin-bottom:0!important;}</style>');
  592. }
  593. }
  594. //旧検索をヘッダーに追加
  595. function oldsearch(){
  596. if( GM_getValue("oldsearch_on")=="on"){
  597. $("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;}</style>');
  598.  
  599. $("#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>");
  600.  
  601. $("#selectsearch").change(function() {
  602. if($("#selectsearch").val()=="word"){
  603. $("#head_search_form").attr("action","http://www.nicovideo.jp/search/")
  604. }else if($("#selectsearch").val()=="tag"){
  605. $("#head_search_form").attr("action","http://www.nicovideo.jp/tag/")
  606. }
  607. });
  608. }
  609. }
  610. //プレイリストを開閉式に
  611. function playlisttoggle(){
  612. if( GM_getValue("playlisttoggle_on")=="on"){
  613. var divdata = document.createElement("a");
  614. divdata.id="toggle";
  615. divdata.innerHTML="Playlistの開閉";
  616. document.getElementById("playerNicoplayer").appendChild(divdata);
  617. $("#toggle").click(function(){
  618. $("#playlist").toggle();
  619. GM_setValue("playlistDisplay",$("#playlist").css("display"));
  620. });
  621. if(GM_getValue("playlistDisplay")=="none"){
  622. $("#playlist").hide();
  623. }
  624. $("head").append('<style type="text/css">#toggle{float:left!important;cursor:pointer;}</style>');
  625. }
  626. }
  627. //コメント一覧を開閉式に
  628. function komepaneltoggle(){
  629. if( GM_getValue("komepaneltoggle_on")=="on"){
  630. var divdata = document.createElement("a");
  631. divdata.id="toggle2";
  632. divdata.innerHTML="コメント一覧の開閉";
  633. document.getElementById("playerNicoplayer").appendChild(divdata);
  634. $("#toggle2").click(function(){
  635. $("#playerTabWrapper").toggle();
  636. GM_setValue("commentpanelDisplay",$("#playerTabWrapper").css("display"));
  637. });
  638. if(GM_getValue("commentpanelDisplay")=="none"){
  639. $("#playerTabWrapper").hide();
  640. }
  641. $("head").append('<style type="text/css">#toggle2{float:right!important;margin-left:15px;cursor:pointer;}</style>');
  642. }
  643. }
  644. //下の動画情報と動画説明文を左右に分離
  645. function infoseparate(){
  646. if( GM_getValue("infoseparate_on")=="on"){
  647. var divinfo=document.createElement("div");
  648. divinfo.id="divinfo";
  649. document.body.appendChild(divinfo);
  650. $("#divinfo").appendTo("#videoInfo .videoMainInfoContainer");
  651. $("#videoInfo .parentVideoInfo,#videoInfoHead,#bottomVideoDetailInformation,#videoShareLinks").appendTo("#divinfo");
  652. $("head").append('<style type="text/css">#divinfo{float:right;width:430px;border:1px solid #000000;padding-left:10px;margin-bottom:10px!important;}body.size_normal #divinfo{width:500px;}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:490px!important;}#videoComment{float:left!important;}#videoInfo{border:none!important;}#videoComment h4{display:none!important;}#nicommendContainer,#nicoIchiba{clear:both!important;}#videoComment{width:540px!important;}body.size_normal #videoComment{width:600px!important;}.videoDescription{border:1px solid #000000;padding:12px 5px 10px 12px!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;}</style>');
  653. if( GM_getValue("infocombine3")=="off"){
  654. $("#userProfile").appendTo("#divinfo");
  655. }
  656. if( GM_getValue("review_off")=="off"){
  657. $(".outer .sidebar").appendTo(".outer .main");
  658. }
  659. }
  660. }
  661. //再生数等を上に移動3
  662. function infoCombine3(){
  663. if( GM_getValue("infocombine3")=="on"){
  664. var divimg=document.createElement("div");
  665. divimg.id="divimg";
  666. document.body.appendChild(divimg);
  667. $("#videoThumbnailImage").css("height","100px").appendTo("#divimg");
  668. $("#divimg").insertBefore(".videoDetailExpand h2");
  669. $("#videoInfoHead p:first-child").appendTo(".videoDetailExpand h2").addClass("toko");
  670. $(".videoHeaderTitle").appendTo(".videoDetailExpand h2");
  671. $("#videoStats .ranking").appendTo(".toko");
  672. $(".dicIcon").appendTo(".videoDetailExpand h2").css({"color":"#00BFFF","cursor":"pointer"});
  673. $("#userProfile,#videoInfo .videoMainInfoContainer .ch_prof").appendTo("#videoHeaderDetail");
  674. $(".usericon").css({"width":"100px","height":"100px","float":"left"});
  675. $("#videoStats").appendTo("#videoHeaderDetail");
  676.  
  677.  
  678. $("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-sfde3ef9539.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-sfde3ef9539.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-sfde3ef9539.png") no-repeat scroll -133px -4019px 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 0 5px!important;background: transparent!important;padding: 0!important;}.channel .ch_prof a.symbol{width:90px!important;}.channel .ch_prof a.symbol img{width:80px!important;height:80px!important;box-shadow:none!important;}.channel .ch_prof a.symbol:hover img{box-shadow:none!important;}.channel .ch_prof .info{padding:0 0 0 90px!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 -4019px!important;}#videoMenuTopList li.videoMenuList a.mylistButton span{background-position: -2px -4019px!important;}#videoMenuTopList li.videoMenuList a.uadButton span {background-position: -89px -4019px!important;}#videoMenuTopList .videoMenuList.mymemoryButton .button {background-position: -397px -4019px!important;}#videoMenuTopList #speedChecker.active .button {background-position: -353px -4019px!important;}#videoMenuTopList li.videoMenuList a.userChannelButton span{background-position: -442px -4019px!important;}#videoMenuTopList #speedChecker .button {background-position: -353px -4019px!important;}#videoMenuTopList li.videoMenuList a.downloadButton span{background-position: -177px -4019px!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-sfde3ef9539.png") no-repeat scroll -133px -4019px 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;}.ch_prof{width: 275px !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;}</style>');
  679. $("#videoTitle").remove();
  680. $("#videoHeaderMenu .searchContainer").appendTo("#siteHeaderInner");
  681.  
  682. if( GM_getValue("infotocomepanel_on")=="on" || GM_getValue("spread_on")=="on"){
  683. $("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;}</style>');
  684. }else{
  685. $("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;}</style>');
  686. }
  687.  
  688. }
  689. }
  690.  
  691. //動画情報をコメントパネルに
  692. function infotocomepanel(){
  693. if( GM_getValue("infotocomepanel_on")=="on"){
  694. $("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;}#videoInfo{border:none!important;text-align:left!important;border-bottom:none!important;padding-top:10px!important;height:390px!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:350px!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: 42px;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 .playerTabContent{top:45px!important;}#commentLog div.commentTableContainer{width:100%!important;}#playerTabContainer{overflow:hidden!important;}</style>');
  695.  
  696. $("#videoInfo").appendTo("#playerTabContainer div.playerTabContent");
  697. $("#bottomVideoDetailInformation").appendTo("#videoInfo .videoMainInfoContainer");
  698. $("#videoInfo .parentVideoInfo").appendTo("#videoInfo .videoMainInfoContainer");
  699. $("#videoShareLinks").appendTo("#videoInfo .videoMainInfoContainer");
  700.  
  701. var kirikae1=document.createElement("div");
  702. kirikae1.id="kirikae1";
  703. kirikae1.innerHTML="動画説明文";
  704. document.body.appendChild(kirikae1);
  705. $("#kirikae1").appendTo("#playerTabContainer thead.playerTabHeader tr");
  706. $("#videoInfo").css("display","none");
  707.  
  708. $("#kirikae1").click(function() {
  709. $("#playerTabContainer .playerTabContent .comment,#playerTabContainer .playerTabContent .ng,#playerTabContainer .playerTabContent .nicommend").removeClass("active");
  710. $("#playerTabContainer .playerTabHeader .comment,#playerTabContainer .playerTabHeader .ng,#playerTabContainer .playerTabHeader .nicommend").removeClass("active");
  711. $("#videoInfo").css("display","block");
  712. $("#kirikae1").addClass("active");
  713. });
  714.  
  715. $("#playerTabContainer .playerTabHeader th.comment").click(function() {
  716. $("#playerTabContainer .playerTabHeader .ng,#kirikae1").removeClass("active");
  717. $("#playerTabContainer .playerTabContent .ng").removeClass("active");
  718. $("#videoInfo").css("display","none");
  719. $("#playerTabContainer .playerTabContent .comment,#playerTabContainer .playerTabHeader .comment").addClass("active");
  720. });
  721.  
  722. $("#playerTabContainer .playerTabHeader th.ng").click(function() {
  723. $("#playerTabContainer .playerTabHeader .comment,#kirikae1").removeClass("active");
  724. $("#playerTabContainer .playerTabContent .comment").removeClass("active");
  725. $("#videoInfo").css("display","none");
  726. $("#playerTabContainer .playerTabHeader .ng,#playerTabContainer .playerTabContent .ng").addClass("active");
  727. });
  728.  
  729.  
  730. var timerID = setInterval(
  731. function(){
  732. if(document.getElementById("commentDefault").getElementsByClassName("commentTableContainerInner")[0].style.height!="0px"){
  733.  
  734. setTimeout(function(){
  735. $("#playerTabContainer .playerTabContent .comment,#playerTabContainer .playerTabContent .ng,#playerTabContainer .playerTabContent .nicommend").removeClass("active");
  736. $("#playerTabContainer .playerTabHeader .comment,#playerTabContainer .playerTabHeader .ng,#playerTabContainer .playerTabHeader .nicommend").removeClass("active");
  737. $("#videoInfo").css("display","block");
  738. $("#kirikae1").addClass("active");
  739. clearInterval(timerID);
  740. timerID = null;
  741. },2000);
  742. }
  743. },500);
  744.  
  745.  
  746. if( GM_getValue("infocombine3")=="off"){
  747. $("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-sfde3ef9539.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-sfde3ef9539.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>');
  748. }
  749.  
  750. if( GM_getValue("infocombine3")=="off" && GM_getValue("motto_off")=="on" ){
  751. $("head").append('<style type="text/css">#videoHeader #videoHeaderDetail h2{display:none!important;}#videoHeaderDetail .videoDetailExpand{height:0!important;}</style>');
  752. }
  753. if( GM_getValue("infocombine3")=="off" && GM_getValue("mottoright_on")=="on"){
  754. $("head").append('<style type="text/css">#videoHeader #videoHeaderDetail h2{display:none!important;}#videoHeaderDetail .videoDetailExpand{height:0!important;}</style>');
  755. }
  756. }
  757. }
  758.  
  759. //カスタマイズセット8
  760. function set8(){
  761. if( GM_getValue("set8_on")=="on"){
  762. $("head").append('<style type="text/css">#twoMillion,#tagRelatedBanner{display:none!important;}#leftPanel,#playerBottomAd,#pageFooterAds,#feedbackLink,.videoMenuToggle,#videoTitle,#videoDetailInformation,#videoStartAds,.arrow,#videoComment h4,.extraVideoTrigger .open, .extraVideoTrigger .close,#leftPanelAdAds,#leftPanelAd,#selectionFooter,#footer,#videoReviewBottomAd{display:none!important;}p.dicIcon span.dic.enable{background: url("http://res.nimg.jp/img/watch_zero/sprites/watch-sfde3ef9539.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-sfde3ef9539.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;}#playerContainerSlideArea{margin-bottom:5px!important;}#playlist{clear:both!important;}#playerContainerWrapper{background:transparent!important;padding-top:5px!important;}.videoDetailExpand h2{padding-left:12px!important;}#videoStats li{float:left!important;color:#666666!important;}#videoStats li.videoStatsView{width:115px!important;}#videoStats li.videoStatsComment{width:120px!important;}#videoStats li.videoStatsMylist{width:125px!important;}#videoStats{width:100%!important;height:30px!important;line-height:1.5;font-size:13px!important;border-bottom: 1px solid #CCCCCC !important;padding:10px 0 0 12px!important;background-color:#d4d4d4;}.ranking{color:#666666!important;}#videoHeaderDetail h2{font-size:100%!important;float:left;margin-right:0!important;}.toko{font-size:13px!important;font-weight:normal!important;line-height:1.4!important;}.videoHeaderTitle{font-size:20px!important;}#videoTagContainer .tagInner #videoHeaderTagList li{font-size:12px!important;height:1.2em!important;}#videoTagContainer .tagInner #tagEditContainer{padding-top:0!important;}#videoTagContainer .tagInner #tagEditContainer .note{font-size:12px!important;}#videoTagContainer .tagInner #tagEditContainer .tagAddButton input{height:18px!important;}#userProfile .userIconContainer{width:70px!important;margin:10px 15px!important;}#videoTagContainer{float:left!important;margin-top:0!important;height:auto!important;min-height:42px!important;}#userProfile{width:100%!important;margin-bottom:5px!important;border-bottom: 1px solid #CCCCCC !important;}.profile{width:275px!important;margin-top:10px!important;line-height:1.5em!important;font-size:14px!important;}.profile p{margin-bottom:0!important;line-height:1.3em!important;}#outline{margin-left:10px!important;}#videoHeader{padding:0!important;}#divimg{float:left;}#outline{background:transparent!important;}#videoReviewComment,#videoReview{width:682px!important;}#videoReviewContent #reviewRefresh{width:100px!important;float:right!important;margin-left:auto!important;margin-right:80px!important;}#videoReviewHead{background: none repeat scroll 0 0 #F6F6F6!important;float:right!important;clear:both!important;}#reviewLetterCounter{padding-top:0!important;width:40px!important;float:right!important;margin-left:10px!important;}textarea.newVideoReview{float:right!important;}#videoReviewHead .inputSubmit{margin-top:5px!important;}.videoReviewAside .videoReviewContrl{width:200px!important;float:right!important;}#videoReviewComment,#videoReviewContent,.videoReviewAside{clear:both!important;}#videoReview h3{float:right!important;}p.magnifyButton{float:right!important;width:314px!important;}#videoReviewComment,#videoReview{background:transparent!important;}#videoReviewComment,#videoReviewContent{clear:both!important;}.stream{left:352px!important;}#videoReview {margin:0!important;padding-top:0!important;}#videoReview h3{background-color:#F6F6F6!important;width:308px!important;margin:0!important;padding:3px 0 2px 5px!important;}#playlist {margin:0!important;}#playlistContainer{display:none!important;}#playlistContainer .playlistItem.empty{box-shadow:none!important;}#playlistdiv .pimg{float:left;height:100px!important;overflow:hidden;}#playlistdiv .ptitle{float:left;width:230px;text-align:left!important;padding-left:5px!important;font-size:12px!important;}#playlistdiv .plist{margin:5px 0!important;float:left;width:375px;padding:5px 0 5px 5px!important;}#playlistdiv img{margin-top:0!important;}#playlist .playlistInformation{text-align:left!important;font-size:12px!important;height:58px!important;width:385px!important;line-height:24px!important;}#playlist .playlistInformation .generationMessage{margin-left:10px!important;padding-right:3px!important;width:372px!important;}#playlist .playlistInformation .playbackOption{padding-left:5px!important;border-left:none!important;line-height:24px!important;}#playlist .playlistInformation .playbackOption .option{overflow:visible!important;}#appliPanel{width:0!important;height:0!important;}.videoInformation .itemVideoUad{display:none!important;}.balloon .contentInfo{display:none!important;}.topicPath{width:330px!important;}#searchlist{min-width:375px!important;display:block!important;}.snavi li{float:left;padding:0 10px!important;}.snavi li.active{background-color:#282828!important;}img[src="../../../img/watch_zero/noimage.png"]{display:none!important;}.videoDescription{width:360px!important;padding:10px!important;font-size:14px!important;line-height:1.4em!important;margin-top:15px!important;color:#393F3F;}#videoComment{width:380px!important;margin:0!important;}#footer,#pageFooter{margin:0!important;height:1px!important;padding:0!important;}#playerCommentPanel,#playerCommentPanel .section{width:380px!important;}#playerCommentPanel .section .commentTable{width:378px!important;}#playerCommentPanel .section .commentTable span.time{width:85px}#playerCommentPanel .section .commentTable .commentTableContainer,#playerCommentPanel .section .commentTable .commentTableHeaderOuter{width:378px!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;}#videoInfoHead{display:none!important;}#videoInfoHead, #videoShareLinks, .parentVideoInfo, #bottomVideoDetailInformation, .videoEditMenu{width:365px!important;padding-left:10px!important;}.supplementary{display:block!important;line-height:1.5em!important;}.communityExists{line-height:1.5em!important;}.blogLinks{width:300px!important;}.videoEditMenu{padding:0!important;margin:0!important;}#videoHeaderMenu{width:210px!important;}body{width:100%!important;height:100%!important;overflow-y:scroll!important;position:absolute!important;}html{height:100%!important;overflow:hidden!important;}body.full_with_browser{padding-right:0!important;}#siteHeader #siteHeaderInner .siteHeaderMenuList{float:none!important;}#siteHeader #siteHeaderInner .siteHeaderGlovalNavigation{margin-right:20px!important;}#prefDiv{right:0px!important;}#siteHeaderInner{width:910px!important;}#playerCommentPanelOuter{display:none!important;width:0!important;}#playerCommentPanel{height:100%!important;padding:3px 8px 1px 8px!important;}#content{background-color:#F3F3F3!important;}body.full_with_browser.full_and_mini #content{margin-left:0!important;}#playerContainer{text-align:left!important;}#videoExplorer .column4 .video .balloon{display:block!important;height:46px!important;box-shadow:none!important;padding-top:5px!important;line-height:1.2em!important;top:-80px!important;width:149px!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;}#videoInfo .videoMainInfoContainer{display:block!important;margin-bottom:16px!important;}.content .column.balloon{width:326px!important;}.content .column{float:right!important;}img[src="http://nicmd.nicovideo.jp/images/list_zero.png"]{width:330px!important;height:106px!important;}.mylistDescriptionLink{top:-16px!important;}#nicommend{border-bottom:none!important;}#videoHeaderMenu .searchContainer{display:none!important;}#videoHeaderMenu{margin-top:0!important;}#videoHeader.menuOpened #videoHeaderDetail {margin-top: 0px!important;}#videoMenuTopList li,#videoMenuWrapper{display:block!important;}#videoMenuTopList{width:70px!important;}#videoMenuTopList{right:0!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-sfde3ef9539.png") no-repeat scroll -133px -4019px transparent !important;}#videoMenuTopList li .nicoruButton .nicorub-link span.nicorub-icon {left: 6px!important;top: 6px!important;}#videoMenuTopList li.videoMenuList a.defmylistButton span {background-position: -44px -4019px!important;}#videoMenuTopList li.videoMenuList a.mylistButton span{background-position: -2px -4019px!important;}#videoMenuTopList li.videoMenuList a.uadButton span {background-position: -89px -4019px!important;}#videoMenuTopList .videoMenuList.mymemoryButton .button {background-position: -397px -4019px!important;}#videoMenuTopList #speedChecker.active .button {background-position: -353px -4019px!important;}#videoMenuTopList li.videoMenuList a.userChannelButton span{background-position: -442px -4019px!important;}#videoMenuTopList #speedChecker .button {background-position: -353px -4019px!important;}#videoMenuTopList li.videoMenuList a.downloadButton span{background-position: -177px -4019px!important;}#videoHeader.menuOpened #videoHeaderDetail{margin-top:8px!important;}#videoMenuTopList{padding-right:0!important;}#siteHeaderInner .searchContainer .searchText{height:20px;padding:6px;margin-top:2px;}#siteHeaderInner .searchContainer{display:block!important;position:relative;width:100px;float:left;}#siteHeader{height:36px!important;}.nicommendItemList .item{padding:10px 5px 10px 20px!important;}.addMargin{margin-top:45px!important;}.nicommendHeader .reload{margin-top:30px!important;}#videoHeaderDetail .videoDetailExpand{cursor:auto!important;padding:0 8px 5px 0!important;}#videoTagContainer{padding-right:0!important;}span.dicIcon{display:none!important;}.ch_prof{width:100%!important;background:transparent!important;margin-bottom:5px!important;border-bottom: 1px solid #CCCCCC !important;}.channel .ch_prof a.symbol{width:90px!important;}.channel .ch_prof a.symbol img{width:80px!important;height:80px!important;box-shadow:none!important;}.channel .ch_prof a.symbol:hover img{box-shadow:none!important;}.channel .ch_prof .info{padding:0 0 0 90px!important;}#videoHeaderDetail .ch_breadcrumb{display:none!important;}.channel #videoHeaderDetail .ch_prof #ch_prof h6{font-size:13px!important;}.userIconContainer a img{border:none!important;}.toggleTagEdit{width:60px!important;}#videoTagContainer .tagInner #videoHeaderTagList{padding-left:80px!important;}#videoComment .videoDescription a,.supplementary li a{color:#393F3F!important;text-decoration:underline!important;}#userProfile div.profile a{color:#393F3F!important;text-decoration:underline!important;}.profile h4 a{padding-left:0!important;}#divrightbar6 .parentVideoInfo{margin-bottom:5px!important;padding-bottom:5px!important;border-bottom: 1px solid #CCCCCC !important;}#userProfile div.profile span.favVideoOwner{display:block!important;}#divrightbar6 .contentsTree {background:none repeat scroll 0 0 #141414;color:#FFFFFF;padding: 4px 8px 2px;display:block;margin-bottom:5px!important;width:60px!important;}#divrightbar6 .contentsTreeIcon {background:url("http://res.nimg.jp/img/watch_zero/watch-s6283f818f1.png") no-repeat scroll 0 0 transparent;display:inline-block;height:18px;margin-top:-4px;vertical-align:middle;width:18px;margin-right:5px;}#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12{border-left:1px #CCCCCC solid !important;}#divrightbar{position:fixed;top:0;z-index:9999;height:100%;width:65px;background-color:#b8cfe8;}#divrightbar2{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:699px!important;overflow-y:scroll!important;}#divrightbar4{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px;background-color:#e7e9fd;overflow:scroll;overflow-x:hidden;}#divrightbar5{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px;background-color:#e7e9fd;overflow:scroll;overflow-x:hidden;}#divrightbar6{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px;background-color:#e7e9fd;overflow:scroll;overflow-x:hidden;}#divrightbar7{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px!important;background-color: #F4F4F4;}#divrightbar9{position:fixed;right:0px;top:0;z-index:99;height:100%;width:200px;background-color:#e7e9fd;overflow:scroll;overflow-x:hidden;}#divrightbar10{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px!important;background-color: #F4F4F4;}#divrightbar11{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px!important;background-color: #E7E9FD;}#divrightbar12{position:fixed;right:0px;top:0;z-index:99999;height:100%;width:400px!important;background-color: #E7E9FD;}body.size_small #divrightbar{left:1095px!important;}body.size_small #divrightbar2{left:398px!important;}body.size_small #divrightbar4{left:695px!important;}body.size_small #divrightbar5{left:695px!important;}body.size_small #divrightbar6{left:695px!important;}body.size_small #divrightbar7{left:695px!important;}body.size_small #divrightbar9{left:893px!important;}body.size_small #divrightbar10{left:695px!important;}body.size_small #divrightbar11{left:695px!important;}body.size_medium #divrightbar{left:1095px!important;}body.size_small #divrightbar12{left:695px!important;}body.size_medium #divrightbar{left:1095px!important;}body.size_medium #divrightbar2{left:398px!important;}body.size_medium #divrightbar4{left:695px!important;}body.size_medium #divrightbar5{left:695px!important;}body.size_medium #divrightbar6{left:695px!important;}body.size_medium #divrightbar7{left:695px!important;}body.size_medium #divrightbar9{left:893px!important;}body.size_medium #divrightbar10{left:695px!important;}body.size_medium #divrightbar11{left:695px!important;}body.size_medium #divrightbar12{left:695px!important;}body.size_normal #divrightbar{left:1320px!important;}body.size_normal #divrightbar2{left:623px!important;}body.size_normal #divrightbar4{left:920px!important;}body.size_normal #divrightbar5{left:920px!important;}body.size_normal #divrightbar6{left:920px!important;}body.size_normal #divrightbar7{left:920px!important;}body.size_normal #divrightbar9{left:1121px!important;}body.size_normal #divrightbar10{left:920px!important;}body.size_normal #divrightbar11{left:920px!important;}body.size_normal #divrightbar12{left:920px!important;}#playerCommentPanel{border-radius:0!important;}.nicommendHeader{border:none!important;border-radius:0!important;}#playerBottomAd,#pageFooterAds,#selectionFooter,#videoReviewBottomAd{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;}#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;}ul#videoHeaderTagList li{margin-right:17px!important;}#outline{padding-top:0!important;}#playerContainerWrapper{padding-bottom:0!important;}.outer{margin:0 auto!important;}.nicommendHeader .description{display:none!important;}#nicommendContainer .content .nicoruButton{display:none!important;}#menudiv li{line-height:1.5em;}#divrightbar6 .parentVideoInfo .videoThumb .videoThumbLink img.videoThumbImg{width:65px!important;height:50px!important;}#bottomVideoDetailInformation .supplementary li span a{margin:0 5px!important;}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:25px!important;}#siteHeaderInner{width:95%!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;}#playerContainer,#playerContainerSlideArea,#content,#siteHeaderInner,.outer,#foot_inner{margin-left:0!important;}#videoHeader{margin-left:10px!important;}.wrapper{padding:0!important;}.column{background-color:#e7e9fd!important;}#nicommend .item, #nicommendSearchResult .item, #nicommendPanel .item,.content .column.balloon{background: url("http://nicmd.nimg.jp/css/../images/bg_content_default.png") repeat-x scroll 0 0 #F4F4F4!important;}#videoTagContainer .tagInner #videoTagContainerPin.active{visibility:hidden!important;}#siteHeader{display:none!important;}body #content {padding-top: 0px!important;}#siteHeaderUserContainer{border:none!important;}#divrightbar9{font-size:17px;line-height:1.6em;padding-top:10px!important;}#divrightbar9 li{list-style-type:square!important;list-style-position:inside!important;padding-left:10px!important;}#divrightbar9 a {color: #393F3F !important;}#divrightbar9 li.menuServiceList{border-bottom:1px #CCCCCC solid !important;margin-bottom:5px!important;padding-bottom:5px!important;}#divrightbar9 li.siteHeaderHorizon{border-top:1px #CCCCCC solid !important;margin-top:5px!important;padding-top:5px!important;}#divrightbar9 li:nth-child(6),#divrightbar9 li:nth-child(12),#divrightbar9 li:nth-child(24){border-bottom:1px #CCCCCC solid !important;margin-bottom:5px!important;padding-bottom:5px!important;}#divrightbar9 li:last-child{margin-bottom:20px!important;}#divrightbar9 a:visited{color:#d90d69!important;}#bottomContentTabContainer.videoSelection #outline{display:block!important;}#ichibaDisplayContent{position:fixed!important;top:0!important;z-index:99999!important;margin:0!important;left:auto!important;right:0px!important;height:100%!important;width:636px!important;}#ichibaConsole,#ichibaConsolePreviewData{height:100%!important;}#ichibaConsoleContents{height:100%!important;overflow-y:scroll!important;}#ichibaConsoleContents{width:360px!important;}#ichibaConsole{width:630px!important;}#ichibaConsoleSearch{height:150px!important;}#ichibaConsolePreviewData{margin-top:-90px!important;}#ichiba_edit_videoitems_contents{margin-top:90px!important;background: none repeat scroll 0 0 #EBEBED!important;}#ichibaConsolePreviewData{background:transparent!important;}#ichibaConsolePreview #ichibaConsoleEnd{padding-right:17px!important;}.nicoruWrapper,#ichibaMain .nicoru,.cell span.nicoru-button,.nicorepoNicoru{display:none!important;}#videoShareLinks .socialLinkNicoru,.nicoruPia,.reviewNicoru{display:none!important;}#ichibaMain,#nicoIchiba,.outer,.main{width:100%!important;}#ichibaMainFooter{clear:both!important;}.rowJustify{clear:none!important;}#ichibaMain #ichibaMainHeader{margin-right: 20px!important;}#ichibaMainFooter p.info,#ichibaMainFooter .associate{display:none!important;}body.size_small.no_setting_panel.videoSelection #playerContainerWrapper{width:898px!important;margin-left:10px!important;position:relative!important;}body.size_small #videoMenuWrapper{width:80px!important;position:absolute!important;left:818px!important;top:0!important;}#playerContainerSlideArea.size_small #nicoplayerContainer, #playerContainerSlideArea.size_small #external_nicoplayer{width:898px!important;}body.size_small .outer{width:672px!important;}body.size_small.no_setting_panel.videoSelection #playerContainerWrapper{height:auto!important;}#playerContainerSlideArea.size_small{width:898px!important;}#playerContainerSlideArea.size_small #playerContainer,#playerContainerSlideArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #nicoplayerContainer, #playerContainerSlideArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #external_nicoplayer{height: 563px!important;}#playerContainerSlideArea.size_small{margin-left:0!important;}body.size_medium .videoDetailExpand h2{max-width:440px!important;}body.size_medium #outline,body.size_medium #videoHeaderDetail,body.size_medium #videoHeader{width:672px!important;}body.size_small #outline,body.size_small #videoHeaderDetail,body.size_small #videoHeader{width:672px!important;}body.size_medium #videoTagContainer,body.size_medium #videoTagContainer.default{width:592px!important;min-width:592px!important;}body.size_small #videoTagContainer,body.size_small #videoTagContainer.default{width:592px!important;min-width:592px!important;}body.size_medium .videoDetailExpand{width:592px!important;float:left!important;}body.size_medium #videoMenuWrapper{width:80px!important;position:absolute!important;left:592px!important;}body.size_normal #outline,body.size_normal #videoHeader,body.size_normal #videoHeaderDetail{width:898px!important;}body.size_normal #videoTagContainer,body.size_normal #videoTagContainer.default{width:808px!important;min-width:808px!important;}body.size_normal .videoDetailExpand{width:808px!important;float:left!important;}body.size_normal #videoMenuWrapper{width:80px!important;position:absolute!important;left:818px!important;}#playerNgPanel #commentNgSettingHeader .commentNgSettingInner .ngAddPanelTriger{width:120px!important;}#playerTabWrapper{display:none!important;}#videoHeader div.shortVideoInfo,#videoHeader div.toggleDetailExpand{display:none!important;}#playerContainerWrapper{margin-left:10px!important;}#playerAlignmentArea{margin-left:0!important;}#divrightbar5 .videoExplorerContentWrapper{margin-left:5px!important;padding-top:10px!important;}#videoExplorer .videoExplorerMenu{position:relative!important;width:355px!important;top:0!important;height:50px!important;display:none!important;}#videoExplorer .videoExplorerMenu .videoExplorerMenuInner{width:355px!important;position:relative!important;top:0!important;left:0!important;}#videoExplorer div.videoExplorerMenu div:first-of-type{height:0!important;}#videoExplorer div.videoExplorerMenu .itemList li.item span.text{text-overflow: ellipsis!important;}#videoExplorer .videoExplorerMenu .item{float:left!important;width:88px!important;white-space: nowrap;overflow: hidden;text-overflow: ellipsis!important;}.videoExplorerBody .searchBox .searchText .searchInput{width:80%!important;}#videoExplorer .videoExplorerBody{display:block!important;}.videoExplorerContent{padding:0!important;width:375px!important;}#videoExplorerExpand{display:none!important;}#selectionSideAd{display:none!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper{width:898px!important;height:500px!important;box-shadow:none!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper #playerAlignmentArea,#playerAlignmentArea.size_small #playerNicoplayer, #playerAlignmentArea.size_small #external_nicoplayer{width:898px!important;height:500px!important;}#nicoplayerContainer #external_nicoplayer{position:relative!important;}.uadTagRelated .default,.uadTagRelated.isEmpty .empty{height:270px!important;}.uadTagRelatedContainer{background: url("http://res.nimg.jp/img/common/uad/bg_grade_2.png") repeat-x scroll 0 0 #FFDD00;}#divrightbar10 #playerNgPanel .commentTable span.source{width:100px;}#playerNgPanel .commentTable span.lastHit{width:110px;}#playerAlignmentArea.size_medium #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:468px!important;}#playerAlignmentArea.size_normal #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:568px!important;}body.full_with_browser #playerAlignmentArea,body.full_with_browser #playerContainerWrapper{margin-left:0!important;}body.full_with_browser #playerAlignmentArea #playerContainer.controll_panel.oldTypeCommentInput.text_marquee{height:100%!important;}#selectsearch{font-size:16px!important;height:26px!important;width:70px!important;}#bar_search{height:24px!important;width:230px!important;}#head_search{margin-left:8px!important;padding-top:20px!important;border-top:1px #CCCCCC solid !important;}#videoMenuWrapper{overflow:visible!important;}#videoMenuTopList{margin-top:0!important;}#videoExplorer,#videoExplorer .videoExplorerBody,.videoExplorerContentWrapper,#videoExplorer .videoExplorerMenu .item.active{background:transparent!important;}#videoExplorer .videoExplorerMenu .item{border:none!important;}.uadTagRelated .default{background: url("http://res.nimg.jp/img/common/uad/bg_grade_2.png") repeat-x scroll 0 0 #FFDD00!important;}body.full_with_browser #divrightbar{display:none!important;}#rbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:15px 0 10px 7px!important;}#pbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#sbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#dbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#cbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#gbutton{font-size:12px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#mcbutton{font-size:11px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#ombutton{font-size:11px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#mbutton{font-size:11px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;}#divrightbar #zero{font-size:11px;line-height:1.2em;cursor:pointer;margin:0 0 10px 7px!important;position:relative!important;right:auto!important;top:auto!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer .thumbnail, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .noImage, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer .thumbnail,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper .itemImage{width:130px!important;height:100px!important;top:0!important;left:0!important;margin:0 17px!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .playTime, .videoExplorerBody .videoExplorerContent .suggestVideo .item .playTime{right:20px!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .thumbnailContainer, .videoExplorerBody .videoExplorerContent .suggestVideo .item .thumbnailContainer,.uadTagRelated .default .itemList .item .imageContainer .itemImageWrapper,.uadTagRelated .default .itemList .item .imageContainer{width:165px!important;height:100px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{width:165px!important;}.uadTagRelated .default .itemList .item.graderankSilver .uadFrame,.uadTagRelated .default .itemList .item.graderankGold .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.silver .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.silver .uadFrame,.videoExplorerBody .videoExplorerContent .contentItemList .item.gold .uadFrame, .videoExplorerBody .videoExplorerContent .suggestVideo .item.gold .uadFrame{background-size:130px 100px!important;height:100px!important;margin:0 17px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item{margin-right:10px!important;margin-left:10px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .item.item4n-3{clear:none!important;}.videoExplorerBody .contentItemList{width:375px!important;max-width:375px!important;min-width:375px!important;}.videoExplorerBody .contentItemList .createdTime{text-align:center!important;}.uadTagRelated .default .itemList .item{margin-right:5px!important;margin-left:5px!important;margin-top:5px!important;}.uadTagRelated .default{padding-bottom:40px!important;}#wallImageContainer .wallAlignmentArea , #chipWallList{display:none!important;}#ichibaMain .balloonUe{bottom:auto!important;}#ichibaMain .balloonUe a{height:30px!important;overflow:hidden!important;}.balloon .uadComments{font-size:13px!important;line-height:1.2em!important;}#bottomContentTabContainer.videoExplorer #outline{display:block!important;position:relative!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper{position:relative!important;height:468px!important;width:100%!important;}#playerAlignmentArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #nicoplayerContainer, #playerAlignmentArea.size_small #playerContainer.controll_panel.oldTypeCommentInput #external_nicoplayer{height:468px!important;width:672px!important;}body.size_small.no_setting_panel.videoExplorer #playerContainerWrapper #playerAlignmentArea{width:100%!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .video .column4 span.title{display:block!important;clear:both!important;height:70px!important;}.videoExplorerBody .videoExplorerContent.column4 .contentItemList .video .column4 .videoInformation{display:block!important;}.videoExplorerBody .videoExplorerContent .contentItemList .item .videoInformation .info, .videoExplorerBody .videoExplorerContent .suggestVideo .item .videoInformation .info{display:block!important;}#videoExplorerBackContainer{visibility:hidden!important;}#ichibaMain .balloonUe{font-size:11px!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 dl.pia dd.pia{width:123px!important;}#ichibaMain .itemname a {color: #4A6EBC!important;}#ichibaMainFooter p.info,#ichibaMainFooter p.associate,#ichibaMainFooter p.commandArea2,#ichibaMainLogo,#ichibaMainHeader{display:none!important;}#nicoIchiba{margin-top:10px!important;}body.size_medium .ichiba_item img,body.size_small .ichiba_item img{width:144px!important;height:144px!important;}body.size_medium #ichibaMain .balloonUe,body.size_small #ichibaMain .balloonUe{width:146px!important;}body.size_medium #ichibaMain .balloonUe a,body.size_small #ichibaMain .balloonUe a{background-size: 146px 46px !important;padding:6px 4px 3px!important;}body.size_medium #ichibaMain .balloonShita img,body.size_small #ichibaMain .balloonShita img{width:146px!important;}body.size_medium #ichibaMain dl,body.size_small #ichibaMain dl{width:146px!important;margin: 0 11px 10px!important;overflow:hidden!important;height:450px!important;}body.size_normal .ichiba_item img{width:130px!important;height:130px!important;}body.size_normal #ichibaMain .balloonUe{width:132px!important;}body.size_normal #ichibaMain .balloonUe a{background-size: 132px 46px !important;padding:6px 4px 3px!important;}body.size_normal #ichibaMain .balloonShita img{width:132px!important;}body.size_normal #ichibaMain dl{width:135px!important;margin: 0 7px 10px!important;overflow:hidden!important;height:450px!important;}#divrightbar10 .commentTableContainerInner{width:auto!important;}#videoMenuTopList li{overflow:hidden!important;}#toggle9,#toggle11{margin-left:15px;cursor:pointer;padding-top: 20px !important;}#toggle9 *,#toggle11 *{color:#099EF9;}#content div.videoHeaderOuter{min-height:150px;}#toggle11{margin-bottom:30px;}body{width:100%!important;height:100%!important;overflow-y:scroll!important;position:absolute!important;}html{height:100%!important;overflow:hidden!important;}body #content {padding-top: 0px!important;margin-top:8px!important;}</style>');
  763.  
  764. var divimg=document.createElement("div");
  765. divimg.id="divimg";
  766. document.body.appendChild(divimg);
  767. $("#videoThumbnailImage").css("height","100px").appendTo("#divimg");
  768. $("#divimg").insertBefore(".videoDetailExpand h2");
  769. $("#videoInfoHead p:first-child").appendTo(".videoDetailExpand h2").addClass("toko");
  770. $(".videoHeaderTitle").appendTo(".videoDetailExpand h2");
  771. $("#videoStats .ranking").appendTo(".videoDetailExpand .toko");
  772. $(".dicIcon").appendTo(".videoDetailExpand h2").css({"color":"#00BFFF","cursor":"pointer"});
  773.  
  774.  
  775. var divrightbar2=document.createElement("div");
  776. divrightbar2.id="divrightbar2";
  777. document.body.appendChild(divrightbar2);
  778. $("#videoReview").appendTo("#divrightbar2");
  779.  
  780. var divrightbar4=document.createElement("div");
  781. divrightbar4.id="divrightbar4";
  782. document.body.appendChild(divrightbar4);
  783. $("#playlist").appendTo("#divrightbar4");
  784.  
  785. var playlistdata= $("#playlistDataContainer").text();
  786. playlistdata=(new Function("return " + playlistdata))();
  787. var playlistdiv=document.createElement("div");
  788. playlistdiv.id="playlistdiv";
  789. for(var i=0;i<playlistdata["playlist"].length;i++){
  790. playlistdiv.innerHTML+="<li class='plist'><div class='pimg'><a class='aimg' href='http://www.nicovideo.jp/watch/"+playlistdata["playlist"][i]["id"]+"'><img src='"+playlistdata["playlist"][i]["thumbnail_url"]+"'></a></div><div class='ptitle'><p><a href='http://www.nicovideo.jp/watch/"+playlistdata["playlist"][i]["id"]+"'><B>"+playlistdata["playlist"][i]["title"]+"</a></B></p><p>再生:"+playlistdata["playlist"][i]["view_counter"]+" コメ数:"+playlistdata["playlist"][i]["num_res"]+"<BR>マイリス:"+playlistdata["playlist"][i]["mylist_counter"]+"</p></div></li>";
  791. }
  792. $("#divrightbar4").append(playlistdiv);
  793. played="";
  794. function nowplaying(){
  795. var nowwatch=window.location.href.replace(/(http:\/\/www\.nicovideo\.jp\/watch\/)(sm|nm)([0-9]+)\?*.*/,"$1$2$3");
  796. var now=document.getElementsByClassName("aimg");
  797. if(nowwatch!=played){
  798. for(var j=0;j<now.length;j++){
  799. if(now[j].href==nowwatch){
  800. now[j].parentNode.parentNode.style.background="#9b1543";
  801. }else{
  802. now[j].parentNode.parentNode.style.background="#e7e9fd";
  803. }
  804. }
  805. played=nowwatch;
  806. }
  807. }
  808. setInterval(function(){nowplaying()},5000);
  809.  
  810. var divrightbar5=document.createElement("div");
  811. divrightbar5.id="divrightbar5";
  812. document.body.appendChild(divrightbar5);
  813. $("#videoExplorer").appendTo("#divrightbar5");
  814.  
  815. function saisettei(){
  816. $("#videoHeaderTagList li.videoHeaderTag a.videoHeaderTagLink,.showOtherVideos,.videoDescription a[href*='http://www.nicovideo.jp/mylist/']").click( function() {
  817. $("#divrightbar5").show("slow");
  818. $("#divrightbar2,#divrightbar4,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  819. $("#videoExplorerBackContainer").click();
  820. });
  821. }
  822. saisettei();
  823. setInterval(function(){saisettei()},3000);
  824.  
  825. function denymini(){
  826. if($("body").hasClass("setting_panel")){
  827. return;
  828. }else if($("body").hasClass("size_small")){
  829. $("#videoExplorerBackContainer").click();
  830. }
  831. }
  832. denymini();
  833. setInterval(function(){denymini()},500);
  834.  
  835.  
  836. var divrightbar6=document.createElement("div");
  837. divrightbar6.id="divrightbar6";
  838. document.body.appendChild(divrightbar6);
  839. $("#videoStats").appendTo("#divrightbar6");
  840. $("#userProfile,#videoInfo .videoMainInfoContainer .ch_prof").appendTo("#divrightbar6");
  841. $(".usericon").css({"width":"70px","height":"70px","float":"left"});
  842. $("#videoInfo").appendTo("#divrightbar6");
  843.  
  844. setTimeout(function(){
  845. $("#videoInfo .parentVideoInfo,#videoInfoHead,#bottomVideoDetailInformation").appendTo("#divrightbar6");
  846. $("#videoShareLinks").appendTo("#divrightbar6");
  847. },1000);
  848.  
  849. var divrightbar7=document.createElement("div");
  850. divrightbar7.id="divrightbar7";
  851. document.body.appendChild(divrightbar7);
  852. $("#playerCommentPanel").appendTo("#divrightbar7");
  853.  
  854.  
  855. var divrightbar10=document.createElement("div");
  856. divrightbar10.id="divrightbar10";
  857. document.body.appendChild(divrightbar10);
  858. $("#playerNgPanel").appendTo("#divrightbar10");
  859.  
  860. var divrightbar11=document.createElement("div");
  861. divrightbar11.id="divrightbar11";
  862. document.body.appendChild(divrightbar11);
  863. divrightbar11.innerHTML='<iframe src="'+$(".mylistComment .mylistCommentLink").attr("href")+'" style="width:400px;height:100%;border:none;" id="iframe00001"></iframe>'
  864. setTimeout(function(){
  865. $("#divrightbar11 #iframe00001").contents().find("head").append('<style type="text/css">body{background:none #E7E9FD !important;}#siteHeader,#PAGEHEADER,#PAGEFOOTER{display:none!important;}#siteHeader,#siteHeader #siteHeaderInner{background:transparent!important;}#PAGECONTAINER{padding-top:0!important;}#PAGEBODY,.body_984{margin:0!important;width:380px!important;}.content_672_solo{width:380px!important;}.content_672_solo .font12{font-size:10px!important;}.content_672_solo .font16{font-size:15px!important;}.content_672_solo table{width:380px!important;}.content_672_solo tr{width:380px!important;}.content_672_solo table:nth-child(3){padding-top:20px!important;border-top:1px solid #CCC!important;}.content_672_solo .mb8p4{width:380px!important;background-color:#FFEEFF!important;}#PAGECONTAINER{background-color:#e7e9fd;}.mb8p4{display:none!important;}</style>');
  866. },2000);
  867.  
  868.  
  869. var divrightbar12=document.createElement("div");
  870. divrightbar12.id="divrightbar12";
  871. document.body.appendChild(divrightbar12);
  872. divrightbar12.innerHTML='<iframe src="'+$(".mylist .openMylist").attr("href")+'" style="width:400px;height:100%;border:none;" id="iframe00002"></iframe>'
  873. setTimeout(function(){
  874. $("#divrightbar12 #iframe00002").contents().find("head").append('<style type="text/css">body{background:none #E7E9FD !important;}#siteHeader,#PAGEHEADER,#PAGEFOOTER{display:none!important;}#siteHeader,#siteHeader #siteHeaderInner{background:transparent!important;}#PAGECONTAINER{padding-top:0!important;}#PAGEBODY,.body_984{margin:0!important;width:380px!important;}.content_672_solo{width:380px!important;}.content_672_solo .font12{font-size:10px!important;}.content_672_solo .font16{font-size:15px!important;}.content_672_solo table{width:380px!important;}.content_672_solo tr{width:380px!important;}.content_672_solo table:nth-child(3){padding-top:20px!important;border-top:1px solid #CCC!important;}.content_672_solo .mb8p4{width:380px!important;background-color:#FFEEFF!important;}#PAGECONTAINER{background-color:#e7e9fd;}.mb8p4{display:none!important;}</style>');
  875. },2000);
  876.  
  877.  
  878. var divrightbar=document.createElement("div");
  879. divrightbar.id="divrightbar";
  880. document.body.appendChild(divrightbar);
  881.  
  882. var rbutton=document.createElement("div");
  883. rbutton.id="rbutton";
  884. rbutton.innerHTML="レビュー";
  885. document.body.appendChild(rbutton);
  886. $("#rbutton").appendTo("#divrightbar");
  887. $("#divrightbar2").hide();
  888. $("#rbutton").click(function() {
  889. $("#divrightbar2").animate(
  890. {width:"toggle",opacity:"toggle"},
  891. "slow"
  892. );
  893. $("#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  894. });
  895.  
  896. var pbutton=document.createElement("div");
  897. pbutton.id="pbutton";
  898. pbutton.innerHTML="playlist";
  899. document.body.appendChild(pbutton);
  900. $("#pbutton").appendTo("#divrightbar");
  901. $("#divrightbar4").hide();
  902. $("#pbutton").click(function() {
  903. $("#divrightbar4").animate(
  904. {width:"toggle",opacity:"toggle"},
  905. "slow"
  906. );
  907. $("#divrightbar2,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  908. });
  909.  
  910. var sbutton=document.createElement("div");
  911. sbutton.id="sbutton";
  912. sbutton.innerHTML="検索結果";
  913. document.body.appendChild(sbutton);
  914. $("#sbutton").appendTo("#divrightbar");
  915. $("#divrightbar5").hide();
  916. $("#sbutton").click(function() {
  917. $("#divrightbar5").animate(
  918. {width:"toggle",opacity:"toggle"},
  919. "slow"
  920. );
  921. $("#divrightbar2,#divrightbar4,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  922. });
  923.  
  924. var dbutton=document.createElement("div");
  925. dbutton.id="dbutton";
  926. dbutton.innerHTML="動画説明";
  927. document.body.appendChild(dbutton);
  928. $("#dbutton").appendTo("#divrightbar");
  929. $("#dbutton").click(function() {
  930. $("#divrightbar6").animate(
  931. {width:"toggle",opacity:"toggle"},
  932. "slow"
  933. );
  934. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  935. });
  936.  
  937. var cbutton=document.createElement("div");
  938. cbutton.id="cbutton";
  939. cbutton.innerHTML="コメ一覧";
  940. document.body.appendChild(cbutton);
  941. $("#cbutton").appendTo("#divrightbar");
  942. $("#cbutton").click(function() {
  943. $("#divrightbar7").animate(
  944. {width:"toggle",opacity:"toggle"},
  945. "slow"
  946. );
  947. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  948. });
  949.  
  950. var gbutton=document.createElement("div");
  951. gbutton.id="gbutton";
  952. gbutton.innerHTML="NG設定";
  953. document.body.appendChild(gbutton);
  954. $("#gbutton").appendTo("#divrightbar");
  955. $("#gbutton").click(function() {
  956. $("#divrightbar10").animate(
  957. {width:"toggle",opacity:"toggle"},
  958. "slow"
  959. );
  960. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar11,#divrightbar12").hide("slow");
  961. });
  962.  
  963.  
  964. var mcbutton=document.createElement("div");
  965. mcbutton.id="mcbutton";
  966. mcbutton.innerHTML="マイリスコメント";
  967. document.body.appendChild(mcbutton);
  968. $("#mcbutton").appendTo("#divrightbar");
  969. $("#mcbutton").click(function() {
  970.  
  971. $("#divrightbar11 #iframe00001").attr("src",$(".mylistComment .mylistCommentLink").attr("href"));
  972. setTimeout(function(){
  973. $("#divrightbar11 #iframe00001").contents().find("head").append('<style type="text/css">body{background:none #E7E9FD !important;}#siteHeader,#PAGEHEADER,#PAGEFOOTER{display:none!important;}#siteHeader,#siteHeader #siteHeaderInner{background:transparent!important;}#PAGECONTAINER{padding-top:0!important;}#PAGEBODY,.body_984{margin:0!important;width:380px!important;}.content_672_solo{width:380px!important;}.content_672_solo .font12{font-size:10px!important;}.content_672_solo .font16{font-size:15px!important;}.content_672_solo table{width:380px!important;}.content_672_solo tr{width:380px!important;}.content_672_solo table:nth-child(3){padding-top:20px!important;border-top:1px solid #CCC!important;}.content_672_solo .mb8p4{width:380px!important;background-color:#FFEEFF!important;}#PAGECONTAINER{background-color:#e7e9fd;}.mb8p4{display:none!important;}</style>');
  974. $("#divrightbar11 #iframe00001").contents().find("a").attr("target","_blank");
  975. },1000);
  976.  
  977. $("#divrightbar11").animate(
  978. {width:"toggle",opacity:"toggle"},
  979. "slow"
  980. );
  981. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar12").hide("slow");
  982. });
  983.  
  984.  
  985. var ombutton=document.createElement("div");
  986. ombutton.id="ombutton";
  987. ombutton.innerHTML="公開マイリスト";
  988. document.body.appendChild(ombutton);
  989. $("#ombutton").appendTo("#divrightbar");
  990. $("#ombutton").click(function() {
  991.  
  992. $("#divrightbar12 #iframe00002").attr("src",$(".mylist .openMylist").attr("href"));
  993. setTimeout(function(){
  994. $("#divrightbar12 #iframe00002").contents().find("head").append('<style type="text/css">body{background:none #E7E9FD !important;}#siteHeader,#PAGEHEADER,#PAGEFOOTER{display:none!important;}#siteHeader,#siteHeader #siteHeaderInner{background:transparent!important;}#PAGECONTAINER{padding-top:0!important;}#PAGEBODY,.body_984{margin:0!important;width:380px!important;}.content_672{width:380px!important;}.content_672 .font12{font-size:10px!important;}.content_672 .font16{font-size:15px!important;}.content_672 table{width:380px!important;}.content_672 tr{width:380px!important;}.content_672 table:nth-child(3){padding-top:20px!important;border-top:1px solid #CCC!important;}.content_672_solo .mb8p4{width:380px!important;background-color:#FFEEFF!important;}#PAGECONTAINER{background-color:#e7e9fd;}.mb8p4{display:none!important;}</style>');
  995. $("#divrightbar12 #iframe00002").contents().find("a").attr("target","_blank");
  996. },1000);
  997.  
  998. $("#divrightbar12").animate(
  999. {width:"toggle",opacity:"toggle"},
  1000. "slow"
  1001. );
  1002. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10,#divrightbar11").hide("slow");
  1003. });
  1004.  
  1005.  
  1006. var mbutton=document.createElement("div");
  1007. mbutton.id="mbutton";
  1008. mbutton.innerHTML="ヘッダー";
  1009. document.body.appendChild(mbutton);
  1010. $("#mbutton").appendTo("#divrightbar");
  1011. $("#divrightbar9").hide();
  1012. $("#mbutton").click(function() {
  1013. $("#divrightbar9").animate(
  1014. {width:"toggle",opacity:"toggle"},
  1015. "slow"
  1016. );
  1017. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar10,#divrightbar11,#divrightbar12").hide("slow");
  1018. });
  1019.  
  1020. document.getElementById("zero").innerHTML="設定";
  1021. $("#zero").appendTo("#divrightbar");
  1022.  
  1023.  
  1024. $("head").append('<style type="text/css">#siteHeader,#siteHeaderRightMenu,#siteHeaderLeftMenu,#siteHeaderRightMenuUnfix{display:none!important;}</style>');
  1025.  
  1026. var divrightbar9=document.createElement("div");
  1027. divrightbar9.id="divrightbar9";
  1028. document.body.appendChild(divrightbar9);
  1029. $(".siteHeaderGlovalNavigation li").appendTo("#divrightbar9");
  1030. $("#siteHeaderLeftMenuContainer li").appendTo("#divrightbar9");
  1031. $(".siteHeaderMenuList li").appendTo("#divrightbar9");
  1032. $("#siteHeaderRightMenuContainer li").appendTo("#divrightbar9");
  1033.  
  1034.  
  1035.  
  1036. var contenttreecheck = $("#divrightbar6 .parentVideoInfo a.contentsTree").attr("href");
  1037. if(contenttreecheck==""){
  1038. $("#divrightbar6 div.parentVideoInfo").css("display","none");
  1039. }
  1040.  
  1041. var iconcheck = $("#divrightbar6 #userProfile a.userIconLink").attr("href");
  1042. if(iconcheck==""){
  1043. $("#divrightbar6 #userProfile").css("display","none");
  1044. }
  1045.  
  1046.  
  1047.  
  1048. setTimeout(function(){
  1049. $("#divrightbar6").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' src='http://res.nimg.jp/img/base/head/search/search.png' type='image'></form></div>");
  1050.  
  1051. $("#selectsearch").change(function() {
  1052. if($("#selectsearch").val()=="word"){
  1053. $("#head_search_form").attr("action","http://www.nicovideo.jp/search/")
  1054. }else if($("#selectsearch").val()=="tag"){
  1055. $("#head_search_form").attr("action","http://www.nicovideo.jp/tag/")
  1056. }
  1057. });
  1058. },3000);
  1059.  
  1060.  
  1061.  
  1062. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar9,#divrightbar10,#divrightbar11,#divrightbar12").hide();
  1063. $("#divrightbar6,#divrightbar7").show();
  1064.  
  1065.  
  1066. var timerID2 = setInterval(
  1067. function(){
  1068. if(document.getElementById("commentDefault").getElementsByClassName("commentTableContainerInner")[0].style.height!="0px"){
  1069.  
  1070. $("#playerCommentPanel .section .commentTable .commentTableHeader span.vpos").click();
  1071.  
  1072. $("#videoExplorerExpand a.expandButton").click();
  1073. $("#videoExplorerBackContainer").click();
  1074.  
  1075. $("#divrightbar7").hide();
  1076.  
  1077. clearInterval(timerID2);
  1078. timerID2 = null;
  1079.  
  1080. }
  1081. },1000);
  1082.  
  1083.  
  1084.  
  1085. document.onkeydown = function(e){
  1086. if(e.target.type=="textarea"||e.target.type=="text"){
  1087. return;
  1088. }else{
  1089. switch(e.keyCode){
  1090. case 83:
  1091. // $("#divrightbar5").show("slow");
  1092. $("#divrightbar5").animate(
  1093. {width:"toggle",opacity:"toggle"},
  1094. "slow"
  1095. );
  1096. $("#divrightbar2,#divrightbar4,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10").hide("slow");
  1097. // $("#searchResultSearchBox .searchForm .searchText .searchInput").focus();
  1098. break;
  1099. case 82:
  1100. $("#divrightbar2").animate(
  1101. {width:"toggle",opacity:"toggle"},
  1102. "slow"
  1103. );
  1104. $("#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10").hide("slow");
  1105. break;
  1106. case 80:
  1107. $("#divrightbar4").animate(
  1108. {width:"toggle",opacity:"toggle"},
  1109. "slow"
  1110. );
  1111. $("#divrightbar2,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9,#divrightbar10").hide("slow");
  1112. break;
  1113. case 68:
  1114. $("#divrightbar6").animate(
  1115. {width:"toggle",opacity:"toggle"},
  1116. "slow"
  1117. );
  1118. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar7,#divrightbar9,#divrightbar10").hide("slow");
  1119. break;
  1120. case 67:
  1121. $("#divrightbar7").animate(
  1122. {width:"toggle",opacity:"toggle"},
  1123. "slow"
  1124. );
  1125. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar9,#divrightbar10").hide("slow");
  1126. break;
  1127. case 77:
  1128. $("#divrightbar9").animate(
  1129. {width:"toggle",opacity:"toggle"},
  1130. "slow"
  1131. );
  1132. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar10").hide("slow");
  1133. break;
  1134. case 71:
  1135. $("#divrightbar10").animate(
  1136. {width:"toggle",opacity:"toggle"},
  1137. "slow"
  1138. );
  1139. $("#divrightbar2,#divrightbar4,#divrightbar5,#divrightbar6,#divrightbar7,#divrightbar9").hide("slow");
  1140. break;
  1141.  
  1142.  
  1143. }
  1144. }
  1145. }
  1146.  
  1147.  
  1148. setTimeout(function(){
  1149. var divdata = document.createElement("div");
  1150. divdata.id="toggle9";
  1151. divdata.innerHTML="<span>Tagの開閉</span>";
  1152. document.getElementById("divrightbar6").appendChild(divdata);
  1153. $("#toggle9").click(function(){
  1154. $("#videoTagContainer").toggle();
  1155. GM_setValue("tagDisplay",$("#videoTagContainer").css("display"));
  1156. });
  1157. if(GM_getValue("tagDisplay")=="none"){
  1158. $("#videoTagContainer").hide();
  1159. }
  1160. },5000);
  1161.  
  1162.  
  1163. setTimeout(function(){
  1164. var divdata = document.createElement("div");
  1165. divdata.id="toggle11";
  1166. divdata.innerHTML="<span>市場の開閉</span>";
  1167. document.getElementById("divrightbar6").appendChild(divdata);
  1168. $("#toggle11").click(function(){
  1169. $("#nicoIchiba").toggle();
  1170. GM_setValue("ichibaDisplay",$("#nicoIchiba").css("display"));
  1171. });
  1172. if(GM_getValue("ichibaDisplay")=="none"){
  1173. $("#nicoIchiba").hide();
  1174. }
  1175. },5000);
  1176.  
  1177.  
  1178.  
  1179. }
  1180. }
  1181.  
  1182.  
  1183. function labelElement(str,che){
  1184. var k = document.createElement("label");
  1185. k.innerHTML = str;
  1186. k.style.cursor = "hand";
  1187. k.setAttribute("for",che);
  1188. k.style.fontSize = "12px";
  1189. return k;
  1190. }
  1191.  
  1192. function interface_kidoku(){
  1193. var prefDiv = document.createElement("div");
  1194. prefDiv.style.width = "340px";
  1195. prefDiv.style.height = "500px";
  1196. prefDiv.style.overflowY = "scroll";
  1197. prefDiv.innerHTML = "カスタマイズ設定" + "<br>";
  1198. prefDiv.style.backgroundColor = "#ccccff";
  1199. prefDiv.style.color = "black";
  1200. prefDiv.style.border = "1px solid #888";
  1201. prefDiv.style.position = "fixed";
  1202. prefDiv.style.bottom = "0px";
  1203. prefDiv.style.right = "0px";
  1204. prefDiv.style.margin = "0 0 0 0";
  1205. prefDiv.style.zIndex = 999999;
  1206. // prefDiv.style.opacity = 0.9;
  1207. /* prefDiv.style.display =
  1208. (GM_getValue("prefDisplay") == "none") ? "none" : "";
  1209. */ prefDiv.id = "prefDiv";
  1210. document.body.appendChild(prefDiv);
  1211. // $("#prefDiv").insertBefore("#videoHeader");
  1212.  
  1213. var memo=document.createElement("div");
  1214. memo.innerHTML = "<BR><BR>"+"【併用時にレイアウトが崩れやすい項目】" + "<br>";
  1215. var memo2=document.createElement("div");
  1216. memo2.innerHTML = "<BR><BR>"+"【まずはわかりやすい設定項目】" + "<br>";
  1217. var memo3=document.createElement("div");
  1218. memo3.innerHTML = "<BR><BR>"+"【若干細かい・分かりにくい設定項目】" + "<br>";
  1219. var memo4=document.createElement("div");
  1220. memo4.innerHTML = "<BR><BR>"+"【大きめの変化だが、オススメ設定項目】" + "<br>";
  1221. var tojiru=document.createElement("div");
  1222. tojiru.innerHTML = "閉じる";
  1223. tojiru.style.position = "absolute";
  1224. tojiru.style.top = "0px";
  1225. tojiru.style.right = "5px";
  1226. tojiru.style.color="#00BFFF";
  1227. tojiru.style.cursor = "pointer";
  1228. tojiru.id="tojiru";
  1229. /* tojiru.addEventListener("click",function(e){
  1230. prefDiv.style.display =
  1231. (prefDiv.style.display == "") ? "none" : "";
  1232. GM_setValue("prefDisplay",prefDiv.style.display);
  1233. },false);
  1234. */
  1235.  
  1236. var reset00=document.createElement("div");
  1237. reset00.innerHTML = "リセット";
  1238. reset00.style.position = "absolute";
  1239. reset00.style.right = "5px";
  1240. reset00.style.color="#00BFFF";
  1241. reset00.style.cursor = "pointer";
  1242. reset00.id="reset00";
  1243. reset00.addEventListener("click",function(e){
  1244.  
  1245. var settings = document.getElementById("prefDiv").getElementsByTagName("input");
  1246. for (var i=0;i<settings.length;i++){
  1247. settings[i].checked=false;
  1248. }
  1249. for (var i=0;i<links.length;i++){
  1250. GM_setValue(links[i].name,"off");
  1251. }
  1252.  
  1253. },false);
  1254.  
  1255. var myset01=document.createElement("div");
  1256. myset01.innerHTML = "現在の状態をマイセット1に保存";
  1257. myset01.style.position = "absolute";
  1258. myset01.style.top = "35px";
  1259. myset01.style.right = "5px";
  1260. myset01.style.color="#00BFFF";
  1261. myset01.style.cursor = "pointer";
  1262. myset01.id="myset01";
  1263. myset01.addEventListener("click",function(e){
  1264.  
  1265. GM_setValue("myset01","");
  1266. GM_setValue("myset01_on","on");
  1267. for (var i=0;i<links.length;i++){
  1268. GM_setValue("myset01",GM_getValue("myset01")+","+links[i].name+":"+GM_getValue(links[i].name));
  1269. }
  1270.  
  1271. alert("現在の状態をマイセット1に保存しました")
  1272.  
  1273. },false);
  1274.  
  1275.  
  1276.  
  1277. var myset01_on=document.createElement("div");
  1278. myset01_on.innerHTML = "マイセット1の状態にする";
  1279. myset01_on.style.position = "absolute";
  1280. myset01_on.style.top = "60px";
  1281. myset01_on.style.right = "5px";
  1282. myset01_on.style.color="#00BFFF";
  1283. myset01_on.style.cursor = "pointer";
  1284. myset01_on.id="myset01_on";
  1285. myset01_on.addEventListener("click",function(e){
  1286.  
  1287. var settinglist=GM_getValue("myset01").split(",");
  1288. for (var i=1;i<settinglist.length;i++){
  1289. var eachsettings = settinglist[i].split(":");
  1290. GM_setValue(eachsettings[0],eachsettings[1]);
  1291. }
  1292.  
  1293. alert("マイセット1の状態にしました。更新してください。")
  1294.  
  1295. },false);
  1296.  
  1297.  
  1298.  
  1299. var linkmottoright3line = document.createElement("input");
  1300. linkmottoright3line.name = "mottoright3line";
  1301. linkmottoright3line.type = "checkbox";
  1302. linkmottoright3line.caption = "「もっと見るを横に」で、結果を「3列に」 ※「もっと見る横に」を併用必須";
  1303. linkmottoright3line.defaultValue = "off";
  1304. var linkdelminidic = document.createElement("input");
  1305. linkdelminidic.name = "delminidic";
  1306. linkdelminidic.type = "checkbox";
  1307. linkdelminidic.caption = "もっと見るで簡易大百科を消去";
  1308. linkdelminidic.defaultValue = "off";
  1309. var linkdeluserad = document.createElement("input");
  1310. linkdeluserad.name = "deluserad";
  1311. linkdeluserad.type = "checkbox";
  1312. linkdeluserad.caption = "もっと見るでユーザー広告を消去";
  1313. linkdeluserad.defaultValue = "off";
  1314. var linkbackblack = document.createElement("input");
  1315. linkbackblack.name = "backblack";
  1316. linkbackblack.type = "checkbox";
  1317. linkbackblack.caption = "背景黒モード(※適当です)";
  1318. linkbackblack.defaultValue = "off";
  1319. var linkjosdestoggle = document.createElement("input");
  1320. linkjosdestoggle.name = "josdestoggle";
  1321. linkjosdestoggle.type = "checkbox";
  1322. linkjosdestoggle.caption = "下の説明文等を開閉式に";
  1323. linkjosdestoggle.defaultValue = "off";
  1324. var linkuta1line = document.createElement("input");
  1325. linkuta1line.name = "uta1line";
  1326. linkuta1line.type = "checkbox";
  1327. linkuta1line.caption = "着うたとかを1行に";
  1328. linkuta1line.defaultValue = "off";
  1329. var linktagtoggle = document.createElement("input");
  1330. linktagtoggle.name = "tagtoggle";
  1331. linktagtoggle.type = "checkbox";
  1332. linktagtoggle.caption = "タグを開閉式に(若干のネタバレ回避)";
  1333. linktagtoggle.defaultValue = "off";
  1334. var linkwalliconoff = document.createElement("input");
  1335. linkwalliconoff.name = "walliconoff";
  1336. linkwalliconoff.type = "checkbox";
  1337. linkwalliconoff.caption = "ウォールのアイコンだけを消去";
  1338. linkwalliconoff.defaultValue = "off";
  1339. var linkdelsearchbox = document.createElement("input");
  1340. linkdelsearchbox.name = "delsearchbox";
  1341. linkdelsearchbox.type = "checkbox";
  1342. linkdelsearchbox.caption = "検索ボックスを消去";
  1343. linkdelsearchbox.defaultValue = "off";
  1344. var linktagpinon = document.createElement("input");
  1345. linktagpinon.name = "tagpinon";
  1346. linktagpinon.type = "checkbox";
  1347. linktagpinon.caption = "タグのピンを常時表示(ピン留め後は不要な設定。ちなみにピン留め推奨です)";
  1348. linktagpinon.defaultValue = "off";
  1349. var linkwalloff = document.createElement("input");
  1350. linkwalloff.name = "walloff";
  1351. linkwalloff.type = "checkbox";
  1352. linkwalloff.caption = "ウォールを消去";
  1353. linkwalloff.defaultValue = "off";
  1354. var linkdeltagpin = document.createElement("input");
  1355. linkdeltagpin.name = "deltagpin";
  1356. linkdeltagpin.type = "checkbox";
  1357. linkdeltagpin.caption = "タグのピンを消去(ピン留め後ピンを解除しない人で、ピンが邪魔な人向け)";
  1358. linkdeltagpin.defaultValue = "off";
  1359. var linkbigwatch = document.createElement("input");
  1360. linkbigwatch.name = "bigwatch";
  1361. linkbigwatch.type = "checkbox";
  1362. linkbigwatch.caption = "プレイヤーサイズを大きく(大画面時のみ)";
  1363. linkbigwatch.defaultValue = "off";
  1364. var linkdelbread = document.createElement("input");
  1365. linkdelbread.name = "delbread";
  1366. linkdelbread.type = "checkbox";
  1367. linkdelbread.caption = "パンくずリスト消去(コミュ動画用?)";
  1368. linkdelbread.defaultValue = "off";
  1369. var linkdelsocial = document.createElement("input");
  1370. linkdelsocial.name = "delsocial";
  1371. linkdelsocial.type = "checkbox";
  1372. linkdelsocial.caption = "ツイートボタン等消去";
  1373. linkdelsocial.defaultValue = "off";
  1374. var linkdelshosai = document.createElement("input");
  1375. linkdelshosai.name = "delshosai";
  1376. linkdelshosai.type = "checkbox";
  1377. linkdelshosai.caption = "動画詳細情報消去";
  1378. linkdelshosai.defaultValue = "off";
  1379. var linkdelbuttons = document.createElement("input");
  1380. linkdelbuttons.name = "delbuttons";
  1381. linkdelbuttons.type = "checkbox";
  1382. linkdelbuttons.caption = "マイリス・とりあえずマイリスボタン以外消去";
  1383. linkdelbuttons.defaultValue = "off";
  1384. var linktweetinheader = document.createElement("input");
  1385. linktweetinheader.name = "tweetinheader";
  1386. linktweetinheader.type = "checkbox";
  1387. linktweetinheader.caption = "ツイートボタンをヘッダーに移動";
  1388. linktweetinheader.defaultValue = "off";
  1389. var linkctree = document.createElement("input");
  1390. linkctree.name = "ctree_off";
  1391. linkctree.type = "checkbox";
  1392. linkctree.caption = "コンテンツツリー消去";
  1393. linkctree.defaultValue = "off";
  1394. var linkshortinfo = document.createElement("input");
  1395. linkshortinfo.name = "shortinfo_off";
  1396. linkshortinfo.type = "checkbox";
  1397. linkshortinfo.caption = "簡易説明文・動画情報開閉ボタン消去";
  1398. linkshortinfo.defaultValue = "off";
  1399. var linkdeljosdes = document.createElement("input");
  1400. linkdeljosdes.name = "deljosdes";
  1401. linkdeljosdes.type = "checkbox";
  1402. linkdeljosdes.caption = "下の動画説明文・情報を消去(上の開閉で読む人向け)";
  1403. linkdeljosdes.defaultValue = "off";
  1404. var linkSen2 = document.createElement("input");
  1405. linkSen2.name = "senden2";
  1406. linkSen2.type = "checkbox";
  1407. linkSen2.caption = "広告を消去";
  1408. linkSen2.defaultValue = "off";
  1409. var linkcome = document.createElement("input");
  1410. linkcome.name = "come_off";
  1411. linkcome.type = "checkbox";
  1412. linkcome.caption = "コメント一覧パネルを消去";
  1413. linkcome.defaultValue = "off";
  1414. var linkmarq = document.createElement("input");
  1415. linkmarq.name = "marquee_off";
  1416. linkmarq.type = "checkbox";
  1417. linkmarq.caption = "動画上のニュースを消去";
  1418. linkmarq.defaultValue = "off";
  1419. var linkfeed = document.createElement("input");
  1420. linkfeed.name = "feedback_off";
  1421. linkfeed.type = "checkbox";
  1422. linkfeed.caption = "フィードバックリンクを消去";
  1423. linkfeed.defaultValue = "off";
  1424. var linkinfo = document.createElement("input");
  1425. linkinfo.name = "infoplus";
  1426. linkinfo.type = "checkbox";
  1427. linkinfo.caption = "もっと見るでマイリスコメント?を常時表示";
  1428. linkinfo.defaultValue = "off";
  1429. var linkreview = document.createElement("input");
  1430. linkreview.name = "review_off";
  1431. linkreview.type = "checkbox";
  1432. linkreview.caption = "レビュー欄消去";
  1433. linkreview.defaultValue = "off";
  1434. var linkichiba = document.createElement("input");
  1435. linkichiba.name = "ichiba_off";
  1436. linkichiba.type = "checkbox";
  1437. linkichiba.caption = "市場消去";
  1438. linkichiba.defaultValue = "off";
  1439. var linktv = document.createElement("input");
  1440. linktv.name = "tvchan_off";
  1441. linktv.type = "checkbox";
  1442. linktv.caption = "マイリスボタン常時表示";
  1443. linktv.defaultValue = "off";
  1444. var linkspread = document.createElement("input");
  1445. linkspread.name = "spread_on";
  1446. linkspread.type = "checkbox";
  1447. linkspread.caption = "コメント一覧の幅を広げる";
  1448. linkspread.defaultValue = "off";
  1449. var linkleft = document.createElement("input");
  1450. linkleft.name = "left_on";
  1451. linkleft.type = "checkbox";
  1452. linkleft.caption = "左寄せにする";
  1453. linkleft.defaultValue = "off";
  1454. var linklist = document.createElement("input");
  1455. linklist.name = "playlist_off";
  1456. linklist.type = "checkbox";
  1457. linklist.caption = "プレイリストを消去";
  1458. linklist.defaultValue = "off";
  1459. var linkmotto = document.createElement("input");
  1460. linkmotto.name = "motto_off";
  1461. linkmotto.type = "checkbox";
  1462. linkmotto.caption = "もっと見るバーを消去";
  1463. linkmotto.defaultValue = "off";
  1464. var linkwideichiba = document.createElement("input");
  1465. linkwideichiba.name = "wideichiba_on";
  1466. linkwideichiba.type = "checkbox";
  1467. linkwideichiba.caption = "市場の幅を広く(要レビュー消去)";
  1468. linkwideichiba.defaultValue = "off";
  1469. var linknicorudel = document.createElement("input");
  1470. linknicorudel.name = "nicorudel_on";
  1471. linknicorudel.type = "checkbox";
  1472. linknicorudel.caption = "ニコるを消去";
  1473. linknicorudel.defaultValue = "off";
  1474. var linkinfonontoggle = document.createElement("input");
  1475. linkinfonontoggle.name = "infonontoggle_on";
  1476. linkinfonontoggle.type = "checkbox";
  1477. linkinfonontoggle.caption = "動画詳細情報を常時表示に";
  1478. linkinfonontoggle.defaultValue = "off";
  1479. var linkheadcut = document.createElement("input");
  1480. linkheadcut.name = "header_off";
  1481. linkheadcut.type = "checkbox";
  1482. linkheadcut.caption = "ヘッダー消去";
  1483. linkheadcut.defaultValue = "off";
  1484. var linkfootcut = document.createElement("input");
  1485. linkfootcut.name = "footer_off";
  1486. linkfootcut.type = "checkbox";
  1487. linkfootcut.caption = "フッター消去";
  1488. linkfootcut.defaultValue = "off";
  1489. var linkinfo33 = document.createElement("input");
  1490. linkinfo33.name = "infocombine3";
  1491. linkinfo33.type = "checkbox";
  1492. linkinfo33.caption = "サムネ・再生数・投稿者サムネ等を上に移動3(マイリスボタンも常時表示に)";
  1493. linkinfo33.defaultValue = "off";
  1494. var linkoldsearch = document.createElement("input");
  1495. linkoldsearch.name = "oldsearch_on";
  1496. linkoldsearch.type = "checkbox";
  1497. linkoldsearch.caption = "旧検索をヘッダーに追加";
  1498. linkoldsearch.defaultValue = "off";
  1499. var linkplaylisttoggle = document.createElement("input");
  1500. linkplaylisttoggle.name = "playlisttoggle_on";
  1501. linkplaylisttoggle.type = "checkbox";
  1502. linkplaylisttoggle.caption = "プレイリストを開閉式に";
  1503. linkplaylisttoggle.defaultValue = "off";
  1504. var linkinfoseparate = document.createElement("input");
  1505. linkinfoseparate.name = "infoseparate_on";
  1506. linkinfoseparate.type = "checkbox";
  1507. linkinfoseparate.caption = "下の動画情報と動画説明文を左右に分離(上の説明文非表示)";
  1508. linkinfoseparate.defaultValue = "off";
  1509. var linkminiichiba = document.createElement("input");
  1510. linkminiichiba.name = "miniichiba_on";
  1511. linkminiichiba.type = "checkbox";
  1512. linkminiichiba.caption = "市場の商品画像等を小さく";
  1513. linkminiichiba.defaultValue = "off";
  1514. var linkkomepaneltoggle = document.createElement("input");
  1515. linkkomepaneltoggle.name = "komepaneltoggle_on";
  1516. linkkomepaneltoggle.type = "checkbox";
  1517. linkkomepaneltoggle.caption = "コメント一覧を開閉式に";
  1518. linkkomepaneltoggle.defaultValue = "off";
  1519. var linkreviewtoggle = document.createElement("input");
  1520. linkreviewtoggle.name = "reviewtoggle_on";
  1521. linkreviewtoggle.type = "checkbox";
  1522. linkreviewtoggle.caption = "レビューを開閉式に";
  1523. linkreviewtoggle.defaultValue = "off";
  1524. var linkichibatoggle = document.createElement("input");
  1525. linkichibatoggle.name = "ichibatoggle_on";
  1526. linkichibatoggle.type = "checkbox";
  1527. linkichibatoggle.caption = "市場を開閉式に";
  1528. linkichibatoggle.defaultValue = "off";
  1529. var linkmottoright = document.createElement("input");
  1530. linkmottoright.name = "mottoright_on";
  1531. linkmottoright.type = "checkbox";
  1532. linkmottoright.caption = "もっと見るを横に(検索時にプレイヤーが小さくならないよ★)/※プレイヤー設定画面が使えなくなります。";
  1533. linkmottoright.defaultValue = "off";
  1534. var linkdelkomesocial = document.createElement("input");
  1535. linkdelkomesocial.name = "delkomesocial";
  1536. linkdelkomesocial.type = "checkbox";
  1537. linkdelkomesocial.caption = "コメント欄のソーシャルボタンを消す";
  1538. linkdelkomesocial.defaultValue = "off";
  1539. var linktargetblank = document.createElement("input");
  1540. linktargetblank.name = "targetblank";
  1541. linktargetblank.type = "checkbox";
  1542. linktargetblank.caption = "タグクリック等時に別タブで開く";
  1543. linktargetblank.defaultValue = "off";
  1544. var linktargetself = document.createElement("input");
  1545. linktargetself.name = "targetself";
  1546. linktargetself.type = "checkbox";
  1547. linktargetself.caption = "タグクリック等時に同じタブで開く";
  1548. linktargetself.defaultValue = "off";
  1549. var linkinfotocomepanel = document.createElement("input");
  1550. linkinfotocomepanel.name = "infotocomepanel_on";
  1551. linkinfotocomepanel.type = "checkbox";
  1552. linkinfotocomepanel.caption = "動画情報をコメント一覧に(※コメント一覧の幅が広くなります/※上の説明文を開かないでください)";
  1553. linkinfotocomepanel.defaultValue = "off";
  1554. var linkset8 = document.createElement("input");
  1555. linkset8.name = "set8_on";
  1556. linkset8.type = "checkbox";
  1557. linkset8.caption = "カスタマイズセット8(※基本他項目と併用不可)";
  1558. linkset8.defaultValue = "off";
  1559.  
  1560. var form = document.createElement("form");
  1561.  
  1562. var links =
  1563. [linkshortinfo,linkSen2,linkcome,linkmarq,linkfeed,linkinfo,linkreview,linkichiba,linktv,linkspread,linkleft,linklist,linkmotto,linkwideichiba,linknicorudel,linkinfonontoggle,linkheadcut,linkfootcut,linkoldsearch,linkplaylisttoggle,linkinfo33,linkinfoseparate,linkminiichiba,linkkomepaneltoggle,linkreviewtoggle,linkichibatoggle,linkmottoright,linkinfotocomepanel,linkset8,linkdeljosdes,linkctree,linktweetinheader,linkdelbuttons,linkdelshosai,linkdelsocial,linkdelbread,linkbigwatch,linkdeltagpin,linkwalloff,linktagpinon,linkdelsearchbox,linkwalliconoff,linktagtoggle,linkuta1line,linkjosdestoggle,linkbackblack,linkdeluserad,linkdelminidic,linkmottoright3line,linkdelkomesocial,linktargetblank,linktargetself];
  1564.  
  1565. for (var i=0;i<links.length;i++){
  1566. if (!GM_getValue(links[i].name)) {
  1567. GM_setValue(links[i].name, links[i].defaultValue);
  1568. }
  1569. links[i].id = links[i].name;
  1570. links[i].checked = (GM_getValue(links[i].name) != "on") ? false : true;
  1571. links[i].addEventListener("click", function(e){
  1572. GM_setValue(this.name, (GM_getValue(this.name) != "on") ? "on" : "off");
  1573. }, true);
  1574. }
  1575.  
  1576.  
  1577.  
  1578. //登録
  1579. form.appendChild(tojiru);
  1580. form.appendChild(myset01);
  1581. form.appendChild(myset01_on);
  1582. form.appendChild(document.createElement("hr"));
  1583. form.appendChild(document.createElement("br"));
  1584. form.appendChild(document.createElement("br"));
  1585. form.appendChild(document.createElement("br"));
  1586. form.appendChild(document.createElement("br"));
  1587. form.appendChild(document.createElement("hr"));
  1588. form.appendChild(linkset8);
  1589. form.appendChild(labelElement(linkset8.caption, linkset8.id));
  1590. form.appendChild(document.createElement("hr"));
  1591. form.appendChild(memo2);
  1592. form.appendChild(document.createElement("hr"));
  1593. form.appendChild(linkSen2);
  1594. form.appendChild(labelElement(linkSen2.caption, linkSen2.id));
  1595. form.appendChild(document.createElement("br"));
  1596. form.appendChild(linkmarq);
  1597. form.appendChild(labelElement(linkmarq.caption, linkmarq.id));
  1598. form.appendChild(document.createElement("br"));
  1599. form.appendChild(linknicorudel);
  1600. form.appendChild(labelElement(linknicorudel.caption, linknicorudel.id));
  1601. form.appendChild(document.createElement("br"));
  1602. form.appendChild(linkfeed);
  1603. form.appendChild(labelElement(linkfeed.caption, linkfeed.id));
  1604. form.appendChild(document.createElement("br"));
  1605. form.appendChild(linkwalloff);
  1606. form.appendChild(labelElement(linkwalloff.caption, linkwalloff.id));
  1607. form.appendChild(document.createElement("br"));
  1608. form.appendChild(linkwalliconoff);
  1609. form.appendChild(labelElement(linkwalliconoff.caption, linkwalliconoff.id));
  1610. form.appendChild(document.createElement("br"));
  1611. form.appendChild(linkdelkomesocial);
  1612. form.appendChild(labelElement(linkdelkomesocial.caption, linkdelkomesocial.id));
  1613. form.appendChild(document.createElement("hr"));
  1614. form.appendChild(linkheadcut);
  1615. form.appendChild(labelElement(linkheadcut.caption, linkheadcut.id));
  1616. form.appendChild(document.createElement("br"));
  1617. form.appendChild(linkfootcut);
  1618. form.appendChild(labelElement(linkfootcut.caption, linkfootcut.id));
  1619. form.appendChild(document.createElement("hr"));
  1620. form.appendChild(linkreview);
  1621. form.appendChild(labelElement(linkreview.caption, linkreview.id));
  1622. form.appendChild(document.createElement("br"));
  1623. form.appendChild(linkichiba);
  1624. form.appendChild(labelElement(linkichiba.caption, linkichiba.id));
  1625. form.appendChild(document.createElement("br"));
  1626. form.appendChild(linklist);
  1627. form.appendChild(labelElement(linklist.caption, linklist.id));
  1628. form.appendChild(document.createElement("br"));
  1629. form.appendChild(linkmotto);
  1630. form.appendChild(labelElement(linkmotto.caption, linkmotto.id));
  1631. form.appendChild(document.createElement("br"));
  1632. form.appendChild(linkcome);
  1633. form.appendChild(labelElement(linkcome.caption, linkcome.id));
  1634. form.appendChild(document.createElement("hr"));
  1635. form.appendChild(linkreviewtoggle);
  1636. form.appendChild(labelElement(linkreviewtoggle.caption, linkreviewtoggle.id));
  1637. form.appendChild(document.createElement("br"));
  1638. form.appendChild(linkichibatoggle);
  1639. form.appendChild(labelElement(linkichibatoggle.caption, linkichibatoggle.id));
  1640. form.appendChild(document.createElement("br"));
  1641. form.appendChild(linkplaylisttoggle);
  1642. form.appendChild(labelElement(linkplaylisttoggle.caption, linkplaylisttoggle.id));
  1643. form.appendChild(document.createElement("br"));
  1644. form.appendChild(linkkomepaneltoggle);
  1645. form.appendChild(labelElement(linkkomepaneltoggle.caption, linkkomepaneltoggle.id));
  1646. form.appendChild(document.createElement("br"));
  1647. form.appendChild(linktagtoggle);
  1648. form.appendChild(labelElement(linktagtoggle.caption, linktagtoggle.id));
  1649. form.appendChild(document.createElement("hr"));
  1650. form.appendChild(linkbackblack);
  1651. form.appendChild(labelElement(linkbackblack.caption, linkbackblack.id));
  1652. form.appendChild(document.createElement("br"));
  1653. form.appendChild(linkspread);
  1654. form.appendChild(labelElement(linkspread.caption, linkspread.id));
  1655. form.appendChild(document.createElement("br"));
  1656. form.appendChild(linktv);
  1657. form.appendChild(labelElement(linktv.caption, linktv.id));
  1658. form.appendChild(document.createElement("br"));
  1659. form.appendChild(linkwideichiba);
  1660. form.appendChild(labelElement(linkwideichiba.caption, linkwideichiba.id));
  1661. form.appendChild(document.createElement("br"));
  1662. form.appendChild(linkminiichiba);
  1663. form.appendChild(labelElement(linkminiichiba.caption, linkminiichiba.id));
  1664. form.appendChild(document.createElement("br"));
  1665. form.appendChild(linkuta1line);
  1666. form.appendChild(labelElement(linkuta1line.caption, linkuta1line.id));
  1667. form.appendChild(document.createElement("br"));
  1668. form.appendChild(linktargetblank);
  1669. form.appendChild(labelElement(linktargetblank.caption, linktargetblank.id));
  1670. form.appendChild(document.createElement("br"));
  1671. form.appendChild(linktargetself);
  1672. form.appendChild(labelElement(linktargetself.caption, linktargetself.id));
  1673. form.appendChild(memo3);
  1674. form.appendChild(document.createElement("hr"));
  1675. form.appendChild(linkdelsearchbox);
  1676. form.appendChild(labelElement(linkdelsearchbox.caption, linkdelsearchbox.id));
  1677. form.appendChild(document.createElement("br"));
  1678. form.appendChild(linkctree);
  1679. form.appendChild(labelElement(linkctree.caption, linkctree.id));
  1680. form.appendChild(document.createElement("br"));
  1681. form.appendChild(linkdelshosai);
  1682. form.appendChild(labelElement(linkdelshosai.caption, linkdelshosai.id));
  1683. form.appendChild(document.createElement("br"));
  1684. form.appendChild(linkdelsocial);
  1685. form.appendChild(labelElement(linkdelsocial.caption, linkdelsocial.id));
  1686. form.appendChild(document.createElement("br"));
  1687. form.appendChild(linkdelbuttons);
  1688. form.appendChild(labelElement(linkdelbuttons.caption, linkdelbuttons.id));
  1689. form.appendChild(document.createElement("br"));
  1690. form.appendChild(linkdelbread);
  1691. form.appendChild(labelElement(linkdelbread.caption, linkdelbread.id));
  1692. form.appendChild(document.createElement("br"));
  1693. form.appendChild(linkinfonontoggle);
  1694. form.appendChild(labelElement(linkinfonontoggle.caption, linkinfonontoggle.id));
  1695. form.appendChild(document.createElement("hr"));
  1696. form.appendChild(linkdeljosdes);
  1697. form.appendChild(labelElement(linkdeljosdes.caption, linkdeljosdes.id));
  1698. form.appendChild(document.createElement("hr"));
  1699. form.appendChild(linkoldsearch);
  1700. form.appendChild(labelElement(linkoldsearch.caption, linkoldsearch.id));
  1701. form.appendChild(document.createElement("br"));
  1702. form.appendChild(linktweetinheader);
  1703. form.appendChild(labelElement(linktweetinheader.caption, linktweetinheader.id));
  1704. form.appendChild(document.createElement("hr"));
  1705. form.appendChild(linktagpinon);
  1706. form.appendChild(labelElement(linktagpinon.caption, linktagpinon.id));
  1707. form.appendChild(document.createElement("br"));
  1708. form.appendChild(linkdeltagpin);
  1709. form.appendChild(labelElement(linkdeltagpin.caption, linkdeltagpin.id));
  1710. form.appendChild(document.createElement("hr"));
  1711. form.appendChild(linkshortinfo);
  1712. form.appendChild(labelElement(linkshortinfo.caption, linkshortinfo.id));
  1713. form.appendChild(document.createElement("hr"));
  1714. form.appendChild(memo4);
  1715. form.appendChild(document.createElement("hr"));
  1716. form.appendChild(linkmottoright);
  1717. form.appendChild(labelElement(linkmottoright.caption, linkmottoright.id));
  1718. form.appendChild(document.createElement("br"));
  1719. form.appendChild(linkinfo);
  1720. form.appendChild(labelElement(linkinfo.caption, linkinfo.id));
  1721. form.appendChild(document.createElement("br"));
  1722. form.appendChild(linkdeluserad);
  1723. form.appendChild(labelElement(linkdeluserad.caption, linkdeluserad.id));
  1724. form.appendChild(document.createElement("br"));
  1725. form.appendChild(linkdelminidic);
  1726. form.appendChild(labelElement(linkdelminidic.caption, linkdelminidic.id));
  1727. form.appendChild(document.createElement("br"));
  1728. form.appendChild(linkmottoright3line);
  1729. form.appendChild(labelElement(linkmottoright3line.caption, linkmottoright3line.id));
  1730. form.appendChild(document.createElement("hr"));
  1731. form.appendChild(linkinfotocomepanel);
  1732. form.appendChild(labelElement(linkinfotocomepanel.caption, linkinfotocomepanel.id));
  1733. form.appendChild(document.createElement("hr"));
  1734. form.appendChild(linkinfo33);
  1735. form.appendChild(labelElement(linkinfo33.caption, linkinfo33.id));
  1736. form.appendChild(document.createElement("hr"));
  1737. form.appendChild(linkinfoseparate);
  1738. form.appendChild(labelElement(linkinfoseparate.caption, linkinfoseparate.id));
  1739. form.appendChild(document.createElement("br"));
  1740. form.appendChild(linkjosdestoggle);
  1741. form.appendChild(labelElement(linkjosdestoggle.caption, linkjosdestoggle.id));
  1742. form.appendChild(document.createElement("hr"));
  1743. form.appendChild(memo);
  1744. form.appendChild(document.createElement("br"));
  1745. form.appendChild(linkleft);
  1746. form.appendChild(labelElement(linkleft.caption, linkleft.id));
  1747. form.appendChild(document.createElement("br"));
  1748. form.appendChild(linkbigwatch);
  1749. form.appendChild(labelElement(linkbigwatch.caption, linkbigwatch.id));
  1750. form.appendChild(document.createElement("hr"));
  1751. form.appendChild(document.createElement("br"));
  1752. form.appendChild(document.createElement("br"));
  1753. form.appendChild(document.createElement("br"));
  1754. form.appendChild(reset00);
  1755.  
  1756.  
  1757. prefDiv.appendChild(form);
  1758.  
  1759.  
  1760. var prefSw = document.createElement("a");
  1761. prefSw.innerHTML = "カスタマイズ設定";
  1762. prefSw.id = "zero";
  1763. /* prefSw.addEventListener("click",function(e){
  1764. prefDiv.style.display =
  1765. (prefDiv.style.display == "") ? "none" : "";
  1766. GM_setValue("prefDisplay",prefDiv.style.display);
  1767. },false);
  1768. */
  1769. document.getElementById("siteHeaderRightMenuContainer").appendChild(prefSw);
  1770.  
  1771. $("#zero").click(function(){
  1772. $("#prefDiv").animate(
  1773. {width:"toggle",height:"toggle",opacity:"toggle"},
  1774. "slow"
  1775. );
  1776. setTimeout(function(){
  1777. GM_setValue("prefDisplay",$("#prefDiv").css("display"));
  1778. },1000);
  1779. });
  1780. if(GM_getValue("prefDisplay","block")=="none"){
  1781. $("#prefDiv").hide();
  1782. };
  1783.  
  1784. $("#tojiru").click(function(){
  1785. $("#prefDiv").animate(
  1786. {width:"hide",height:"hide",opacity:"hide"},
  1787. "slow"
  1788. );
  1789. setTimeout(function(){
  1790. GM_setValue("prefDisplay",$("#prefDiv").css("display"));
  1791. },1000);
  1792. });
  1793. if(GM_getValue("prefDisplay","block")=="none"){
  1794. $("#prefDiv").hide();
  1795. };
  1796.  
  1797. $("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;}#siteHeaderInner{width:97%!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>');
  1798.  
  1799.  
  1800. if(GM_getValue("reviewtoggle_on")=="on"||GM_getValue("ichibatoggle_on")=="on"||GM_getValue("tagtoggle")=="on"||GM_getValue("mottoright_on")=="on"||GM_getValue("playlisttoggle_on")=="on"||GM_getValue("komepaneltoggle_on")=="on"){
  1801. $("head").append('<style type="text/css">#playerContainerWrapper{padding-bottom:20px!important;}</style>');
  1802. }
  1803.  
  1804. if(GM_getValue("ctree_off")=="off" && $("#outline").attr("class")=="wrapper commonsTreeExists"){
  1805. $("head").append('<style type="text/css">#videoInfo .parentVideoInfo{display:block!important;}</style>');
  1806. };
  1807.  
  1808.  
  1809.  
  1810.  
  1811.  
  1812.  
  1813.  
  1814. }
  1815.  
  1816. interface_kidoku();
  1817. set8();
  1818. infotocomepanel();
  1819. shortinfoCut();
  1820. senCut2();
  1821. comeCut();
  1822. marqueeCut();
  1823. feedbackCut();
  1824. infoPlus();
  1825. reviewCut();
  1826. ichibaCut();
  1827. tvchanCut();
  1828. komespread();
  1829. hidariyose();
  1830. playlistCut();
  1831. mottoCut();
  1832. wideichiba();
  1833. nicorudel();
  1834. infonontoggle();
  1835. oldsearch();
  1836. headcut();
  1837. footcut();
  1838. playlisttoggle();
  1839. infoCombine3();
  1840. infoseparate();
  1841. miniichiba();
  1842. ichibatoggle();
  1843. reviewtoggle();
  1844. komepaneltoggle();
  1845. mottoright();
  1846. deljosdes();
  1847. ctreeCut();
  1848. tweetinheader();
  1849. delbuttons();
  1850. delshosai();
  1851. delsocial();
  1852. delbread();
  1853. bigwatch();
  1854. deltagpin();
  1855. walloff();
  1856. tagpinon();
  1857. delsearchbox();
  1858. walliconoff();
  1859. tagtoggle();
  1860. uta1line();
  1861. josdestoggle();
  1862. backblack();
  1863. deluserad();
  1864. delminidic();
  1865. mottoright3line();
  1866. delkomesocial();
  1867. targetblank();
  1868. targetself();
  1869. };
  1870.  
  1871. var script = document.createElement('script');
  1872. script.type = "text/javascript";
  1873. script.textContent = '(' + main.toString() + ')();';
  1874. document.body.appendChild(script);