Qeyd: Dəyişiklikləri yayımladıqdan sonra etdiyiniz dəyişikliklərin görünməsi üçün brauzerinizin keşinin təmizlənməsi lazım ola bilər.
- Firefox / Safari: Reload düyməsinə basılı tutarkən Shift düyməsinə basın, və ya Ctrl+F5 və ya Ctrl+R (Mac üçün ⌘-R )
- Google Chrome: Ctrl-Shift-R (Mac üçün ⌘-Shift-R)
- Edge: Ctrl düyməsini basılı tutarkən Refresh düyməsinə basın, və ya sadəcə Ctrl+F5.
mw.loader.load('/w/index.php?title=İstifadəçi:ReiKaze/test.js&action=raw&ctype=text/javascript');
// ReiKaze JS
// Qaranlıq rejim düyməsi
mw.loader.using(['mediawiki.util']).then(function () {
var button = document.createElement("button");
button.innerText = "🌙 Qaranlıq Rejim";
button.style.position = "fixed";
button.style.bottom = "20px";
button.style.right = "20px";
button.style.zIndex = "9999";
button.style.padding = "10px";
button.style.backgroundColor = "#444";
button.style.color = "#fff";
button.style.border = "none";
button.style.borderRadius = "10px";
button.style.cursor = "pointer";
button.style.boxShadow = "0 0 10px #000";
document.body.appendChild(button);
let darkMode = false;
button.onclick = function () {
darkMode = !darkMode;
document.body.style.backgroundColor = darkMode ? "#1c1c1c" : "";
document.body.style.color = darkMode ? "#e0e0e0" : "";
};
});
const randomQuote = quotes[Math.floor(Math.random() * quotes.length)];
const quoteBox = document.createElement("div");
quoteBox.innerText = randomQuote;
quoteBox.style.position = "fixed";
quoteBox.style.top = "10px";
quoteBox.style.left = "10px";
quoteBox.style.transform = "none";
quoteBox.style.background = "#222";
quoteBox.style.color = "#fff";
quoteBox.style.padding = "10px 20px";
quoteBox.style.borderRadius = "10px";
quoteBox.style.boxShadow = "0 0 10px #000";
quoteBox.style.fontWeight = "bold";
quoteBox.style.zIndex = "9999";
document.body.appendChild(quoteBox);mw.loader.using('mediawiki.util', function () {
$(function () {
var content = document.getElementById('mw-content-text');
if (!content) return;
var imgCount = content.querySelectorAll('img').length;
var refCount = content.querySelectorAll('sup.reference').length;
var box = document.createElement('div');
box.style.position = 'fixed';
box.style.top = '10px';
box.style.left = '50%';
box.style.transform = 'translateX(-50%)';
box.style.backgroundColor = '#f8f9fa';
box.style.border = '1px solid #a2a9b1';
box.style.padding = '8px 16px';
box.style.borderRadius = '10px';
box.style.boxShadow = '0 2px 8px rgba(0,0,0,0.15)';
box.style.zIndex = '9999';
box.style.fontSize = '15px';
box.style.color = '#202122';
box.style.fontWeight = 'bold';
box.innerHTML = `
📷 Şəkil: ${imgCount} ‧ 🔗 İstinad: ${refCount}
`;
document.body.appendChild(box);
});
});