CustomGinzaWatch

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

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

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