사용자:Ha98574/사용자 도구

CSS 편집

기본 글자크기 14px 편집

기본 글자크기를 14px로 설정합니다.

#bodyContent {
	font-size: 14px;
}

강조 표시 제거 편집

사용자토론, 위키백과, 위키백과토론 이름 공간에서 사용하는 강조 표시를 제거합니다.

.ns-3 #bodyContent u,
.ns-3 #bodyContent b,
.ns-3 #bodyContent strong,
.ns-3 #bodyContent i,
.ns-3 #bodyContent em,
.ns-3 #bodyContent span,
.ns-3 #bodyContent font,
 
.ns-4 #bodyContent u,
.ns-4 #bodyContent b,
.ns-4 #bodyContent strong,
.ns-4 #bodyContent i,
.ns-4 #bodyContent em,
.ns-4 #bodyContent span,
.ns-4 #bodyContent font,
 
.ns-5 #bodyContent u,
.ns-5 #bodyContent b,
.ns-5 #bodyContent strong,
.ns-5 #bodyContent i,
.ns-5 #bodyContent em,
.ns-5 #bodyContent span,
.ns-5 #bodyContent font
{
  color: inherit !important;
  font-size: inherit !important;
  font-family: inherit !important;
  text-decoration: none;
  font-weight: normal;
  font-style: normal;
}

투표 그림 제거 편집

위키백과, 위키백과토론 이름 공간에서 사용된 투표 그림을 제거합니다.

.ns-4 #bodyContent img[src$="_vote.svg.png"],
.ns-4 #bodyContent img[src$="Symbol_wait.svg.png"],
.ns-4 #bodyContent img[src$="Symbol_question.svg.png"],
 
.ns-5 #bodyContent img[src$="_vote.svg.png"],
.ns-5 #bodyContent img[src$="Symbol_wait.svg.png"],
.ns-5 #bodyContent img[src$="Symbol_question.svg.png"]
{
	display: none;
}

JS 편집

문단명 옆 편집 버튼 표시 편집

문단명 옆에 편집 버튼을 표시합니다. 도입부 편집 버튼도 추가됩니다.

if ($.inArray( mw.config.get('wgAction'), [ 'view', 'purge' ]) !== -1 && mw.config.get( 'wgNamespaceNumber' ) >=0) {
  $(function edittop_hook () {
    var localtitles = {
      cs: 'Editovat úvodní sekci',
      en: 'Edit lead section',
      fa: 'ویرایش بخش آغازین',
      fr: 'Modifier le résumé introductif',
      id: 'Sunting bagian atas',
      it: 'Modifica della sezione iniziale',
      ja: '導入部を編集',
      min: 'Suntiang bagian ateh',
      ko: '도입부를 편집',
      pa: 'ਸੋਧ',
      pt: 'Editar a seção superior',
      'pt-br': 'Editar a seção superior',
      sr: 'Уреди уводни део',
      vi: 'Sửa phần mở đầu'
    };

    var our_content = $("#content, #mw_content").first();
    var span1 = our_content.find("span.mw-editsection:not(.plainlinks)").first();
    if (!span1.length) {
      return;
    }
    var span0 = span1.clone();

    if ( mw.user.options.get( 'gadget-righteditlinks' ) == 1 ) {
      var editwidth = span1.outerWidth() + (mw.config.get("skin") == "monobook" ? 10 : 0);
      $("div.topicon, #mw-fr-revisiontag").css("margin-right", editwidth + "px");
    }
    $("#mw_header h1, #content h1").first().append(span0);
    span0.find("a").each(function (idx) {
      var a = $(this);
      a.attr("title", localtitles[mw.config.get( 'wgUserLanguage' )] || localtitles.en);
      if (a.attr("href").indexOf("&section=T") == -1) {
        a.attr("href", a.attr("href").replace(/&section=\d+/, "&section=0"));
      }
      else { //transcluded
        a.attr("href", mw.util.wikiGetlink( mw.config.get( 'wgPageName' ) ) + "?action=edit&section=0");
      }
    });
  });
}

