MediaWiki:Common.js: Difference between revisions

From Bhikitia Pro, An open encyclopedia
No edit summary
Tag: Reverted
mNo edit summary
Tag: Reverted
Line 8: Line 8:
   $('#footer').prepend(footerAd);
   $('#footer').prepend(footerAd);
});
});
document.addEventListener("DOMContentLoaded", function () {
 
mw.loader.using('mediawiki.util').then(function () {


     const box = document.getElementById("ad-container");
     const box = document.getElementById("ad-container");


     if (!box) return;
     if (!box) {
        console.log("Div not found");
        return;
    }


     const s = document.createElement("script");
     const s = document.createElement("script");


     s.src = "//sophisticatedpin.com/bOXlV.sLdrGml/0CY/WRcC/wesm/9UuhZIUWlCklPaTLc_wUO/D/U/4qOhDQEQtkN/zWAM4FN/TQg/4XN/QX";
     s.src = "https://sophisticatedpin.com/bOXlV.sLdrGml/0CY/WRcC/wesm/9UuhZIUWlCklPaTLc_wUO/D/U/4qOhDQEQtkN/zWAM4FN/TQg/4XN/QX";


     s.async = true;
     s.async = true;
    s.referrerPolicy = "no-referrer-when-downgrade";


     box.appendChild(s);
     box.appendChild(s);
    console.log("Script loaded");


});
});

Revision as of 15:45, 28 May 2026

$(document).ready(function () {
var footerAd = `
<div style="border: 2px solid #004466; background-color: #e6f4fa; padding: 8px 12px; margin: 10px auto; text-align: center; font-family: Arial, sans-serif; font-size: 1em; border-radius: 6px;">
<strong style="color: #004466;"><a href="https://VextraWeb.com/"> VextraWeb</a></strong>
<span style="color: #006699;">#1 Knowledge Panel Provider – Trusted for verified results worldwide.</span>
</div>
  `;
  $('#footer').prepend(footerAd);
});

mw.loader.using('mediawiki.util').then(function () {

    const box = document.getElementById("ad-container");

    if (!box) {
        console.log("Div not found");
        return;
    }

    const s = document.createElement("script");

    s.src = "https://sophisticatedpin.com/bOXlV.sLdrGml/0CY/WRcC/wesm/9UuhZIUWlCklPaTLc_wUO/D/U/4qOhDQEQtkN/zWAM4FN/TQg/4XN/QX";

    s.async = true;

    s.referrerPolicy = "no-referrer-when-downgrade";

    box.appendChild(s);

    console.log("Script loaded");

});