• English
  • MediaWiki:Common.js: Difference between revisions

    Jump to navigation Jump to search
    sleepy commit, removing and using LocalSettings hook to insert properly
    No edit summary
    (sleepy commit, removing and using LocalSettings hook to insert properly)
     
    Line 8: Line 8:
         var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
         var t = $('label select[name="DataTables_Table_0_length"]').append(opt);
    }
    }
    function loadScript(url, callback) {
      const script = document.createElement('script');
      script.src = url;
      script.type = 'text/javascript';
      script.onload = callback;
      script.onerror = function() {
        console.error(`Failed to load script: ${url}`);
      };
      document.head.appendChild(script);
    }
    loadScript('https://www.googletagmanager.com/gtag/js?id=G-6NTFK9YLJ4', function() {
      window.dataLayer = window.dataLayer || [];
      function gtag(){dataLayer.push(arguments);}
      gtag('js', new Date());
      gtag('config', 'G-6NTFK9YLJ4');
    });

    Navigation menu

    Guest