-
-
Save rosylilly/2575569 to your computer and use it in GitHub Desktop.
ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 タイトルの縮小、タグの複数段表示、市場エリアを投稿者情報に、コメント入力エリアを下に、フェードを無効化などの機能があります。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name ZeroFix | |
// @namespace applest.net | |
// @version 0.5 | |
// @description ZeroFix is ZeroWatch of niconico fixer. ZeroWatchが改良するまでの暫定的なユーザースクリプトです。 市場エリアに投稿者情報を表示、コメント投稿エリアの修正、フェード防止の機能があります。 | |
// @include http://www.nicovideo.jp/watch/* | |
// ==/UserScript== | |
/**************************************** | |
* 右上の[raw]をクリックしてダウンロード開始 * | |
****************************************/ | |
/* | |
要望 | |
コメントより | |
-・市場いらない → そこにかわりに投稿者情報 | |
-・コメント投稿は映像上に表示するなks | |
-・タイトル小さく | |
・ちらちら画面うざい | |
(低スペは知らん) | |
*/ | |
(function(){ // Separating Namespace :-) | |
var $ = function(id) { | |
return document.getElementById(id); | |
} | |
var $c = function(id) { | |
return document.getElementsByClassName(id); | |
} | |
// 市場の撤去 | |
while($('ichibaPanel').firstChild){ | |
$('ichibaPanel').removeChild($('ichibaPanel').firstChild); | |
} | |
// 投稿者情報の表示 | |
// ichibaPanelを流用、デザインは後で | |
$('ichibaPanel').appendChild($('videoInfoHead')); | |
$('ichibaPanel').appendChild($('videoStats')); | |
$('ichibaPanel').appendChild($('hiddenUserProfile')); | |
$('ichibaPanel').appendChild($('userProfile')); | |
$('ichibaPanel').appendChild($('videoShareLinks')); | |
$('videoInfoHead').style.backgroundColor = '#F6F6F6'; | |
$('videoInfoHead').style.border = '1px solid #CCCCCC'; | |
$('videoInfoHead').style.borderRadius = '3px'; | |
$('videoInfoHead').style.padding = '5px'; | |
$('videoStats').style.backgroundColor = '#F6F6F6'; | |
$('videoStats').style.border = '1px solid #CCCCCC'; | |
$('videoStats').style.borderRadius = '3px'; | |
$('videoStats').style.padding = '5px'; | |
$('userProfile').style.backgroundColor = '#F6F6F6'; | |
$('userProfile').style.border = '1px solid #CCCCCC'; | |
$('userProfile').style.borderRadius = '3px'; | |
$('userProfile').style.padding = '5px'; | |
$c('userIcon')[0].style.width = '64px'; | |
$c('userIcon')[0].style.height = '64px'; | |
// コメント投稿エリア | |
// 下ごしらえ | |
$('textMarquee').style.height = '100px'; | |
$c('handler')[0].parentNode.removeChild($c('handler')[0]); | |
// 調理 | |
$c('commentInner')[0].style.width = 'auto'; | |
$c('commentOuter')[0].style.cssText = 'display: block !important; opacity: 1 !important;'; | |
$c('lightControllFilter')[0].parentNode.removeChild($c('lightControllFilter')[0]); | |
$('textMarquee').insertBefore($c('commentInner')[0], $c('textMarqueeOuter')[0]); | |
$c('commentOuter')[0].className = 'commentOuter2'; | |
// タイトル自重wwww | |
$c('videoDetailExpand')[0].getElementsByTagName('h2')[0].style.fontSize = '180%'; | |
$c('videoDetailExpand')[0].style.height = 'auto'; | |
$c('filter')[0].parentNode.removeChild($c('filter')[0]); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment