Permalink
Browse files

Merge pull request #2 from sousousore1/corresponded_bitbucket

Use for both Github And Bitbucket
  • Loading branch information...
2 parents d48178d + 8372605 commit a5b08631803eedc71a98c3eb205601db168ff57b @monochromegane committed on GitHub Dec 22, 2016
Showing with 14 additions and 1 deletion.
  1. +8 −0 content/bitbucket.js
  2. 0 content/{content.js → github.js}
  3. +6 −1 manifest.json
@@ -0,0 +1,8 @@
+chrome.runtime.onMessage.addListener(
+ function(request, sender, sendResponse) {
+ var textArea = $('#id_new_comment');
+ if (textArea) {
+ var oldMessage = textArea.val();
+ textArea.val(oldMessage + "\n\n" + request.image);
+ }
+});
File renamed without changes.
View
@@ -17,7 +17,12 @@
"content_scripts": [
{
"matches": ["https://github.com/*"],
- "js": ["./lib/jquery-2.0.3.min.js", "./content/content.js"],
+ "js": ["./lib/jquery-2.0.3.min.js", "./content/github.js"],
+ "run_at": "document_end"
+ },
+ {
+ "matches": ["https://bitbucket.org/*"],
+ "js": ["./lib/jquery-2.0.3.min.js", "./content/bitbucket.js"],
"run_at": "document_end"
}
],

0 comments on commit a5b0863

Please sign in to comment.