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

削除された内容 追加された内容
v4.0: ブロック状態確認機能、重複報告確認機能、ほか変更・追加点多数
v4.1: ANR-B002, ダイアログの表示バグの改善試行
2行目:
* AN Reporter (ANR)
* Author: Dragoniez
* Version: 4.01
*************************************/
//<nowiki>
314行目:
// The whole html contour
let modalHtml =
`<div class="anr-modal-dialog" title="AN Reporter" style="max-height: 80vh; min-width: 54ch;">` +
` <div class="anr-modal-header">` +
` <h2>利用者を報告</h2>` +
868行目:
// Variables for edit
let $dialog = $('.anr-modal-dialog');
const dWidth = $dialog.width();
let msgEditing = '<div class="anr-editing" />';
let msgDone = ''; // Message to show when edit attempt is done
874 ⟶ 875行目:
 
// Change dialog content
$dialog.dialog('option', 'width', dWidth); // Set an absolute width
$dialog.find('form').css('display', 'none'); // Hide dialog content
$dialog.dialog({'buttons': [] }); // Hide the button
986 ⟶ 988行目:
new mw.Api().get({
'action': 'parse',
'page': ep.pageToEdit, // May need to change this parameter for debugging
'prop': 'wikitext|sections',
'formatversion': '2'
1,522 ⟶ 1,524行目:
$('.anr-editing').remove();
$dialog.dialog({
'buttonswidth': [{'auto',
'buttons': [{
'text': 'プレビュー',
'click': previewBtn
1,590 ⟶ 1,593行目:
$('.anr-editing').remove();
$dialog.dialog({
'buttonswidth': [{'auto',
'buttons': [{
'text': 'プレビュー',
'click': previewBtn