MediaWiki:Common.js — различия между версиями

Материал из TaxiMaster
Перейти к: навигация, поиск
Строка 10: Строка 10:
 
     text = "textContent" in el ? "textContent" : "innerText";
 
     text = "textContent" in el ? "textContent" : "innerText";
  
if (el[text] != 'TMDriver для Android') {
+
/*if (el[text] != 'TMDriver для Android') {
 
   console.log(el[text]);
 
   console.log(el[text]);
 
   (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=azhf70KHVjALnkZ*R3aV8qnjEQLLf/utZfhZpDfyDWlrQAy*W1MRLjvxIpC4XuTu1aNUfdJMVIe1vaJGsWdq34xggbZPz2HtKnyH5y7ceKpczi/b5iWepKpFN9nip4*fT/y0eWW0afWJWyUxU6coSX71Rf0jQA9f4vQeCCFp7XA-';
 
   (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=azhf70KHVjALnkZ*R3aV8qnjEQLLf/utZfhZpDfyDWlrQAy*W1MRLjvxIpC4XuTu1aNUfdJMVIe1vaJGsWdq34xggbZPz2HtKnyH5y7ceKpczi/b5iWepKpFN9nip4*fT/y0eWW0afWJWyUxU6coSX71Rf0jQA9f4vQeCCFp7XA-';
Строка 19: Строка 19:
 
   (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=Nwxdc47CSPVEyu71civdeg2WCRqWa2S0PkcRZTz**j33hmmyHVy9wkzKZj4FV6WONqN9QydA6scfO*9*4VZF/3W*pL5iVrjVzhYFDI3OHII3TqblvOluaZ3IynjO89ZF3Nijc6Q9Yx57r*gnlFvhfbCFxmnktZZGz7TMrffnQ/I-';
 
   (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=Nwxdc47CSPVEyu71civdeg2WCRqWa2S0PkcRZTz**j33hmmyHVy9wkzKZj4FV6WONqN9QydA6scfO*9*4VZF/3W*pL5iVrjVzhYFDI3OHII3TqblvOluaZ3IynjO89ZF3Nijc6Q9Yx57r*gnlFvhfbCFxmnktZZGz7TMrffnQ/I-';
 
   console.log(el[text] + "[tmd + end]");
 
   console.log(el[text] + "[tmd + end]");
}
+
}*/
 +
 
 +
console.log(el[text] + "[тест ВКонтакте]");
 +
(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=yR/tb8IJjI0WTRj5ZtdluMTancO0VV/zyqy6Wtx*FNOffbGsrJo1/asR6P91mVIcqqf2yrUJa/L65jlYKqIS1COBasXpXnW7d1gQ1mFwtUPaJZmfdGj2hjBIfi0/CcRgz1ggNmFxv8M*fivudCqxQkSQgm4LF7vWLROR4mcQgBU-';

Версия 10:16, 11 августа 2016

/* Размещённый здесь JavaScript код будет загружаться всем пользователям при обращении к каждой странице */
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");

try {
var pageTracker = _gat._getTracker("UA-9888612-3");
pageTracker._trackPageview();
} catch(err) {}

var el = document.getElementsByTagName("h1")[0],
    text = "textContent" in el ? "textContent" : "innerText";

/*if (el[text] != 'TMDriver для Android') {
  console.log(el[text]);
  (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=azhf70KHVjALnkZ*R3aV8qnjEQLLf/utZfhZpDfyDWlrQAy*W1MRLjvxIpC4XuTu1aNUfdJMVIe1vaJGsWdq34xggbZPz2HtKnyH5y7ceKpczi/b5iWepKpFN9nip4*fT/y0eWW0afWJWyUxU6coSX71Rf0jQA9f4vQeCCFp7XA-';
  console.log(el[text] + "[end]");
}
else {
  console.log(el[text] + "[tmd]");
  (window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=Nwxdc47CSPVEyu71civdeg2WCRqWa2S0PkcRZTz**j33hmmyHVy9wkzKZj4FV6WONqN9QydA6scfO*9*4VZF/3W*pL5iVrjVzhYFDI3OHII3TqblvOluaZ3IynjO89ZF3Nijc6Q9Yx57r*gnlFvhfbCFxmnktZZGz7TMrffnQ/I-';
  console.log(el[text] + "[tmd + end]");
}*/

console.log(el[text] + "[тест ВКонтакте]");
(window.Image ? (new Image()) : document.createElement('img')).src = location.protocol + '//vk.com/rtrg?r=yR/tb8IJjI0WTRj5ZtdluMTancO0VV/zyqy6Wtx*FNOffbGsrJo1/asR6P91mVIcqqf2yrUJa/L65jlYKqIS1COBasXpXnW7d1gQ1mFwtUPaJZmfdGj2hjBIfi0/CcRgz1ggNmFxv8M*fivudCqxQkSQgm4LF7vWLROR4mcQgBU-';