MediaWiki:Common.js — различия между версиями
Материал из ANT-Inform documentation
Hubbitus (обсуждение | вклад) м |
Hubbitus (обсуждение | вклад) |
||
| Строка 5: | Строка 5: | ||
*/ | */ | ||
| − | /* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor | + | /* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor |
addOnloadHook(function() { | addOnloadHook(function() { | ||
| Строка 13: | Строка 13: | ||
addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); | addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); | ||
}); | }); | ||
| + | */ | ||
Версия 12:04, 8 февраля 2013
/* Размещённый здесь код JavaScript будет загружаться пользователям при обращении к каждой странице */ /* http://en.wikipedia.org/wiki/User:Js/ajaxPreview importScript('User:Js/ajaxPreview.js'); // [[user:js/ajaxPreview]] */ /* http://en.wikipedia.org/wiki/Wikipedia:WikiProject_User_scripts/Scripts/External_editor addOnloadHook(function() { var editTab = document.getElementById("ca-edit"); if (!editTab) return; var editURL = editTab.getElementsByTagName("a")[0].href; addPortletLink("p-cactions", editURL + "&externaledit=true", "EE", "ca-exted", "External editor", ""); }); */