Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

version, remove autounminify

  • Loading branch information...
commit 09183609d025966a2b514a2680f5ddaddc08a9ae 1 parent 378dccd
@chjj authored
Showing with 15 additions and 18 deletions.
  1. +13 −8 CHANGELOG.md
  2. +0 −8 live.js
  3. +2 −2 manifest.json
View
21 CHANGELOG.md
@@ -1,5 +1,10 @@
# Live Stylesheets - Changelog
+## v0.19
+
+- Added "Prettify" button
+- Remove auto-prettify option
+
## v0.18
- Added "Add" button.
@@ -18,11 +23,11 @@
The UI's CSS is now stored externally - should improve performance.
The stylesheet loading function now uses a parallel asynchronous loop.
-### Live stylesheets now loads lazily.
+### Live stylesheets now loads lazily.
-This means the elements wont be pre-loaded on every page. This should
-generally improve performance when browsing with live stylesheets enabled,
-however toggling the live stylesheets frame for the first time on a page may
+This means the elements wont be pre-loaded on every page. This should
+generally improve performance when browsing with live stylesheets enabled,
+however toggling the live stylesheets frame for the first time on a page may
seem a fraction of a second slower.
### Added options:
@@ -30,12 +35,12 @@ seem a fraction of a second slower.
- KEY_CODE: The keyCode for the toggle key. Default is 120 (F9).
- TAB_SIZE: The number of spaces a tab should be. Default is 8.
- USE_SPACES: Use spaces in place of tabs. Default is false.
-- UPDATE_TIME: The amount of time to wait after a key stroke before
+- UPDATE_TIME: The amount of time to wait after a key stroke before
updating the CSS. Default is 300 (ms).
-- UNMINIFY: Detect whether the stylesheet is minfied. Attempt
+- UNMINIFY: Detect whether the stylesheet is minfied. Attempt
to unminify and pretty print it. Default is false. (EXPERIMENTAL)
-You can set these at the top of the `live.js` file. Although I may add a more
+You can set these at the top of the `live.js` file. Although I may add a more
formal options page eventually, I like to keep things simple.
## v0.15
@@ -46,4 +51,4 @@ formal options page eventually, I like to keep things simple.
- ...
-(c) Copyright 2010-2011, Christopher Jeffrey (http://epsilon-not.net/)
+(c) Copyright 2010-2011, Christopher Jeffrey (http://dilated.cc/)
View
8 live.js
@@ -19,10 +19,6 @@ var USE_SPACES = false;
// stroke before updating the page's CSS
var UPDATE_TIME = 300;
-// detect whether the CSS is minfied and attempt
-// to unminify and pretty print it - EXPERIMENTAL
-var UNMINIFY = false;
-
/**
* Don't edit below here <--
*/
@@ -62,10 +58,6 @@ var getTextContent = function(el) {
if (el && el.textContent != null) {
var text = el.textContent;
- if (UNMINIFY && !/[\r\n]/.test(text)) {
- text = prettify(text);
- }
-
if (USE_SPACES) {
text = text.replace(/\t/g, TAB_CHARACTERS);
}
View
4 manifest.json
@@ -1,6 +1,6 @@
{
"name": "Live Stylesheets",
- "version": "0.18",
+ "version": "0.19",
"description": "Live (CSS) Stylesheet Editing, similar to the full version of Firebug.",
"permissions": ["http://*/", "https://*/"],
"browser_action": {
@@ -15,4 +15,4 @@
"css": ["design/style.css"],
"run_at": "document_end"
}]
-}
+}
Please sign in to comment.
Something went wrong with that request. Please try again.