-
-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from DoctorLai/NewVersion
Version 3.0.4
- Loading branch information
Showing
21 changed files
with
5,994 additions
and
227 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
*.zip | ||
node_modules/ | ||
.vscode/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,22 @@ | ||
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { | ||
switch (message.type) { | ||
case "bglog": | ||
console.log(message.obj); | ||
break; | ||
} | ||
return true; | ||
}); | ||
(function() { | ||
"use strict"; | ||
|
||
chrome.runtime.onMessage.addListener(function(message, sender, sendResponse) { | ||
switch (message.type) { | ||
case "bglog": | ||
console.log(message.obj); | ||
break; | ||
} | ||
return true; | ||
}); | ||
|
||
chrome.runtime.onInstalled.addListener(function(details) { | ||
if (details.reason == "install") { | ||
//call a function to handle a first install | ||
console.log("onInstalled: Thank you! https://weibomiaopai.com"); | ||
} else if (details.reason == "update") { | ||
//call a function to handle an update | ||
console.log("new version available: https://weibomiaopai.com"); | ||
} | ||
}); | ||
chrome.runtime.onInstalled.addListener(function(details) { | ||
if (details.reason == "install") { | ||
//call a function to handle a first install | ||
console.log("onInstalled: Thank you! https://weibomiaopai.com"); | ||
} else if (details.reason == "update") { | ||
//call a function to handle an update | ||
console.log("new version available: https://weibomiaopai.com"); | ||
} | ||
}); | ||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,22 @@ | ||
'use strict'; | ||
/* jshint -W097 */ | ||
"use strict"; | ||
|
||
let max_url_length = 95; | ||
const max_url_length = 95; | ||
const steemit_domains = [ | ||
'steemit.com', | ||
'steemkr.com', | ||
'cnsteem.com', | ||
'utopian.io', | ||
'staging.busy.org', | ||
'steemhunt.com', | ||
'mspsteem.com', | ||
'steemdb.com', | ||
'busy.org', | ||
'steemd.com' | ||
]; | ||
|
||
if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') { | ||
module.exports = { | ||
max_url_length, steemit_domains | ||
}; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.