imported>Gaon12 편집 요약 없음 |
Admin_Old (토론) 편집 요약 없음 |
||
6번째 줄: | 6번째 줄: | ||
# 어디서는 SSL을 적용해도 잘만 가져오는데, 여기는 못 가져오네...<br/> | # 어디서는 SSL을 적용해도 잘만 가져오는데, 여기는 못 가져오네...<br/> | ||
===최근바뀜에서 문서명에 / 가 포함되어 있으면, 오류 뜨는 경우 | ===최근바뀜에서 문서명에 / 가 포함되어 있으면, 오류 뜨는 경우 수정됨)=== | ||
# 같은 스킨을 쓰는 [[리브레 위키]]에서는 잘 되던데... 서버 설정 오류인가?<br/> | # 같은 스킨을 쓰는 [[리브레 위키]]에서는 잘 되던데... 서버 설정 오류인가?<br/> | ||
# [https://quiple.mcsv.io/w/퀴플위키 퀴플위키]에서 해결책을 찾았다. 감사합니다. 퀴플위키!<ref>최신 버전 기준이다.</ref> | |||
## 수정 전 | |||
<syntaxhighlight lang="js" highlight="5" line start="55"> | |||
var recentChanges, html, time, line, text; | |||
recentChanges = data.query.recentchanges; | |||
html = recentChanges.map( function ( item ) { | |||
time = new Date( item.timestamp ); | |||
line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURIComponent( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] '; | |||
text = ''; | |||
if ( item.type === 'new' ) { | |||
text += '[New]'; | |||
} | |||
text += item.title; | |||
if ( text.length > 13 ) { | |||
text = text.substr( 0, 13 ); | |||
text += '...'; | |||
} | |||
</syntaxhighlight><br/> | |||
## 수정 후 | |||
<syntaxhighlight lang="js" highlight="5" line start="55"> | |||
var recentChanges, html, time, line, text; | |||
recentChanges = data.query.recentchanges; | |||
html = recentChanges.map( function ( item ) { | |||
time = new Date( item.timestamp ); | |||
line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURI( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] '; | |||
text = ''; | |||
if ( item.type === 'new' ) { | |||
text += '[New]'; | |||
} | |||
text += item.title; | |||
if ( text.length > 13 ) { | |||
text = text.substr( 0, 13 ); | |||
text += '...'; | |||
} | |||
</syntaxhighlight><br/> | |||
## 59번째 줄의 encodeURIComponent( item.title ) )에서 encodeURIComponent를 encodeURI로 변경 | |||
==구현한 기능== | ==구현한 기능== | ||
* 아직 존재하지 않습니다.<br/> | * 아직 존재하지 않습니다.<br/> |
2018년 10월 7일 (일) 14:19 판
이 문서는...
- 답답한 우리의 가온 위키 관리자가 구현하지 못해, 착한 유저가 해결책을 제시한 경우, 감사의 표시로 이곳과 가온 위키 커뮤니티에 표시하는 곳입니다.
구현 못한 부분
니코동 영상 가져오기
- 어디서는 SSL을 적용해도 잘만 가져오는데, 여기는 못 가져오네...
최근바뀜에서 문서명에 / 가 포함되어 있으면, 오류 뜨는 경우 수정됨)
var recentChanges, html, time, line, text;
recentChanges = data.query.recentchanges;
html = recentChanges.map( function ( item ) {
time = new Date( item.timestamp );
line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURIComponent( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] ';
text = '';
if ( item.type === 'new' ) {
text += '[New]';
}
text += item.title;
if ( text.length > 13 ) {
text = text.substr( 0, 13 );
text += '...';
}
- 수정 후
var recentChanges, html, time, line, text;
recentChanges = data.query.recentchanges;
html = recentChanges.map( function ( item ) {
time = new Date( item.timestamp );
line = '<li><a class="recent-item" href = "' + ( mw.config.get( 'wgArticlePath' ) ).replace( '$1', encodeURI( item.title ) ) + '" title="' + item.title + '">[' + timeFormat( time ) + '] ';
text = '';
if ( item.type === 'new' ) {
text += '[New]';
}
text += item.title;
if ( text.length > 13 ) {
text = text.substr( 0, 13 );
text += '...';
}
- 59번째 줄의 encodeURIComponent( item.title ) )에서 encodeURIComponent를 encodeURI로 변경
구현한 기능
- 아직 존재하지 않습니다.
- ↑ 최신 버전 기준이다.