Permalink
Browse files

added new graphics and small tweaks to prep for distribution

  • Loading branch information...
1 parent 6d7f505 commit f629bc2f0a1bcf30b2b75aa766ac5fc992d0188c @ajmath committed Sep 7, 2010
Showing with 16 additions and 10 deletions.
  1. +8 −8 content_script.js
  2. +5 −2 manifest.json
  3. +3 −0 options.html
  4. BIN syntaxtic_128x128.png
  5. BIN syntaxtic_48x48.png
View
@@ -1,4 +1,10 @@
-var theme = "Default";
+var theme = "Midnight";
+
+chrome.extension.onRequest.addListener(
+ function(request, sender, sendResponse) {
+ theme = request.theme;
+ console.log(theme);
+ });
var highlight = function() {
if(!document.body.innerHTML.match("003ew0hdafa1119dadfa39aje"))
@@ -26,13 +32,7 @@ var highlight = function() {
}
var main = function() {
-
-
- chrome.extension.sendRequest({}, function(response) {
- theme = response.theme;
- });
-
-
+
if(brushAlias != null && brushAlias != 'undefined' && brushAlias != "")
highlight();
View
@@ -1,11 +1,14 @@
{
- "name": "Syntaxical!",
- "description": "Highlight dem codes",
+ "name": "Syntaxtic!",
+ "description": "Preforms syntax highlighting on files visited in the browser based on the files extension",
"version": "0.1",
+ "icons": { "48": "syntaxtic_48x48.png", "128": "syntaxtic_128x128.png"},
+ "options_page": "options.html",
"content_scripts": [
{
"matches": ["http://*/*.config", "https://*/*.config", "file:///*/*.config",
"http://*/*.xml", "https://*/*.xml", "file:///*/*.xml",
+ "http://*/*.build", "https://*/*.build", "file:///*/*.build",
"http://*/*.wsdl", "https://*/*.wsdl", "file:///*/*.wsdl",
"http://*/*.vbproj", "https://*/*.vbproj", "file:///*/*.vbproj",
"http://*/*.csproj", "https://*/*.csproj", "file:///*/*.csproj"],
View
@@ -8,6 +8,8 @@
var theme = select.children[select.selectedIndex].value;
window.localStorage["current_theme"] = theme;
+ chrome.extension.sendRequest({theme: localStore.current_theme});
+
// Update status to let user know options were saved.
var status = document.getElementById("status");
status.innerHTML = "Theme set to " + window.localStorage["current_theme"] + ".";
@@ -32,6 +34,7 @@
}
}
+
</script>
<body onload="restore_options()">
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f629bc2

Please sign in to comment.