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