Kaixin001 Assistant

By Cui Mingda Last update Jan 20, 2009 — Installed 1,101 times.

你写的code很漂亮

in
Subscribe to 你写的code很漂亮 1 post, 1 voice

sumple User

看过你的code 充分感觉到oos的好处 自己学着扩展了一点点 非常感谢!

主要是买卖朋友的时候 把js那段js:gotouser(xxx)改成了绝对url 这样我就可以中键在不同窗口开个n个好友了

比较烂,贴一下 :)

*** 38206.user.js Tue Mar 3 19:35:41 2009
--- sumple.js Tue Mar 3 19:34:40 2009
***************
*** 69,74 ****
--- 69,76 ----
if(currentPage.isFriend) friendsGame.showStrangerFriends();
if(currentPage.isAll) friendsGame.friendShortcut();

+ if(currentPage.isSelectSlave) friendsGame.openSlaveInNewWindow();
+
if(currentPage.isAll) escapeToCloseDialog();
});

***************
*** 79,85 ****
reHome : /\/home\/(\?t=\d+)?$/,
reFriend : /\/home\/\?uid=(\d+)$/,
reAvatar : /logo\/\d+\/\d+\/\d+_(\d+)_\d+\.jpg$/,
! reTrim : /^\s+|\s+$/g
};

var currentPage = {
--- 81,88 ----
reHome : /\/home\/(\?t=\d+)?$/,
reFriend : /\/home\/\?uid=(\d+)$/,
reAvatar : /logo\/\d+\/\d+\/\d+_(\d+)_\d+\.jpg$/,
! reTrim : /^\s+|\s+$/g,
! reUID : /javascript:parent.gotouser\((\d+)\)$/
};

var currentPage = {
***************
*** 99,104 ****
--- 102,108 ----
isMarket : location.href.indexOf('aid=1040&url=market.php') !== -1,
isTeam : location.href.indexOf('aid=1040&url=myteam.php') !== -1,
isRank : location.href.indexOf('aid=1040&url=rank.php') !== -1,
+ isSelectSlave : location.href.indexOf('/slave/selslave_dialog.php') !== -1,
isAll : true
};

***************
*** 678,681 ****
--- 682,694 ----
parkingGame.raceMenu = function() {
$("#head_applist a[href*=1040]").parent().parent().after("

");
};
+
+ friendsGame.openSlaveInNewWindow = function() {
+ $(".sl2").each(function() {
+ if(!settings.reUID.test($(this).attr('href'))) return;
+ var uid = $(this).attr('href').match(settings.reUID)[1];
+ $(this).attr('href', "http://www.kaixin001.com/app/app.php?aid=1028&uid=" + uid);
+ });
+ };
+
})();
\ No newline at end of file

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel