Skip to content

Commit

Permalink
restore experience 0.2 version
Browse files Browse the repository at this point in the history
  • Loading branch information
guiwuu committed Oct 19, 2011
1 parent 9f58fe9 commit a6c610f
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 3 deletions.
19 changes: 19 additions & 0 deletions chrome/experience/content.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
6 changes: 3 additions & 3 deletions chrome/experience/manifest.json
Original file line number Diff line number Diff line change
@@ -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"
},
Expand Down

0 comments on commit a6c610f

Please sign in to comment.