MediaWiki:Common.js
From DIQA-Homepage
Note: After saving, you may have to bypass your browser's cache to see the changes.
- Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
- Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
- Internet Explorer: Hold Ctrl while clicking Refresh, or press Ctrl-F5
- Opera: Go to Menu → Settings (Opera → Preferences on a Mac) and then to Privacy & security → Clear browsing data → Cached images and files.
/* function showMailPopup() { if ( mw.config.get( 'wgPageName' ) !== 'Hauptseite' ) { var url = new URL(window.location.href); var showpopup = url.searchParams.get("showpopup"); if (showpopup) { alert(url.searchParams.get("popuptext")); } } } */ function resizeImages() { $('.imageExpand img').attr("width","100%"); $('.imageExpand img').attr("height","100%"); } $("form").submit(function(event) { var response = $("#g-recaptcha-response", event.target); if (response.length == 0) { return; } var recaptcha = response .val(); if (recaptcha === "") { event.preventDefault(); alert("Please prove that you are no bot and check the recaptcha"); } }); function removeLinkTargetsInMenu() { $('div#mw-navigation-collapse').find('a[target="_blank"]').removeAttr('target'); }; $(document).ready(function() { resizeImages(); /* $('#form_date').datepicker();*/ removeLinkTargetsInMenu(); /*showMailPopup();*/ }); window.onbeforeprint = function() { };