MediaWiki:Common.js: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Reverted
Line 1: Line 1:
$(window).load(function(){
window.addEventListener('load', function() {
     $(".goog-logo-link").empty();
     // Remove the content of elements with the class 'goog-logo-link'
     $('.goog-te-gadget').html($('.goog-te-gadget').children());
    document.querySelectorAll('.goog-logo-link').forEach(function(element) {
})
        element.innerHTML = '';
    });
 
     // Replace the innerHTML of elements with the class 'goog-te-gadget' with their children
    document.querySelectorAll('.goog-te-gadget').forEach(function(element) {
        let children = Array.from(element.children);
        element.innerHTML = '';
        children.forEach(function(child) {
            element.appendChild(child);
        });
    });
});