Skip to content

Commit 180343a

Browse files
committed
initial Commit
0 parents  commit 180343a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+1815
-0
lines changed
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.files.user-selected.read-only</key>
8+
<true/>
9+
</dict>
10+
</plist>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>NSExtension</key>
6+
<dict>
7+
<key>NSExtensionPointIdentifier</key>
8+
<string>com.apple.Safari.web-extension</string>
9+
<key>NSExtensionPrincipalClass</key>
10+
<string>$(PRODUCT_MODULE_NAME).SafariWebExtensionHandler</string>
11+
</dict>
12+
</dict>
13+
</plist>
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extension_name": {
3+
"message": "Github One Monokai",
4+
"description": "The display name for the extension."
5+
},
6+
"extension_description": {
7+
"message": "Get One Monokai colorscheme into your Github code block",
8+
"description": "Description of what the extension does."
9+
}
10+
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
2+
console.log("Received request: ", request);
3+
4+
if (request.greeting === "hello")
5+
sendResponse({ farewell: "goodbye" });
6+
});
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
browser.runtime.sendMessage({ greeting: "hello" }).then((response) => {
2+
console.log("Received response: ", response);
3+
});
4+
5+
browser.runtime.onMessage.addListener((request, sender, sendResponse) => {
6+
console.log("Received request: ", request);
7+
});
16.9 KB
Loading
11.7 KB
Loading
4.84 KB
Loading
64.4 KB
Loading
7.05 KB
Loading

0 commit comments

Comments
 (0)