"미디어위키:Common.js"의 두 판 사이의 차이
11번째 줄: | 11번째 줄: | ||
el = $(el).find('.mw-changeslist'); | el = $(el).find('.mw-changeslist'); | ||
console.log(el); | console.log(el); | ||
− | rc.replaceWith(el | + | rc.replaceWith(el); |
}); | }); | ||
} | } |
2015년 11월 2일 (월) 01:28 판
/* 이 자바스크립트 설정은 모든 문서, 모든 사용자에게 적용됩니다. */ var rc = $('.recent_changes'); var el; var cl; if(rc.length > 0) { $.get('/wiki/index.php/특수:최근바뀜', function(text){ console.log(text); el = $.parseHTML(text); el = $(el).find('.mw-changeslist'); console.log(el); rc.replaceWith(el); }); }