Advertisement
KiberInfinity

[vkopt plugin] usermenu item - other msg write form

Apr 23rd, 2013
68
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name          vkopt usermenu msg item plugin
  3. // @description   (by KiberInfinity id13391307)
  4. // @include       http://*vkontakte.ru/*
  5. // @include       http://*vk.com/*
  6. // ==/UserScript==
  7. if (!window.vkopt_plugins) vkopt_plugins={};
  8. (function(){
  9.    var PLUGIN_ID = 'vk_umenu_oldwritemsgbox';
  10.    vkopt_plugins[PLUGIN_ID]={
  11.       Name:'old write box link in user menu',
  12.       css:'',
  13.       UserMenuItems:    function(uid){
  14.          if (uid) return '<li onmousemove="clearTimeout(pup_tout);" onmouseout="pup_tout=setTimeout(pupHide, 400);"><a href="/mail?act=write&to='+uid+'" onclick="return nav.go(this, event);">Message</a></li>';
  15.          else return "";
  16.      
  17.       }                     // function(uid) || string
  18.    };
  19.    if (window.vkopt_ready) vkopt_plugin_run(PLUGIN_ID);
  20. })();
Advertisement
RAW Paste Data Copied
Advertisement