User:Cakelot1/common.js

mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/FullScreenEditing.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/PageCleanUp.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/CurlyQuotes.js&action=raw&ctype=text/javascript'); mw.loader.load('//en.wikisource.org/w/index.php?title=User:Samwilson/LinkedLintErrors.js&action=raw&ctype=text/javascript');

var addToolbarButtonsUrl = '//en.wikipedia.org/w/index.php?title=' + 'User:V111P/js/addToolbarButtons.js&action=raw&ctype=text/javascript'; // Backlink: User:V111P/js/addToolbarButtons.js

var daggerBtn = { id: 'dagger', tooltip: 'Insert a dagger', before: '†', iconUrl: '//upload.wikimedia.org/wikipedia/commons/0/02/Dagger-14.png' };

var poundBtn = { id: 'pound', tooltip: 'Insert a Pound sign', before: '£', iconUrl: '//upload.wikimedia.org/wikipedia/commons/1/1e/Farm-Fresh_money_pound.png' };

var dashBtn = { id: 'dash', tooltip: 'Insert a em-dash', before: '—', iconUrl: '//upload.wikimedia.org/wikipedia/commons/3/39/Farm-Fresh_separator.png' };

var scBtn = { id: 'sc', tooltip: 'Small caps', before: '', iconUrl: '//upload.wikimedia.org/wikipedia/commons/4/43/Farm-Fresh_ocr_language_support.png' };

var wpBtn = { id: 'wp', tooltip: 'Add wiki link', before: 'w:',	after:'', iconUrl: '//upload.wikimedia.org/wikipedia/commons/5/5e/Button_neutral_002_60x30.png' };

var athBtn = { id: 'author', tooltip: 'Add Author link', before: 'Author:',	after:'', iconUrl: '//upload.wikimedia.org/wikipedia/commons/0/0d/Farm-Fresh_user_edit.png' };

if (mw.libs.addToolbarButtons) mw.libs.addToolbarButtons(daggerBtn), mw.libs.addToolbarButtons(dashBtn), mw.libs.addToolbarButtons(poundBtn), mw.libs.addToolbarButtons(scBtn), mw.libs.addToolbarButtons(wpBtn), mw.libs.addToolbarButtons(athBtn); else { var tbs = window.toolbarButtonsToAdd = window.toolbarButtonsToAdd || []; tbs.push(daggerBtn), tbs.push(dashBtn), tbs.push(poundBtn), tbs.push(scBtn), tbs.push(wpBtn), tbs.push(athBtn); mw.loader.load(addToolbarButtonsUrl); }