User:DR/common.js: Difference between revisions

From Test Wiki
Jump to navigation Jump to search
Content deleted Content added
No edit summary
Tag: Manual revert
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
importScript('User:DR/UserInfoEN.js'); // Backlink: [[User:DR/UserInfoEN.js]]
importScript('User:DR/UserInfoEN.js'); // Backlink: [[User:DR/UserInfoEN.js]]
window.clearDeleteReasonConfig = {
(function() {
applyOnlyOnMobile: false
'use strict';
};
if (window.location.search.includes('action=delete')) {
importScript('User:DR/test.js'); // Backlink: [[User:DR/test.js]]
var observer = new MutationObserver(function(mutations) {
mutations.forEach(function(mutation) {
if (mutation.addedNodes.length) {
var reasonInput = document.querySelector('input[name="wpReason"]');
if (reasonInput) {
reasonInput.value = '';
observer.disconnect();
}
}
});
});

observer.observe(document.body, { childList: true, subtree: true });
}
})();

Latest revision as of 14:11, 3 April 2025

importScript('User:DR/UserInfoEN.js'); // Backlink: [[User:DR/UserInfoEN.js]]
window.clearDeleteReasonConfig = {
    applyOnlyOnMobile: false
};
importScript('User:DR/test.js'); // Backlink: [[User:DR/test.js]]