Permalink
Browse files

Use for both Github And Bitbucket

  • Loading branch information...
1 parent d48178d commit 837260563f654443457736eda173b71657b4a5eb @SoichiSaito SoichiSaito committed Aug 29, 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 8372605

Please sign in to comment.