CustomGinzaWatch

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

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

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