Usor:Paelius/common.js

E Wikisource

Note: After publishing, you may have to bypass your browser's cache to see the changes.

  • Firefox / Safari: Hold Shift while clicking Reload, or press either Ctrl-F5 or Ctrl-R (⌘-R on a Mac)
  • Google Chrome: Press Ctrl-Shift-R (⌘-Shift-R on a Mac)
  • Internet Explorer / Edge: Hold Ctrl while clicking Refresh, or press Ctrl-F5
  • Opera: Press Ctrl-F5.
hookEvent('load', function() {
	jQuery("#mw-editbutton-bold").css("display", "none");
	jQuery("#mw-editbutton-italic").css("display", "none");
	jQuery("#mw-editbutton-link").css("display", "none");
	jQuery("#mw-editbutton-extlink").css("display", "none");
	jQuery("#mw-editbutton-headline").css("display", "none");
	jQuery("#mw-editbutton-image").css("display", "none");
	jQuery("#mw-editbutton-media").css("display", "none");
	jQuery("#mw-editbutton-math").css("display", "none");
	jQuery("#mw-editbutton-nowiki").css("display", "none");
	jQuery("#mw-editbutton-signature").css("display", "none");
	jQuery("#mw-editbutton-hr").css("display", "none");
});

toolbarGadget.addButton({
	title: ' poem ',
	alt: ' [ poem ] ',
	id: ' poem ',
	onclick: function() {  insertTags('<poem>', '</poem>', '') }
});
toolbarGadget.addButton({
	title: ' center ',
	alt: ' [ center ] ',
	id: ' center ',
	onclick: function() {  insertTags('<center>', '</center>', '') }
});
toolbarGadget.addButton({
	title: ' small ',
	alt: ' [ small ] ',
	id: ' small ',
	onclick: function() {  insertTags('<small>', '</small>', '') }
});
toolbarGadget.addButton({
	title: ' big ',
	alt: ' [ big ] ',
	id: ' big ',
	onclick: function() {  insertTags('<big>', '</big>', '') }
});
toolbarGadget.addButton({
	title: 'tab',
	alt: ' [ {{tab}} ] ',
	id: 'tab',
	onclick: function() {  insertTags('&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;', '', '') }
});
toolbarGadget.addButton({
	title: 'br',
	alt: ' [ <br /> ] ',
	id: 'br',
	onclick: function() {  insertTags('<br />', '', '') }
});
toolbarGadget.addButton({
	title: 'ref',
	alt: ' [ ref ] ',
	id: 'ref',
	onclick: function() {  insertTags('<ref>', '</ref>', '') }
});
toolbarGadget.addButton({
	title: 'pwiki',
	alt: ' [ pwiki ] ',
	id: 'pwiki',
	onclick: function() {  insertTags('{{przypiswiki|Błąd w druku — winno być: ', '.}}', '') }
});
toolbarGadget.addButton({
	title: ' sup ',
	alt: ' [ sup ] ',
	id: ' sup ',
	onclick: function() {  insertTags('<sup>', '</sup>', '') }
});
toolbarGadget.addButton({
	title: ' sub ',
	alt: ' [ sub ] ',
	id: ' sub ',
	onclick: function() {  insertTags('<sub>', '</sub>', '') }
});
toolbarGadget.addButton({
	title: ' é ',
	alt: ' [ é ] ',
	id: ' é ',
	onclick: function() {  insertTags('é', '', '') }
});
toolbarGadget.addButton({
	title: ' á ',
	alt: ' [ á ] ',
	id: ' á ',
	onclick: function() {  insertTags('á', '', '') }
});
toolbarGadget.addButton({
	title: ' ſ ',
	alt: ' [ ſ ] ',
	id: ' ſ ',
	onclick: function() {  insertTags('ſ', '', '') }
});
toolbarGadget.addButton({
	title: ' — ',
	alt: ' [ — ] ',
	id: ' — ',
	onclick: function() {  insertTags('—', '', '') }
});
toolbarGadget.addButton({
	title: ' „ ',
	alt: ' [ „ ] ',
	id: ' „ ',
	onclick: function() {  insertTags('„', '', '') }
});
toolbarGadget.addButton({
	title: ' ” ',
	alt: ' [ ” ] ',
	id: ' ” ',
	onclick: function() {  insertTags('”', '', '') }
});
toolbarGadget.addButton({
	title: ' « ',
	alt: ' [ « ] ',
	id: ' « ',
	onclick: function() {  insertTags('«', '', '') }
});
toolbarGadget.addButton({
	title: ' » ',
	alt: ' [ » ] ',
	id: ' » ',
	onclick: function() {  insertTags('»', '', '') }
});
toolbarGadget.addButton({
	title: ' ü ',
	alt: ' [ ü ] ',
	id: ' ü ',
	onclick: function() {  insertTags('ü', '', '') }
});
toolbarGadget.addButton({
	title: ' ö ',
	alt: ' [ ö ] ',
	id: ' ö ',
	onclick: function() {  insertTags('ö', '', '') }
});
toolbarGadget.addButton({
	title: ' ä ',
	alt: ' [ ä ] ',
	id: ' ä ',
	onclick: function() {  insertTags('ä', '', '') }
});
toolbarGadget.addButton({
	title: ' à ',
	alt: ' [ à ] ',
	id: ' à ',
	onclick: function() {  insertTags('à', '', '') }
});
toolbarGadget.addButton({
	title: ' è ',
	alt: ' [ è ] ',
	id: ' è ',
	onclick: function() {  insertTags('è', '', '') }
});
toolbarGadget.addButton({
	title: ' ° ',
	alt: ' [ ° ] ',
	id: ' ° ',
	onclick: function() {  insertTags('°', '', '') }
});
toolbarGadget.addButton({
	title: ' ′ ',
	alt: ' [ ′ ] ',
	id: ' ′ ',
	onclick: function() {  insertTags('′', '', '') }
});
toolbarGadget.addButton({
	title: ' □ ',
	alt: ' [ □ ] ',
	id: ' □ ',
	onclick: function() {  insertTags('□', '', '') }
});