CustomGinzaWatch

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

当前为 2015-04-21 提交的版本,查看 最新版本

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