MediaWiki:Common.js: различия между версиями
м Правки Pyaniy mutant (осуждение) откачены к версии Exlex. |
>Адмирал Вуллф Юларен м С ВР http://wikireality.ru/wiki/MediaWiki:Common.js |
||
| Строка 259: | Строка 259: | ||
/* </pre> */ | /* </pre> */ | ||
$.getScript('http://s7.addthis.com/js/250/addthis_widget.js#pubid=ra-4e8727876803ac59'); | |||
$(function(){ | |||
if( (wgUserName && typeof EnablePlusOne == 'undefined') || | |||
(wgNamespaceNumber != 0 && wgNamespaceNumber != 6 && wgNamespaceNumber | |||
!= 100) | |||
|| wgAction != 'view' || /(oldid|diff)=/.test(window.location) ) return; | |||
$('#firstHeading').prepend( '<div id="addthis" class="share-box | |||
addthis_toolbox addthis_default_style"></a>' + | |||
'<a class="addthis_button_livejournal at300b"></a><a | |||
class="addthis_button_twitter at300b"></a>' + | |||
'<a class="addthis_button_vk at300b"></a><a | |||
class="addthis_button_facebook at300b"></a>' + | |||
'<a class="addthis_button_compact"></a><a | |||
class="addthis_button_google_plusone"></a></div>' ); | |||
}); | |||