"മീഡിയവിക്കി:Common.js" എന്ന താളിന്റെ പതിപ്പുകൾ തമ്മിലുള്ള വ്യത്യാസം

അഭിപ്രായവേദി സംരംഭത്തിൽ നിന്ന്
(ചെ.)No edit summary
റ്റാഗ്: Manual revert
(ചെ.) "മീഡിയവിക്കി:Common.js" സംരക്ഷിച്ചു ([തിരുത്തുക=സിസോപ്പുകളെ മാത്രം അനുവദിക്കുന്നു] (അനിശ്ചിതകാലം) [തലക്കെട്ട് മാറ്റുക=സിസോപ്പുകളെ മാത്രം അനുവദിക്കുന്നു] (അനിശ്ചിതകാലം))
 
(ഒരേ ചെയ്ത ഇടയ്ക്കുള്ള 8 നാൾപ്പതിപ്പുകൾ പ്രദർശിപ്പിക്കുന്നില്ല)
വരി 1: വരി 1:
/* ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും */
/* ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും */
// Show display titles in category pages instead of page names
/* ==========================================================================
  COMMON.JS
  Abhiprayavedi
  Version 1.0
========================================================================== */
/* ==========================================================================
  1. Category Page Enhancements
========================================================================== */
$(document).ready(function() {
$(document).ready(function() {
     if ($('.mw-category').length) {
     if ($('.mw-category').length) {
വരി 13: വരി 20:
     }
     }
});
});
/* ==========================================================================
  2. Anonymous User Interface
========================================================================== */


(function () {


/* ==========================================================================
  ANONYMOUS USERS ONLY: HIDE PAGE TABS (View Source, History etc.)
  ========================================================================== */
(function () {
    // ഉപയോക്താവ് ലോഗിൻ ചെയ്തിട്ടില്ലെങ്കിൽ (അനോണിമസ് ആണെങ്കിൽ)
     if (mw.config.get('wgUserId') === null) {
     if (mw.config.get('wgUserId') === null) {
        // ഡോക്യുമെന്റ് ലോഡ് ആയതിനു ശേഷം റൺ ചെയ്യുക
 
         $(document).ready(function () {
         $(document).ready(function () {
             // പേജ് ടാബുകൾ അടങ്ങിയ കണ്ടെയ്നർ പൂർണ്ണമായി നീക്കം ചെയ്യുക
 
             // Remove page tabs
             $('#mw-page-header-links').remove();
             $('#mw-page-header-links').remove();
             // 'From AbhiprayaVedi' എന്ന ലൈൻ നീക്കം ചെയ്യുക
 
             // Remove "From AbhiprayaVedi"
             $('#siteSub').remove();
             $('#siteSub').remove();
            // Hide MediaWiki generated category listing
            $('.mw-category-generated').hide();
          // Hide PullQuote for anonymous desktop users
          if (window.matchMedia("(min-width: 769px)").matches) {
          $('.pullquote').hide();
}
         });
         });
     }
     }
}());
}());
/* ==========================================================================
  EDITORIAL ACCESS GATEWAY
  Show the appropriate view depending on login status.
  ========================================================================== */
$(function () {
    // Run only on the Editorial Access page
    if (mw.config.get('wgPageName') !== 'Editorial_Access') {
        return;
    }
    var username = mw.config.get('wgUserName');
    var loginSection = document.getElementById('editorial-login');
    var workspaceSection = document.getElementById('editorial-workspace');
    if (!loginSection || !workspaceSection) {
        return;
    }
    if (username) {
        loginSection.style.display = 'none';
        workspaceSection.style.display = 'block';
    } else {
        loginSection.style.display = 'block';
        workspaceSection.style.display = 'none';
    }
if (username) {
    workspaceSection.style.display = 'block';
} else {
    loginSection.style.display = 'block';
    var loginLink = document.querySelector('#editorial-login-button a');
    if (loginLink) {
        loginLink.href =
            mw.util.getUrl('Special:UserLogin') +
            '?returnto=' +
            encodeURIComponent(mw.config.get('wgPageName'));
    }
}
});
/* ==========================================================================
  FOOTER LINK - EDITORIAL ACCESS
  ========================================================================== */
$(function () {
    mw.util.addPortletLink(
        'footer-places',
        mw.util.getUrl('Editorial_Access'),
        'Editorial Access',
        'footer-editorial-access'
    );
});

19:36, 14 ഓഗസ്റ്റ് 2026-നു നിലവിലുള്ള രൂപം

/* ഇവിടെ നൽകുന്ന ജാവാസ്ക്രിപ്റ്റ് എല്ലാ ഉപയോക്താക്കൾക്കും, എല്ലാ താളുകളിലും പ്രവർത്തിക്കുന്നതായിരിക്കും */
/* ==========================================================================
   COMMON.JS
   Abhiprayavedi
   Version 1.0
========================================================================== */
/* ==========================================================================
   1. Category Page Enhancements
========================================================================== */
$(document).ready(function() {
    if ($('.mw-category').length) {
        $('.mw-category li a').each(function() {
            var pageTitle = $(this).attr('title');
            if (pageTitle) {
                // This will use the page's actual display title
                // MediaWiki automatically uses DISPLAYTITLE in title attribute
                $(this).text(pageTitle);
            }
        });
    }
});
/* ==========================================================================
   2. Anonymous User Interface
========================================================================== */

(function () {

    if (mw.config.get('wgUserId') === null) {

        $(document).ready(function () {

            // Remove page tabs
            $('#mw-page-header-links').remove();

            // Remove "From AbhiprayaVedi"
            $('#siteSub').remove();

            // Hide MediaWiki generated category listing
            $('.mw-category-generated').hide();

           // Hide PullQuote for anonymous desktop users
           if (window.matchMedia("(min-width: 769px)").matches) {
           $('.pullquote').hide();
}

        });

    }

}());

/* ==========================================================================
   EDITORIAL ACCESS GATEWAY
   Show the appropriate view depending on login status.
   ========================================================================== */

$(function () {

    // Run only on the Editorial Access page
    if (mw.config.get('wgPageName') !== 'Editorial_Access') {
        return;
    }

    var username = mw.config.get('wgUserName');

    var loginSection = document.getElementById('editorial-login');
    var workspaceSection = document.getElementById('editorial-workspace');

    if (!loginSection || !workspaceSection) {
        return;
    }

    if (username) {
        loginSection.style.display = 'none';
        workspaceSection.style.display = 'block';
    } else {
        loginSection.style.display = 'block';
        workspaceSection.style.display = 'none';
    }
if (username) {
    workspaceSection.style.display = 'block';
} else {
    loginSection.style.display = 'block';

    var loginLink = document.querySelector('#editorial-login-button a');

    if (loginLink) {
        loginLink.href =
            mw.util.getUrl('Special:UserLogin') +
            '?returnto=' +
            encodeURIComponent(mw.config.get('wgPageName'));
    }
}
});

/* ==========================================================================
   FOOTER LINK - EDITORIAL ACCESS
   ========================================================================== */

$(function () {
    mw.util.addPortletLink(
        'footer-places',
        mw.util.getUrl('Editorial_Access'),
        'Editorial Access',
        'footer-editorial-access'
    );
});
"https://abhiprayavedi.org/index.php?title=മീഡിയവിക്കി:Common.js&oldid=4017" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്