CustomGinzaWatch

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

当前为 2015-03-31 提交的版本,查看 最新版本

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