「利用者:Dragoniez/scripts/AN Reporter.js」の版間の差分

削除された内容 追加された内容
m v4.6: v4.4と同様、今まで機能していたものが急に機能しなくなっていた部分があったので修正。おそらくAPIに仕様変更があったんでしょう。
m v4.6.1: 前回と同様、またAPIのコードがいじられたような挙動を確認したため対応
2行目:
* AN Reporter (ANR)
* Author: Dragoniez
* Version: 4.6.1
*************************************/
//<nowiki>
1,068行目:
switch(sections[i].level) { // Get equal-enclosed section headers
case 2:
case '2':
sectionheaders.push('== ' + sections[i].line + ' ==');
break;
case 3:
case '3':
sectionheaders.push('=== ' + sections[i].line + ' ===');
break;
case 4:
case '4':
sectionheaders.push('==== ' + sections[i].line + ' ====');
break;
case 5:
case '5':
sectionheaders.push('===== ' + sections[i].line + ' =====');
break;
1,244 ⟶ 1,248行目:
duplicateFound = false; // Reset
}
//console.log('Templates that involve potential duplicate reports:');
//console.log(dupTemplates);
//console.log('Section contents that involve the templates:');
//console.log(sectionContent);
 
// Return text and update dialog