Skip to content
Browse files

restore experience 0.2 version

  • Loading branch information...
1 parent 9f58fe9 commit a6c610f3b684258df5b22ee9960c0922af4b94be @guiwuu committed Oct 19, 2011
Showing with 22 additions and 3 deletions.
  1. +19 −0 chrome/experience/content.js
  2. +3 −3 chrome/experience/manifest.json
View
19 chrome/experience/content.js
@@ -9,4 +9,23 @@ function replaceCustomFollowLink(){
}
};
+function addMineExperienceLink(){
+ var mineExperienceLink = location.href.replace(/\.com\/.*/,'.com') + "/lottery/experience/mine.htm";
+ var mineExperienceAnchor = "<a target='_blank' href='" + mineExperienceLink + "'>\u6211\u7684\u6218\u7EE9</a>";
+
+ var quickLink = document.all.item("quick-link");
+ if (quickLink != undefined) {
+ var rel = quickLink.rel;
+ rel = rel.replace('</dl>', '<dd>') + mineExperienceAnchor + '</dd></dl>';
+ quickLink.rel = rel;
+ }
+
+ var myLotteryMenu = document.all.item("mylottery-menu");
+ console.debug(myLotteryMenu);
+ if (myLotteryMenu != undefined) {
+ myLotteryMenu.innerHTML = myLotteryMenu.innerHTML + "<li>" + mineExperienceAnchor + "</li>";
+ }
+}
+
+addMineExperienceLink();
window.setInterval(replaceCustomFollowLink, 100);
View
6 chrome/experience/manifest.json
@@ -1,7 +1,7 @@
{
- "name": "Taobao Caipiao Experience Assistant",
- "version": "0.1",
- "description": "Taobao caipiao experience assistant",
+ "name": "Experience Assistant",
+ "version": "0.2",
+ "description": "Enhance taobao caipiao experience function",
"icons": {
"48": "icon.png"
},

0 comments on commit a6c610f

Please sign in to comment.
Something went wrong with that request. Please try again.