Szerkesztő:Hunyadym/monobook.js

A Wikipédiából, a szabad enciklopédiából

Megjegyzés: közzététel után frissítened kell a böngésződ gyorsítótárát, hogy lásd a változásokat.

  • Firefox / Safari: tartsd lenyomva a Shift gombot és kattints a Frissítés gombra a címsorban, vagy használd a Ctrl–F5 vagy Ctrl–R (Macen ⌘–R) billentyűkombinációt
  • Google Chrome: használd a Ctrl–Shift–R (Macen ⌘–Shift–R) billentyűkombinációt
  • Internet Explorer / Edge: tartsd nyomva a Ctrl-t, és kattints a Frissítés gombra, vagy nyomj Ctrl–F5-öt
  • Opera: Nyomj Ctrl–F5-öt
// Wikikód megjelenítése új fülön
function addRawTab() {
  if (wgNamespaceNumber == -1) return;
  var link = mw.config.get('wgServer') + mw.config.get('wgScript') + '?title=' + wgPageName + '&action=raw&ctype=text/css&templates=expand';
  var before = document.getElementById('ca-history');
  mw.util.addPortletLink('p-cactions', link, 'kód', 'ca-raw', 'Wikikód', null, before); } addOnloadHook(addRawTab);

// Figyelőlistán utolsó betöltés óta történt változtatások
$(function () {
if (!wgCanonicalSpecialPageName || wgCanonicalSpecialPageName != "Watchlist") return;
if (!document.forms[0] || !document.forms[0].namespace) return;

var link = document.createElement('a');
link.id = 'listSince';
link.href = '#listSince';  // must have a href to show as link!

var then = +(new Date());
var fixLinkHref = function () {
var url = window.location.href.split('#')[0];
var days = (( +(new Date()) - then ) + (60 * 1000)) / (1000 * 3600 * 24);
if (url.match(/[?&]days=/))
this.href = url.replace(/([?&]days=)[^&]*/, '$1'+days);
else
this.href = url + (url.indexOf('?') < 0 ? '?':'&') + 'days=' + days;
return true;
};
link.onclick = fixLinkHref;
link.onmousedown = fixLinkHref;  // react to middle clicks too

var frag = document.createDocumentFragment();
frag.appendChild(document.createTextNode(' | '));
frag.appendChild(link);
link.appendChild(document.createTextNode('Változtatások'));
frag.appendChild(document.createTextNode(' az utolsó betöltés óta'));

// just one little ID attribute would be _so_ nice...
var nsSelectForm = document.getElementsByTagName('form')[0];
nsSelectForm.parentNode.insertBefore(frag, nsSelectForm);
});

/* (Elvileg segédeszközökben is benne van)
// Előnézet
mw.loader.load("//en.wikipedia.org/w/index.php?title=User:Js/ajaxPreview.js&action=raw&ctype=text/javascript") ;
*/

// Bal oldalt 20 előnézet legyen látható a keresőben
wgMWSuggestTemplate = wgMWSuggestTemplate + "&limit=20";

// Automatikus összefoglalók
importScript("Szerkesztő:Tgr/summary.js") ;

// Még fejlettebb friss változtatások
// Ezt használható: 
//   importScript("Szerkesztő:Hunyadym/rc.js") ;

// Ez fejlesztés alatt van, néha nem működik
     importScript("Szerkesztő:Hunyadym/rc_dev.js") ;
     Kicsi=1 ;

// Szerkesztősor kibővítés
mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile": "http://upload.wikimedia.org/wikipedia/commons/c/cb/Button_big_2.png",
  "speedTip": "Nagyobb betűméret",
  "tagOpen": "<big>",
  "tagClose": "</big>",
  "sampleText": "nagybetűs szöveg" }
mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile": "http://hu.wikipedia.org/skins-1.5/common/images/button_hr.png",
  "speedTip": "Nagykötőjel",
  "tagOpen": "–",
  "tagClose": "",
  "sampleText": "" }
mwCustomEditButtons[mwCustomEditButtons.length] = {
  "imageFile": "http://upload.wikimedia.org/wikipedia/commons/0/05/Button_Anf%C3%BChrung.png",
  "speedTip": "idézőjelek beillesztése",
  "tagOpen": "„",
  "tagClose": "”",
  "sampleText": "" }
/*
//WatchCat
document.write('<script type="text/javascript" src="' 
      + 'http://hu.wikipedia.org/w/index.php?title=' + encodeURI( "User:Winston/WatchCat.js".replace( / /g, '_') )
      + '&action=raw&ctype=text/javascript&dontcountme=s"></script>');
*/

//importScript("Szerkesztő:Hunyadym/userright.js") ;
importScript("Szerkesztő:Hunyadym/showoldid.js") ;