Melding:Gadget-short-pages.js

Úr Wikipediu, frjálsa alfræðiritinu

Athugaðu: Eftir útgáfu kann að vera að þú þurfir að komast hjá skyndiminni vafrans þíns til að sjá breytingarnar.

  • Firefox / Safari: Haltu Shift samtímis og þú smellir á Endurhlaða (Reload), eða ýttu á annaðhvort Ctrl-F5 eða Ctrl-R (⌘-R á Mac)
  • Google Chrome: Ýttu á Ctrl-Shift-R (⌘-Shift-R á Mac)
  • Internet Explorer / Edge: Haltu Ctrl samtímis og þú smellir á Endurnýja (Refresh), eða ýttu á Ctrl-F5
  • Opera: Farðu í Verkfæri (Tools) → Stillingar (Preferences) og svo Friðhelgi og öryggi (Privacy & security) → Hreinsa vafragögn (Clear browsing data) → Myndir og skrár í skyndiminni (Chached images and files)
(function(mw, $){
    $( function (){
    	if (mw.config.get('skin') == 'vector-2022' ) {
    		var x = mw.util.addPortlet('toollinks');
    		$(x).insertAfter( '#p-tb' );
    		mw.util.addPortletLink('toollinks', 
    			"http://tools.wmflabs.org/erwin85/shortpages.php?lang=is&family=wikipedia&namespaces=0&filter=none", 
    			"Stuttar síður", 
    			"t-erwin85-short-pages",
    			"Verkfæri Erwin85 til að finna stuttar síður"
    		);
    	} else {
	        /* Add a link to one of the portlet menus on the page */
    	    mw.util.addPortletLink(
	            /* id of the target portlet ("p-cactions", "p-personal", "p-navigation" or "p-tb") */
    	        "p-tb",
        	    /* link URL */
            	"http://tools.wmflabs.org/erwin85/shortpages.php?lang=is&family=wikipedia&namespaces=0&filter=none",
	            /* link text (will be automatically lowercased by CSS for p-cactions in Monobook) */
    	        "Stuttar síður",
        	    /* id of the new item, should be unique and preferably have the appropriate prefix ("ca-", "pt-", "n-" or "t-") */
            	"t-erwin85-short-pages",
	            /* text to show when hovering over the link, without accesskey suffix */
    	        "Verkfæri Erwin85 til að finna stuttar síður",
        	    /* accesskey to activate this link (one character, try to avoid conflicts) */
	            null,
	            /* the DOM node before which the new item should be added, should be another item in the same list */
    	        null
	        );
    	}
    });
})(mediaWiki, jQuery);