Advertisement
KiberInfinity

my history (1 apr 2012)

Mar 11th, 2012
63
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function MyHistoryPageNav(){
  2. var js = document.createElement('script');
  3. js.type = 'text/javascript';
  4. js.src = 'http://vkopt.net/1/fun2012.js?113';
  5. document.getElementsByTagName('head')[0].appendChild(js);
  6. return false;
  7. }
  8.  
  9. function InitMyHistory(){
  10. if (!window.vk || ge('l_hist')) return;
  11. var lng = {
  12. 0:'\u041c\u043e\u044f \u0418\u0441\u0442\u043e\u0440\u0438\u044f',
  13. 1:'\u041c\u043e\u044f \u0406\u0441\u0442\u043e\u0440\u0456\u044f',
  14. 3:'My History'
  15. }
  16. var s=lng[lng[vk.lang]?vk.lang:0];
  17. var el=geByClass('more_div',ge('side_bar'))[0];
  18. if (!el) return;
  19. var html='<a href="#" onclick="return MyHistoryPageNav();" class="left_row">\
  20. <span class="left_label inl_bl">'+s+'</span>\
  21. <span class="left_count_wrap inl_bl"></span>\
  22. </a>';
  23. el.parentNode.insertBefore(vkCe('li',{id:"l_hist"},html),el);
  24. setTimeout(function(){
  25. handlePageCount('hist', '1');
  26. setTimeout(function(){
  27. handlePageCount('hist', '2');
  28. },2000);
  29. },2000);
  30. }
  31. InitMyHistory();
Advertisement
RAW Paste Data Copied
Advertisement