User:DR/common.js: Difference between revisions
From Test Wiki
Content deleted Content added
restore Tag: Manual revert |
No edit summary |
||
| Line 1: | Line 1: | ||
importScript('User:DR/UserInfoEN.js'); // Backlink: [[User:DR/UserInfoEN.js]] |
importScript('User:DR/UserInfoEN.js'); // Backlink: [[User:DR/UserInfoEN.js]] |
||
(function() { |
|||
'use strict'; |
|||
if (window.location.search.includes('action=delete')) { |
|||
window.addEventListener('load', function() { |
|||
var reasonInput = document.querySelector('input[name="wpReason"]'); |
|||
if (reasonInput) { |
|||
reasonInput.value = ''; |
|||
} |
|||
}); |
|||
} |
|||
})(); |
|||