CustomGinzaWatch

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

当前为 2015-09-26 提交的版本,查看 最新版本

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