Skip to content

Commit

Permalink
Merge pull request cloudroc#4 from Patrick-Liao/Bug-Fixes
Browse files Browse the repository at this point in the history
Bug fixes
  • Loading branch information
cloudroc authored Mar 16, 2017
2 parents ca81a64 + 1c665c5 commit f1b145f
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 2 deletions.
2 changes: 1 addition & 1 deletion core.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
(function(){
console.log("Don't be evil!");
const actualCode = "Object.defineProperty(navigator,'platform',{get:function(){return '这里随便吧';}});";
const s = document.createElement('script');
let s = document.createElement('script');
s.textContent = actualCode;
document.documentElement.appendChild(s);
s.remove();
Expand Down
1 change: 0 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
"web_accessible_resources": ["logo/Icon-256.png"],
"name": "百度云大文件下载破解",
"short_name": "百度云大文件下载破解",
//"options_page": "options.html",
"permissions": [
"cookies",
"tabs"
Expand Down
33 changes: 33 additions & 0 deletions manifest.json.backup
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"manifest_version": 2,

"browser_action": {
"default_icon" : "logo/Icon-48.png",
"default_title" : "百度云大文件下载破解",
"default_popup" : "popup.html"
},
"description": "百度云大文件下载破解,作者博客:http://blog.jarjar.cn/",
"icons": {
"128" : "logo/Icon-128.png",
"32" : "logo/Icon-32.png",
"48" : "logo/Icon-48.png",
"16" : "logo/Icon-16.png"
},
"content_scripts": [
{
"run_at": "document_start",
"matches" : ["*://pan.baidu.com/*"],
"js" : ["core.js"],
"all_frames" : true
}
],
"web_accessible_resources": ["logo/Icon-256.png"],
"name": "百度云大文件下载破解",
"short_name": "百度云大文件下载破解",
//"options_page": "options.html",
"permissions": [
"cookies",
"tabs"
],
"version": "1.0.1"
}

0 comments on commit f1b145f

Please sign in to comment.