번역위키 연결 편집

미디어위키 이름공간에서 상단에 번역위키로 연결하는 버튼을 표시합니다.

/* 미디어위키 이름공간에서 번역위키로 연결하는 버튼 생김 */
addOnloadHook(function() {
  if(wgNamespaceNumber==8) {
    var url = "http://translatewiki.net/wiki/MediaWiki:"+wgTitle+"/ko";
    var y = addPortletLink('p-views', url, 'TW', 'ca-translatewiki', '번역위키 메시지 편집.', '0', null);
  }
});

컴퓨터 시각 표시 편집

사용자 컴퓨터 시각을 우측 상단에 표시합니다.

( function( $, undefined ) {
 
function showLocalTime( $target ) {
	var dateNode = LocalLiveClockConfig.node;
	if( !dateNode ) {
		return;
	}
 
	var now = new Date();
	var hh = now.getHours();
	var mm = now.getMinutes();
	var ss = now.getSeconds();
	if ( typeof $target === 'undefined' ) {
		$target = $( dateNode ).find( 'a:first' );
	}
	var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss );
	$target.text( time );
 
	setTimeout( function(){
		showLocalTime( $target );	
	}, 1000 );
}
 
function localLiveClock() {
	mw.util.addCSS( '#localdate a { font-weight:bolder; font-size:120%; }' );
 
	if ( typeof( LocalLiveClockConfig ) === 'undefined' ) {
		window.LocalLiveClockConfig = {};
	}
	var portletId = LocalLiveClockConfig.portletId || 'p-personal';
	var nextNode = LocalLiveClockConfig.nextNodeId ? document.getElementById( LocalLiveClockConfig.nextNodeId ) : undefined;
	LocalLiveClockConfig.node = addPortletLink(
		portletId,
		wgScript + '?title=' + encodeURIComponent( wgPageName ) + '&action=purge',
		'',
		'localdate',
		undefined,
		undefined,
		nextNode
	);
	if( !LocalLiveClockConfig.node ) {
		return;
	}
 
	showLocalTime();
}
$( document ).ready( localLiveClock );
 
} )( jQuery );

UTC 시각 표시 편집

우측 상단에 UTC 시각을 표시합니다.

( function ( mw, $ ) {

var $target;

function showTime( $target ) {
	var dateNode = UTCLiveClockConfig.node;
	if ( !dateNode ) {
		return;
	}

	var now = new Date();
	var hh = now.getUTCHours();
	var mm = now.getUTCMinutes();
	var ss = now.getUTCSeconds();
	if ( $target === undefined ) {
		$target = $( dateNode ).find( 'a:first' );
	}
	var time = ( hh < 10 ? '0' + hh : hh ) + ':' + ( mm < 10 ? '0' + mm : mm ) + ':' + ( ss < 10 ? '0' + ss : ss );
	$target.text( time );

        var ms = now.getUTCMilliseconds();

	setTimeout( function (){
		showTime( $target );	
	}, 1100 - ms );
}

function liveClock() {
	mw.util.addCSS( '#utcdate a { font-weight:bolder; font-size:120%; }' );

	if ( window.UTCLiveClockConfig === undefined ) {
		window.UTCLiveClockConfig = {};
	}
	var portletId = UTCLiveClockConfig.portletId || 'p-personal';
	var nextNode = UTCLiveClockConfig.nextNodeId ? document.getElementById( UTCLiveClockConfig.nextNodeId ) : undefined;
	UTCLiveClockConfig.node = mw.util.addPortletLink(
		portletId,
		mw.config.get( 'wgScript' ) + '?title=' + encodeURIComponent( mw.config.get( 'wgPageName' ) ) + '&action=purge',
		'',
		'utcdate',
		null,
		null,
		nextNode
	);
	if ( !UTCLiveClockConfig.node ) {
		return;
	}

	showTime();
}
$( document ).ready( liveClock );

} )( mediaWiki, jQuery );