CustomGinzaWatch

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

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