├── chrome ├── .gitignore ├── source │ ├── bg.html │ ├── icon16.png │ ├── icon48.png │ ├── icon128.png │ ├── icon-color.png │ ├── inject.js │ ├── existing_styles.js │ ├── manifest.json │ ├── options.css │ ├── options.html │ ├── bg.js │ ├── options.js │ ├── _locales │ │ └── en │ │ │ └── messages.json │ ├── css_editor.js │ └── css_editor.css ├── livecsseditor.chrome.update.xml └── Rakefile ├── icons ├── Buttons.png ├── Buttons.acorn ├── css_edit_128.png ├── css_edit_16.png ├── css_edit_48.png ├── css_edit_64.png ├── css_edit_16_bw.png ├── css_edit_16_full.png └── css_edit_128_frame.png ├── safari ├── source │ ├── css_edit.png │ ├── icon-16.png │ ├── icon-32.png │ ├── icon-64.png │ ├── Settings.plist │ ├── global.html │ ├── Info.plist │ ├── controller.js │ ├── css_editor.min.js │ └── css_editor.css ├── packages │ ├── LiveCSSEditor-1.1.0.safariextz │ └── LiveCSSEditor-1.7.0.safariextz └── livecsseditor.safari.update.plist ├── README.md └── LICENSE.txt /chrome/.gitignore: -------------------------------------------------------------------------------- 1 | *.crx 2 | *.zip 3 | tmp/ 4 | *.pem -------------------------------------------------------------------------------- /icons/Buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/Buttons.png -------------------------------------------------------------------------------- /chrome/source/bg.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /icons/Buttons.acorn: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/Buttons.acorn -------------------------------------------------------------------------------- /icons/css_edit_128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_128.png -------------------------------------------------------------------------------- /icons/css_edit_16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_16.png -------------------------------------------------------------------------------- /icons/css_edit_48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_48.png -------------------------------------------------------------------------------- /icons/css_edit_64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_64.png -------------------------------------------------------------------------------- /chrome/source/icon16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/chrome/source/icon16.png -------------------------------------------------------------------------------- /chrome/source/icon48.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/chrome/source/icon48.png -------------------------------------------------------------------------------- /icons/css_edit_16_bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_16_bw.png -------------------------------------------------------------------------------- /chrome/source/icon128.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/chrome/source/icon128.png -------------------------------------------------------------------------------- /icons/css_edit_16_full.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_16_full.png -------------------------------------------------------------------------------- /safari/source/css_edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/source/css_edit.png -------------------------------------------------------------------------------- /safari/source/icon-16.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/source/icon-16.png -------------------------------------------------------------------------------- /safari/source/icon-32.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/source/icon-32.png -------------------------------------------------------------------------------- /safari/source/icon-64.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/source/icon-64.png -------------------------------------------------------------------------------- /chrome/source/icon-color.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/chrome/source/icon-color.png -------------------------------------------------------------------------------- /icons/css_edit_128_frame.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/icons/css_edit_128_frame.png -------------------------------------------------------------------------------- /safari/packages/LiveCSSEditor-1.1.0.safariextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/packages/LiveCSSEditor-1.1.0.safariextz -------------------------------------------------------------------------------- /safari/packages/LiveCSSEditor-1.7.0.safariextz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jhubert/live-css-editor/HEAD/safari/packages/LiveCSSEditor-1.7.0.safariextz -------------------------------------------------------------------------------- /chrome/livecsseditor.chrome.update.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /chrome/source/inject.js: -------------------------------------------------------------------------------- 1 | /* Tell the extension to load the existing CSS if there is any */ 2 | (function () { 3 | var url = document.location, 4 | css = window.localStorage.getItem('livecsseditor-cache-' + url); 5 | 6 | if (css && css !== '') { 7 | chrome.extension.sendMessage({ modify : 'true' }, function (response) {}); 8 | } 9 | }()); 10 | -------------------------------------------------------------------------------- /chrome/source/existing_styles.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | var d = document, 3 | head = d.getElementsByTagName('head')[0], 4 | obj = d.createElement('style'), 5 | url = d.location; 6 | 7 | obj.id = 'LiveCSSEditor-PageCSS'; 8 | obj.setAttribute("type", "text/css"); 9 | obj.innerHTML = window.localStorage.getItem('livecsseditor-cache-' + url); 10 | head.appendChild(obj); 11 | }()); -------------------------------------------------------------------------------- /safari/livecsseditor.safari.update.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Extension Updates 6 | 7 | 8 | CFBundleIdentifier 9 | com.jeremyhubert.livecsseditor 10 | Developer Identifier 11 | 6ULL56D9UV 12 | CFBundleVersion 13 | 1.7.0 14 | CFBundleShortVersionString 15 | 1.7.0 16 | URL 17 | http://www.livecsseditor.com/dl/LiveCSSEditor-1.7.0.safariextz 18 | 19 | 20 | 21 | -------------------------------------------------------------------------------- /chrome/source/manifest.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "__MSG_extName__", 3 | "manifest_version": 2, 4 | "version": "1.8.0", 5 | "background": { 6 | "page": "bg.html" 7 | }, 8 | "options_page": "options.html", 9 | "description": "__MSG_extDescription__", 10 | "default_locale": "en", 11 | "permissions": [ 12 | "tabs", "" 13 | ], 14 | "content_scripts": [ { 15 | "matches": [""], 16 | "js": ["inject.js"] 17 | }], 18 | "browser_action": { 19 | "default_icon": "icon-color.png", 20 | "default_text": "none", 21 | "name": "__MSG_extBrowserActionName__" 22 | }, 23 | "commands": { 24 | "_execute_browser_action": { 25 | "suggested_key": { 26 | "default": "Ctrl+Shift+E" 27 | } 28 | } 29 | }, 30 | "icons": { 31 | "16": "icon16.png", 32 | "48": "icon48.png", 33 | "128": "icon128.png" 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /safari/source/Settings.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | DefaultValue 7 | 8 | Key 9 | warn 10 | Title 11 | Warn me before closing the editor with changes. 12 | Type 13 | CheckBox 14 | 15 | 16 | DefaultValue 17 | 18 | Key 19 | save 20 | Title 21 | Save my CSS even when I close the editor. 22 | Type 23 | CheckBox 24 | 25 | 26 | DefaultValue 27 | 28 | Key 29 | modify 30 | Title 31 | Load any CSS I've written for a page every time I visit. 32 | Type 33 | CheckBox 34 | 35 | 36 | 37 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Live CSS Editor 2 | 3 | A fast and easy to use extension for free-hand writing CSS on to a web page and previewing the changes. 4 | 5 | Supports Chrome and Safari. 6 | 7 | ## Installation 8 | 9 | 10 | ### Chrome 11 | 12 | Install the extension from the [Web Store](https://chrome.google.com/webstore/detail/live-css-editor/oelggcmknbjmhkpgjfhakedcfnkgbdpg) 13 | 14 | ### Safari 15 | 16 | Download and install [the latest Safari package](http://www.livecsseditor.com/LiveCSSEditor.safariextz) 17 | 18 | ## Author 19 | 20 | Built, designed and supported by Jeremy Baker (@jhubert). Additional contributions welcome. 21 | 22 | ## Contributing 23 | 24 | 1. Fork it. 25 | 2. Create a feature branch (git checkout -b my-change-branch) 26 | 3. Commit your changes (git commit -am "Made a valuable contribution") 27 | 4. Push to the branch (git push origin my_markup) 28 | 5. Open a Pull Request 29 | 6. Enjoy a refreshing Diet Coke and wait 30 | 31 | ## Support or Contact 32 | 33 | Having trouble with the editor? Please [file an issue](https://github.com/jhubert/live-css-editor/issues/new). 34 | -------------------------------------------------------------------------------- /chrome/source/options.css: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright (c) 2010, Yahoo! Inc. All rights reserved. 3 | Code licensed under the BSD License: 4 | http://developer.yahoo.com/yui/license.html 5 | version: 3.3.0 6 | build: 3167 7 | */ 8 | html{color:#000;background:#FFF;}body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,code,form,fieldset,legend,input,textarea,p,blockquote,th,td{margin:0;padding:0;}table{border-collapse:collapse;border-spacing:0;}fieldset,img{border:0;}address,caption,cite,code,dfn,em,strong,th,var{font-style:normal;font-weight:normal;}li{list-style:none;}caption,th{text-align:left;}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:normal;}q:before,q:after{content:'';}abbr,acronym{border:0;font-variant:normal;}sup{vertical-align:text-top;}sub{vertical-align:text-bottom;}input,textarea,select{font-family:inherit;font-size:inherit;font-weight:inherit;}input,textarea,select{*font-size:100%;}legend{color:#000;} 9 | 10 | /* Written by Jeremy Baker */ 11 | body { font-family: arial; font-size: 13px; padding: 15px; } 12 | fieldset { padding: 1em; border-width: 0; border-top: 1px solid #ccc; background-color: #efefef; margin-bottom: 5px; } 13 | label { padding-right: 10px; } 14 | h1 { font-size: 2em; font-weight: bold; margin-bottom: 0.5em; margin-} 15 | p { margin-bottom: 1em; } 16 | input[type="text"] { width: 6em; padding: 4px; } 17 | -------------------------------------------------------------------------------- /safari/source/global.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Live CSS Editor 4 | 50 | 51 | -------------------------------------------------------------------------------- /chrome/Rakefile: -------------------------------------------------------------------------------- 1 | require 'json' 2 | require 'uglifier' 3 | require 'nokogiri' 4 | 5 | SOURCE_DIRECTORY = 'source/' 6 | 7 | task :default => [:package] 8 | 9 | task :package do 10 | # Read the manifest file 11 | manifest = JSON.parse(File.read("#{SOURCE_DIRECTORY}manifest.json")) 12 | 13 | # Remove the existing packaged zip 14 | sh "rm package-*.zip" 15 | 16 | # Copy the source directory to the build directory 17 | sh "cp -r #{SOURCE_DIRECTORY} build/" 18 | 19 | # Minify JS files 20 | Dir['build/*.js'].each do |f| 21 | content = Uglifier.compile(File.read(f)) 22 | File.open(f, 'w') { |o| o.write(content) } 23 | end 24 | 25 | # Minify inline JS 26 | Dir['build/*.html'].each do |f| 27 | input = File.read(f) 28 | 29 | doc = Nokogiri::HTML(input) 30 | 31 | doc.css('script').each do |script| 32 | content = Uglifier.compile(script.content) 33 | script.content = content 34 | end 35 | 36 | File.open(f, 'w') { |o| o.write(doc.to_s) } 37 | end 38 | 39 | # Create the packaged zip file 40 | sh "zip -r package-#{manifest['version']}.zip build -x '*.DS_Store'" 41 | 42 | # Remove the build dir 43 | sh 'rm -Rf build/' 44 | end 45 | 46 | task :test do 47 | # Remove the test dir 48 | sh 'rm -Rf test/' 49 | 50 | # Read the manifest file 51 | manifest = JSON.parse(File.read("#{SOURCE_DIRECTORY}manifest.json")) 52 | 53 | # Copy the source directory to the build directory 54 | sh "cp -r #{SOURCE_DIRECTORY} test/" 55 | 56 | # Minify JS files 57 | Dir['test/*.js'].each do |f| 58 | content = Uglifier.compile(File.read(f)) 59 | File.open(f, 'w') { |o| o.write(content) } 60 | end 61 | 62 | # Minify inline JS 63 | Dir['test/*.html'].each do |f| 64 | input = File.read(f) 65 | 66 | doc = Nokogiri::HTML(input) 67 | 68 | doc.css('script').each do |script| 69 | content = Uglifier.compile(script.content) 70 | script.content = content 71 | end 72 | 73 | File.open(f, 'w') { |o| o.write(doc.to_s) } 74 | end 75 | end -------------------------------------------------------------------------------- /chrome/source/options.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | Live CSS Edit Options 4 | 5 | 6 | 7 | 8 | 9 |

Live CSS Editor Options

10 | 11 |
12 |

13 |

This configuration is now handled by the Chrome Keyboard Shortcuts manager at the bottom of the extensions page: chrome://extensions.

14 |
15 | 16 |
17 |

18 | xpx 19 |
20 | 21 |
22 |

Warn before closing the editor:

23 | 24 | 25 |
26 | 27 |
28 |

Save your css even when you reload or leave the page:

29 | 30 | 31 |
32 | 33 |
34 |

Load the CSS you've written when you visit the page again:

35 | 36 | 37 |
38 | 39 |

40 | 41 | 42 | -------------------------------------------------------------------------------- /safari/source/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Author 6 | Jeremy Hubert 7 | Builder Version 8 | 7534.57.2 9 | CFBundleDisplayName 10 | Live CSS Editor 11 | CFBundleIdentifier 12 | com.jeremyhubert.livecsseditor 13 | CFBundleInfoDictionaryVersion 14 | 6.0 15 | CFBundleShortVersionString 16 | 1.7.0 17 | CFBundleVersion 18 | 1.7.0 19 | Chrome 20 | 21 | Context Menu Items 22 | 23 | 24 | Command 25 | toggle 26 | Identifier 27 | LiveEditCSSContextual 28 | Title 29 | Live Write CSS 30 | 31 | 32 | Database Quota 33 | 10485760 34 | Global Page 35 | global.html 36 | Toolbar Items 37 | 38 | 39 | Command 40 | toggle 41 | Identifier 42 | LiveEditCSSToolbar 43 | Image 44 | css_edit.png 45 | Label 46 | Write CSS 47 | Palette Label 48 | Write CSS 49 | Tool Tip 50 | Write Live CSS 51 | 52 | 53 | 54 | Content 55 | 56 | Scripts 57 | 58 | End 59 | 60 | css_editor.min.js 61 | 62 | Start 63 | 64 | controller.js 65 | 66 | 67 | Stylesheets 68 | 69 | css_editor.css 70 | 71 | 72 | Description 73 | Enable Live CSS Editing on any website 74 | ExtensionInfoDictionaryVersion 75 | 1.0 76 | Permissions 77 | 78 | Website Access 79 | 80 | Include Secure Pages 81 | 82 | Level 83 | All 84 | 85 | 86 | Update Manifest URL 87 | http://www.livecsseditor.com/LiveCSSEditor.plist 88 | Website 89 | http://www.livecsseditor.com 90 | 91 | 92 | -------------------------------------------------------------------------------- /chrome/source/bg.js: -------------------------------------------------------------------------------- 1 | /*jslint browser: true, devel: true, maxerr: 50, indent: 2 */ 2 | /*global chrome */ 3 | 4 | (function () { 5 | "use strict"; 6 | 7 | function setItem(key, value) { 8 | try { 9 | window.localStorage.removeItem(key); 10 | window.localStorage.setItem(key, value); 11 | } catch (ignore) {} 12 | } 13 | 14 | function getItem(key) { 15 | var value; 16 | try { 17 | value = window.localStorage.getItem(key); 18 | } catch (ignore) {} 19 | return value; 20 | } 21 | 22 | function setupDefaults() { 23 | if (!localStorage.hasOwnProperty('warn')) { 24 | setItem('warn', 'true'); 25 | } 26 | 27 | if (!localStorage.hasOwnProperty('save')) { 28 | setItem('save', 'true'); 29 | } 30 | } 31 | 32 | function injectEditor() { 33 | setupDefaults(); 34 | 35 | chrome.tabs.insertCSS(null, {file: "css_editor.css"}); 36 | 37 | var options = { 38 | warn: getItem('warn') === "true", 39 | save: getItem('save') === "true", 40 | modify: getItem('modify') === "true", 41 | boxsize: getItem('boxsize') || '' 42 | }, 43 | code = 'LiveCSSEditor(' + JSON.stringify(options) + ');'; 44 | 45 | chrome.tabs.executeScript(null, {file: "css_editor.js"}, function () { 46 | chrome.tabs.executeScript(null, {code: code}); 47 | }); 48 | } 49 | 50 | function loadExistingStyle(tabId) { 51 | if (getItem('modify') === 'true') { 52 | chrome.browserAction.setBadgeText({ text: "*", tabId: tabId }); 53 | chrome.tabs.executeScript(null, {file: "existing_styles.js"}); 54 | } 55 | } 56 | 57 | function handleFileSchemeAccess(isAllowedAccess) { 58 | if (isAllowedAccess) { 59 | injectEditor(); 60 | } else { 61 | if (confirm(chrome.i18n.getMessage('errorFileURL'))) { 62 | chrome.tabs.create({ url: 'chrome://extensions/?id=' + chrome.runtime.id }); 63 | } 64 | } 65 | } 66 | 67 | chrome.extension.onMessage.addListener( 68 | function (request, sender, sendResponse) { 69 | if (request.modify) { 70 | loadExistingStyle(sender.tab.id); 71 | } 72 | sendResponse({}); 73 | } 74 | ); 75 | 76 | // Called when the user clicks on the browser action. 77 | chrome.browserAction.onClicked.addListener(function (tab) { 78 | var url = tab.url; 79 | 80 | if (url.indexOf('chrome') === 0) { 81 | alert(chrome.i18n.getMessage('errorChromeURL')); 82 | return; 83 | } 84 | 85 | if (url.indexOf('file:///') === 0) { 86 | chrome.extension.isAllowedFileSchemeAccess(handleFileSchemeAccess); 87 | } else { 88 | injectEditor(); 89 | } 90 | }); 91 | 92 | }()); 93 | -------------------------------------------------------------------------------- /safari/source/controller.js: -------------------------------------------------------------------------------- 1 | (function () { 2 | var translations = { 3 | "extName": { "message": "Live CSS Editor", "description": "The name of this extension." }, 4 | "extDescription": { "message": "Live Write CSS onto any page", "description": "The description of this extension." }, 5 | "extBrowserActionName": { "message": "Enable the editor", "description": "The text shown to the user when they hover over the browser action button." }, 6 | "editorTitle": { "message": "Live CSS Editor", "description": "The text shown on the actual editor." }, 7 | "warningOnClose": { "message": "Are you sure you want to do this? All of your changes will be lost.", "description": "The warning that is shown to the user if they close the editor with content in it." }, 8 | "buttonLabelClose": { "message": "Close Editor", "description": "The hover text for the close button" }, 9 | "buttonLabelBottom": { "message": "Toggle top / bottom position", "description": "The hover text for the top/bottom position button" }, 10 | "buttonLabelLeftRight": { "message": "Toggle left / right position", "description": "The hover text for the left/right position button" }, 11 | "buttonLabelReset": { "message": "Reset the box size", "description": "The hover text for the reset box size button" } 12 | } 13 | 14 | window.chrome = { 15 | i18n: { 16 | getMessage: function (key) { 17 | return translations[key] && translations[key].message; 18 | } 19 | } 20 | } 21 | 22 | function loadExistingStyles() { 23 | var d = document, 24 | head = d.getElementsByTagName('head')[0], 25 | obj = d.createElement('style'), 26 | url = d.location; 27 | 28 | obj.id = 'LiveCSSEditor-PageCSS'; 29 | obj.setAttribute("type", "text/css"); 30 | obj.innerHTML = window.localStorage.getItem('livecsseditor-cache-' + url); 31 | head.appendChild(obj); 32 | } 33 | 34 | function handleMessage(event){ 35 | 36 | var data = event.message; 37 | 38 | if (data.command === 'toggle') { 39 | LiveCSSEditor(data); 40 | } else if (data.command === 'loadExistingStyles') { 41 | loadExistingStyles(); 42 | } 43 | } 44 | 45 | // Ignore all commands if it's not the top document 46 | if (top.location == document.location) { 47 | safari.self.addEventListener("message", handleMessage, false); 48 | 49 | /* Set up the key commands based on the keycode setting. Not handling in 50 | Safari because of the way that settings are managed. 51 | safari.self.tab.dispatchMessage("settings", { settings : 'keycode' }); 52 | */ 53 | 54 | /* Check if the existing styles should be loaded */ 55 | safari.self.tab.dispatchMessage("modify", {}); 56 | } 57 | })(); -------------------------------------------------------------------------------- /chrome/source/options.js: -------------------------------------------------------------------------------- 1 | /*jslint browser: true, devel: true, plusplus: true, regexp: true, maxerr: 50, indent: 2 */ 2 | /*globals chrome */ 3 | 4 | (function () { 5 | "use strict"; 6 | 7 | var warn = true, save = true, modify = true, warnYes, warnNo, saveYes, saveNo, modifyYes, modifyNo, boxSize, boxSizeH, boxSizeW; 8 | 9 | function byId(id) { 10 | return document.getElementById(id); 11 | } 12 | 13 | // Saves options to localStorage. 14 | function save_options() { 15 | localStorage.warn = !!warnYes.checked; 16 | localStorage.save = !!saveYes.checked; 17 | localStorage.modify = !!modifyYes.checked; 18 | localStorage.boxsize = boxSizeW.value.replace(/[^\d]/g, '') + ',' + boxSizeH.value.replace(/[^\d]/g, ''); 19 | 20 | alert('Changes Saved'); 21 | window.close(); 22 | } 23 | 24 | // Restores select box state to saved value from localStorage. 25 | function restore_options() { 26 | if (boxSize !== undefined) { 27 | var boxSizes = boxSize.split(','); 28 | boxSizeW.value = boxSizes[0]; 29 | boxSizeH.value = boxSizes[1]; 30 | } 31 | 32 | if (warn) { 33 | warnYes.checked = true; 34 | } else { 35 | warnNo.checked = true; 36 | } 37 | 38 | if (save) { 39 | saveYes.checked = true; 40 | } else { 41 | saveNo.checked = true; 42 | } 43 | 44 | if (modify) { 45 | modifyYes.checked = true; 46 | } else { 47 | modifyNo.checked = true; 48 | } 49 | } 50 | 51 | function applyTranslations() { 52 | var objects = document.getElementsByTagName('*'), i; 53 | 54 | for (i = 0; i < objects.length; i++) { 55 | if (objects[i].dataset && objects[i].dataset.message) { 56 | objects[i].innerHTML = chrome.i18n.getMessage(objects[i].dataset.message); 57 | } 58 | } 59 | } 60 | 61 | function init() { 62 | var button = byId('save-button'); 63 | 64 | button.onclick = function () { save_options(); }; 65 | 66 | console.log('hello'); 67 | if (localStorage.hasOwnProperty('warn')) { 68 | console.log('hi'); 69 | warn = localStorage.warn === "true"; 70 | } 71 | 72 | if (localStorage.hasOwnProperty('save')) { 73 | save = localStorage.save === "true"; 74 | } 75 | 76 | if (localStorage.hasOwnProperty('modify')) { 77 | modify = localStorage.modify === "true"; 78 | } 79 | 80 | if (localStorage.hasOwnProperty('boxsize')) { 81 | boxSize = localStorage.boxsize; 82 | } 83 | 84 | warnYes = byId('warn-yes'); 85 | warnNo = byId('warn-no'); 86 | saveYes = byId('save-yes'); 87 | saveNo = byId('save-no'); 88 | modifyYes = byId('modify-yes'); 89 | modifyNo = byId('modify-no'); 90 | boxSizeH = byId('box-size-h'); 91 | boxSizeW = byId('box-size-w'); 92 | 93 | applyTranslations(); 94 | restore_options(); 95 | } 96 | 97 | window.onload = function () { 98 | init(); 99 | }; 100 | }()); 101 | -------------------------------------------------------------------------------- /chrome/source/_locales/en/messages.json: -------------------------------------------------------------------------------- 1 | { 2 | "extName": { "message": "Live CSS Editor", "description": "The name of this extension." }, 3 | "extDescription": { "message": "Live Write CSS onto any page", "description": "The description of this extension." }, 4 | "extBrowserActionName": { "message": "Enable the editor", "description": "The text shown to the user when they hover over the browser action button." }, 5 | "editorTitle": { "message": "Live CSS Editor", "description": "The text shown on the actual editor." }, 6 | "warningOnClose": { "message": "Are you sure you want to do this? All of your changes will be lost.", "description": "The warning that is shown to the user if they close the editor with content in it." }, 7 | "optionsHeader": { "message": "Live CSS Editor Options", "description": "The headline at the top of the options page" }, 8 | "optionsKeyCommandLabel": { "message": "What key command would you like to use to open the editor?", "description": "The label for the key command option" }, 9 | "optionsKeyCommandKeys": { "message": "Command + Shift + ", "description": "The other keys that need to be pressed to trigger the editor. Always the Command and Shift keys" }, 10 | "optionsBoxSizeLabel": { "message": "How big should the editor be when it first opens?", "description": "The label for the box size options" }, 11 | "optionsWarnLabel": { "message": "Should the editor warn you before closing?", "description": "The label for the warning option" }, 12 | "optionsSaveLabel": { "message": "Should the editor remember your CSS for a page even when you close it?", "description": "The label for the save option" }, 13 | "optionsModifyLabel": { "message": "Should the CSS you wrote for a page be remembered and loaded when you visit?", "description": "The label for the modify option" }, 14 | "optionsYes": { "message": "Yes", "description": "A confirmation word" }, 15 | "optionsNo": { "message": "No", "description": "A rejection word" }, 16 | "optionsSaveButton": { "message": "Save Changes", "description": "The text on top of the save button" }, 17 | "optionsAlertSaved": { "message": "Your changes have been saved", "description": "A notification that the changes have been saved" }, 18 | "buttonLabelClose": { "message": "Close Editor", "description": "The hover text for the close button" }, 19 | "buttonLabelBottom": { "message": "Toggle top / bottom position", "description": "The hover text for the top/bottom position button" }, 20 | "buttonLabelLeftRight": { "message": "Toggle left / right position", "description": "The hover text for the left/right position button" }, 21 | "buttonLabelReset": { "message": "Reset the box size", "description": "The hover text for the reset box size button" }, 22 | "errorChromeURL": { "message": "Live CSS Editor does not work on the Chrome Extensions page. You should try it on a regular website.", "description": "Error message shown to a user when trying to use the extension on a chrome:// URL." }, 23 | "errorFileURL": { "message": "Please allow access to file URLs in the extensions screen and then try again.", "description": "Error message shown to a user when trying to use the extension on a file:// URL without permissions." } 24 | } 25 | -------------------------------------------------------------------------------- /safari/source/css_editor.min.js: -------------------------------------------------------------------------------- 1 | /*jslint browser: true, maxerr: 50, indent: 2 */ 2 | 3 | var LiveCSSEditor = function (settings) { 4 | "use strict"; 5 | 6 | settings = settings || { warn: true, save: true, modify: true }; 7 | 8 | var cssCache = '', 9 | timer = null, 10 | tab = ' ', 11 | urlKey = document.location; 12 | 13 | function handleTabInTextarea(evt) { 14 | var t = evt.target, 15 | ss = t.selectionStart, 16 | se = t.selectionEnd, 17 | pre, 18 | sel, 19 | post; 20 | 21 | if (evt.ctrlKey || evt.metaKey) { 22 | return; 23 | } 24 | 25 | // Tab key - insert tab expansion 26 | if (evt.keyCode === 9) { 27 | evt.preventDefault(); 28 | 29 | // Special case of multi line selection 30 | if (ss !== se && t.value.slice(ss, se).indexOf("n") !== -1) { 31 | // In case selection was not of entire lines (e.g. selection begins in the middle of a line) 32 | // we ought to tab at the beginning as well as at the start of every following line. 33 | pre = t.value.slice(0, ss); 34 | sel = t.value.slice(ss, se).replace(/\n/g, "\n" + tab); 35 | post = t.value.slice(se, t.value.length); 36 | 37 | t.value = pre.concat(tab).concat(sel).concat(post); 38 | 39 | t.selectionStart = ss + tab.length; 40 | t.selectionEnd = se + tab.length; 41 | } else { 42 | // "Normal" case (no selection or selection on one line only) 43 | t.value = t.value.slice(0, ss).concat(tab).concat(t.value.slice(ss, t.value.length)); 44 | if (ss === se) { 45 | t.selectionStart = t.selectionEnd = ss + tab.length; 46 | } else { 47 | t.selectionStart = ss + tab.length; 48 | t.selectionEnd = se + tab.length; 49 | } 50 | } 51 | } else if (evt.keyCode === 8 && t.value.slice(ss - tab.length, ss) === tab) { 52 | // Backspace key - delete preceding tab expansion, if exists 53 | evt.preventDefault(); 54 | 55 | t.value = t.value.slice(0, ss - tab.length).concat(t.value.slice(ss, t.value.length)); 56 | t.selectionStart = t.selectionEnd = ss - tab.length; 57 | } else if (evt.keyCode === 46 && t.value.slice(se, se + tab.length) === tab) { 58 | // Delete key - delete following tab expansion, if exists 59 | evt.preventDefault(); 60 | 61 | t.value = t.value.slice(0, ss).concat(t.value.slice(ss + tab.length, t.value.length)); 62 | t.selectionStart = t.selectionEnd = ss; 63 | } else if (evt.keyCode === 37 && t.value.slice(ss - tab.length, ss) === tab) { 64 | // Left/right arrow keys - move across the tab in one go 65 | evt.preventDefault(); 66 | if (evt.shiftKey) { 67 | t.selectionStart = ss - tab.length; 68 | } else { 69 | t.selectionStart = t.selectionEnd = ss - tab.length; 70 | } 71 | } else if (evt.keyCode === 39 && t.value.slice(ss, ss + tab.length) === tab) { 72 | evt.preventDefault(); 73 | if (evt.shiftKey) { 74 | t.selectionEnd = se + tab.length; 75 | } else { 76 | t.selectionStart = t.selectionEnd = se + tab.length; 77 | } 78 | } 79 | } 80 | 81 | function get(id) { 82 | return document.getElementById('LiveCSSEditor-' + id); 83 | } 84 | 85 | function getStorage(key) { 86 | if (settings.save === true) { 87 | return window.localStorage.getItem('livecsseditor-' + key + '-' + urlKey); 88 | } else { 89 | return false; 90 | } 91 | } 92 | 93 | function setStorage(key, value) { 94 | if (settings.save === true) { 95 | window.localStorage.setItem('livecsseditor-' + key + '-' + urlKey, value); 96 | return true; 97 | } else { 98 | return false; 99 | } 100 | } 101 | 102 | function toggleBottom() { 103 | var panel = get('panel'), position; 104 | 105 | if (panel.className.indexOf('bottom') === -1) { 106 | panel.className += ' bottom'; 107 | position = 'bottom'; 108 | } else { 109 | panel.className = panel.className.replace(' bottom', ''); 110 | position = 'top'; 111 | } 112 | 113 | setStorage('position', position); 114 | } 115 | 116 | function toggleLeftRight() { 117 | var panel = get('panel'), position; 118 | 119 | if (panel.className.indexOf('right') === -1) { 120 | position = 'right'; 121 | panel.className = panel.className.replace('left', 'right'); 122 | } else { 123 | position = 'left'; 124 | panel.className = panel.className.replace('right', 'left'); 125 | } 126 | 127 | setStorage('positionLR', position); 128 | } 129 | 130 | function resetBoxSize() { 131 | var code = get('code'); 132 | 133 | code.style.width = ''; 134 | code.style.height = ''; 135 | setStorage('boxsize', null); 136 | 137 | return true; 138 | } 139 | 140 | function resetCSSTag() { 141 | var css = get('PageCSS'); 142 | 143 | if (!settings.modify) { 144 | css.parentElement.removeChild(css); 145 | } 146 | } 147 | 148 | function removeEditor() { 149 | var panel = get('panel'), code = get('code'); 150 | 151 | if (settings.save !== true && settings.warn === true && code.value !== '') { 152 | if (!confirm(chrome.i18n.getMessage("warningOnClose"))) { 153 | return; 154 | } 155 | } 156 | 157 | setStorage('boxsize', code.style.width + ',' + code.style.height); 158 | 159 | clearInterval(timer); 160 | resetCSSTag(); 161 | panel.parentElement.removeChild(panel); 162 | } 163 | 164 | function activateButtons() { 165 | var bottomButton = get('bot'), 166 | closeButton = get('close'), 167 | codeArea = get('code'), 168 | resetButton = get('reset'), 169 | leftRightButton = get('leftright'); 170 | 171 | bottomButton.onclick = toggleBottom; 172 | closeButton.onclick = removeEditor; 173 | codeArea.onkeydown = handleTabInTextarea; 174 | leftRightButton.onclick = toggleLeftRight; 175 | resetButton.onclick = resetBoxSize; 176 | } 177 | 178 | function addEditorPane() { 179 | var objPanel = document.createElement('div'), 180 | boxsize = getStorage('boxsize') && getStorage('boxsize').split(','), 181 | code; 182 | 183 | objPanel.setAttribute('id', 'LiveCSSEditor-panel'); 184 | objPanel.className = 'right'; 185 | objPanel.innerHTML = '
Close
Bottom
Left / Right
Reset
' + chrome.i18n.getMessage("editorTitle") + '
'; 186 | 187 | document.body.appendChild(objPanel); 188 | 189 | code = get('code'); 190 | 191 | if (getStorage('position') === 'bottom') { 192 | toggleBottom(); 193 | } 194 | 195 | if (getStorage('positionLR') === 'left') { 196 | toggleLeftRight(); 197 | } 198 | 199 | if (boxsize) { 200 | code.style.width = boxsize[0]; 201 | code.style.height = boxsize[1]; 202 | } 203 | 204 | activateButtons(); 205 | 206 | code.focus(); 207 | } 208 | 209 | function addStyleTag() { 210 | 211 | if (document.getElementById('LiveCSSEditor-PageCSS')) { 212 | return; 213 | } 214 | 215 | var head = document.getElementsByTagName('head')[0], obj = document.createElement('style'); 216 | 217 | obj.id = 'LiveCSSEditor-PageCSS'; 218 | obj.setAttribute("type", "text/css"); 219 | head.appendChild(obj); 220 | } 221 | 222 | function fillStyleTag(css) { 223 | var obj = get('PageCSS'); 224 | 225 | css = css || ''; 226 | 227 | obj.innerHTML = css; 228 | cssCache = css; 229 | 230 | setStorage('cache', css); 231 | } 232 | 233 | function autoUpdate() { 234 | var source = get('code'); 235 | /* Don't bother replacing the CSS if it hasn't changed */ 236 | if (source) { 237 | if (cssCache === source.value) { 238 | return false; 239 | } 240 | fillStyleTag(source.value); 241 | } else { 242 | clearInterval(timer); 243 | } 244 | } 245 | 246 | function startAutoUpdate() { 247 | timer = setInterval(autoUpdate, 1000); 248 | } 249 | 250 | function init() { 251 | var source, css; 252 | 253 | addStyleTag(); 254 | addEditorPane(); 255 | 256 | css = getStorage('cache'); 257 | if (css) { 258 | source = get('code'); 259 | source.value = css; 260 | } 261 | fillStyleTag(css); 262 | 263 | startAutoUpdate(); 264 | } 265 | 266 | if (!get('panel')) { 267 | init(); 268 | } else { 269 | removeEditor(); 270 | } 271 | }; -------------------------------------------------------------------------------- /chrome/source/css_editor.js: -------------------------------------------------------------------------------- 1 | /*jslint browser: true, maxerr: 50, indent: 2 */ 2 | 3 | var LiveCSSEditor = function (settings) { 4 | "use strict"; 5 | 6 | settings = settings || { warn: true, save: true, modify: true, boxsize: null }; 7 | 8 | var cssCache = '', 9 | keyupTimer = null, 10 | tab = ' ', 11 | urlKey = document.location, 12 | cssPrefix = 'LiveCSSEditor-'; 13 | 14 | // Utility Functions 15 | function hasClass(el, name) { 16 | name = cssPrefix + name; 17 | return new RegExp('(\\s|^)'+name+'(\\s|$)').test(el.className); 18 | } 19 | 20 | function addClass(el, name) { 21 | if (!hasClass(el, name)) { 22 | name = cssPrefix + name; 23 | el.className += (el.className ? ' ' : '') +name; 24 | } 25 | } 26 | 27 | function removeClass(el, name) { 28 | if (hasClass(el, name)) { 29 | name = cssPrefix + name; 30 | var newName = el.className; 31 | newName = newName.replace(new RegExp('(\\s|^)'+name+'(\\s|$)'),' '); 32 | newName = newName.replace(/^\s+|\s+$/g, ''); 33 | el.className = newName; 34 | } 35 | } 36 | 37 | function handleTabInTextarea(evt) { 38 | var t = evt.target, 39 | ss = t.selectionStart, 40 | se = t.selectionEnd, 41 | pre, 42 | sel, 43 | post; 44 | 45 | if (evt.ctrlKey || evt.metaKey) { 46 | return; 47 | } 48 | 49 | // Tab key - insert tab expansion 50 | if (evt.keyCode === 9) { 51 | evt.preventDefault(); 52 | 53 | // Special case of multi line selection 54 | if (ss !== se && t.value.slice(ss, se).indexOf("n") !== -1) { 55 | // In case selection was not of entire lines (e.g. selection begins in the middle of a line) 56 | // we ought to tab at the beginning as well as at the start of every following line. 57 | pre = t.value.slice(0, ss); 58 | sel = t.value.slice(ss, se).replace(/\n/g, "\n" + tab); 59 | post = t.value.slice(se, t.value.length); 60 | 61 | t.value = pre.concat(tab).concat(sel).concat(post); 62 | 63 | t.selectionStart = ss + tab.length; 64 | t.selectionEnd = se + tab.length; 65 | } else { 66 | // "Normal" case (no selection or selection on one line only) 67 | t.value = t.value.slice(0, ss).concat(tab).concat(t.value.slice(ss, t.value.length)); 68 | if (ss === se) { 69 | t.selectionStart = t.selectionEnd = ss + tab.length; 70 | } else { 71 | t.selectionStart = ss + tab.length; 72 | t.selectionEnd = se + tab.length; 73 | } 74 | } 75 | } else if (evt.keyCode === 8 && t.value.slice(ss - tab.length, ss) === tab) { 76 | // Backspace key - delete preceding tab expansion, if exists 77 | evt.preventDefault(); 78 | 79 | t.value = t.value.slice(0, ss - tab.length).concat(t.value.slice(ss, t.value.length)); 80 | t.selectionStart = t.selectionEnd = ss - tab.length; 81 | } else if (evt.keyCode === 46 && t.value.slice(se, se + tab.length) === tab) { 82 | // Delete key - delete following tab expansion, if exists 83 | evt.preventDefault(); 84 | 85 | t.value = t.value.slice(0, ss).concat(t.value.slice(ss + tab.length, t.value.length)); 86 | t.selectionStart = t.selectionEnd = ss; 87 | } else if (evt.keyCode === 37 && t.value.slice(ss - tab.length, ss) === tab) { 88 | // Left/right arrow keys - move across the tab in one go 89 | evt.preventDefault(); 90 | if (evt.shiftKey) { 91 | t.selectionStart = ss - tab.length; 92 | } else { 93 | t.selectionStart = t.selectionEnd = ss - tab.length; 94 | } 95 | } else if (evt.keyCode === 39 && t.value.slice(ss, ss + tab.length) === tab) { 96 | evt.preventDefault(); 97 | if (evt.shiftKey) { 98 | t.selectionEnd = se + tab.length; 99 | } else { 100 | t.selectionStart = t.selectionEnd = se + tab.length; 101 | } 102 | } 103 | } 104 | 105 | function getEl(id) { 106 | return document.getElementById(cssPrefix + id); 107 | } 108 | 109 | function getStorage(key) { 110 | if (settings.save === true) { 111 | return window.localStorage.getItem('livecsseditor-' + key + '-' + urlKey); 112 | } 113 | } 114 | 115 | function setStorage(key, value) { 116 | if (settings.save === true) { 117 | window.localStorage.setItem('livecsseditor-' + key + '-' + urlKey, value); 118 | return true; 119 | } 120 | } 121 | 122 | function unsetStorage(key) { 123 | window.localStorage.removeItem('livecsseditor-' + key + '-' + urlKey); 124 | return true; 125 | } 126 | 127 | function toggleBottom() { 128 | var panel = getEl('panel'), position; 129 | 130 | if (panel.className.indexOf('bottom') === -1) { 131 | position = 'bottom'; 132 | addClass(panel, 'bottom'); 133 | } else { 134 | position = 'top'; 135 | removeClass(panel, 'bottom'); 136 | } 137 | 138 | setStorage('position', position); 139 | } 140 | 141 | function toggleLeftRight() { 142 | var panel = getEl('panel'), position; 143 | 144 | if (hasClass(panel, 'right')) { 145 | position = 'left'; 146 | removeClass(panel, 'right'); 147 | addClass(panel, 'left'); 148 | } else { 149 | position = 'right'; 150 | removeClass(panel, 'left'); 151 | addClass(panel, 'right'); 152 | } 153 | 154 | setStorage('positionLR', position); 155 | } 156 | 157 | function getBoxSize() { 158 | var values = ['', '']; 159 | 160 | if (getStorage('boxsize') && getStorage('boxsize') !== ',') { 161 | values = getStorage('boxsize').replace(/px/g, '').split(','); 162 | } else if (settings.boxsize) { 163 | values = settings.boxsize.split(','); 164 | } 165 | 166 | return values; 167 | } 168 | 169 | function currentBoxSize() { 170 | var style = getEl('code').style, 171 | width = parseInt(style.width, 10) || '', 172 | height = parseInt(style.height, 10) || ''; 173 | 174 | return [width, height].join(','); 175 | } 176 | 177 | function setBoxSize(boxsize) { 178 | var code = getEl('code'); 179 | 180 | code.style.width = (boxsize[0] && boxsize[0] + 'px') || ''; 181 | code.style.height = (boxsize[1] && boxsize[1] + 'px') || ''; 182 | 183 | return true; 184 | } 185 | 186 | function resetBoxSize() { 187 | var boxsize, 188 | code = getEl('code'), 189 | defaultBoxSize = settings && settings.boxsize; 190 | 191 | // If the user hits resize when it's already at the default box size 192 | // remove the sizing entirely to allow them to resize with the handler 193 | if (!getStorage('boxsize') && currentBoxSize() === defaultBoxSize) { 194 | code.style.width = ''; 195 | code.style.height = ''; 196 | return true; 197 | } 198 | 199 | unsetStorage('boxsize'); 200 | 201 | boxsize = getBoxSize(); 202 | 203 | setBoxSize(boxsize); 204 | 205 | return true; 206 | } 207 | 208 | function saveBoxSize() { 209 | var boxSize = currentBoxSize(); 210 | 211 | if (boxSize === ',') { 212 | unsetStorage('boxsize'); 213 | } else { 214 | setStorage('boxsize', currentBoxSize()); 215 | } 216 | 217 | return true; 218 | } 219 | 220 | function resetCSSTag() { 221 | var css = getEl('PageCSS'); 222 | 223 | if (!settings.modify) { 224 | css.parentElement.removeChild(css); 225 | } 226 | } 227 | 228 | function removeEditor() { 229 | var panel = getEl('panel'), code = getEl('code'); 230 | 231 | if (settings.save !== true && settings.warn === true && code.value !== '') { 232 | if (!confirm(chrome.i18n.getMessage("warningOnClose"))) { 233 | return; 234 | } 235 | } 236 | 237 | saveBoxSize(); 238 | 239 | resetCSSTag(); 240 | panel.parentElement.removeChild(panel); 241 | } 242 | 243 | function activateButtons() { 244 | var bottomButton = getEl('bot'), 245 | closeButton = getEl('close'), 246 | codeArea = getEl('code'), 247 | resetButton = getEl('reset'), 248 | leftRightButton = getEl('leftright'); 249 | 250 | bottomButton.onclick = toggleBottom; 251 | closeButton.onclick = removeEditor; 252 | codeArea.onkeydown = handleTabInTextarea; 253 | codeArea.onkeyup = function () { 254 | keyupTimer && clearTimeout(keyupTimer); 255 | keyupTimer = setTimeout(updateCSSTag, 100); 256 | }; 257 | leftRightButton.onclick = toggleLeftRight; 258 | resetButton.onclick = resetBoxSize; 259 | } 260 | 261 | function editorHtmlContent() { 262 | return '\ 263 |
\ 264 |
Close
\ 265 |
Bottom
\ 266 |
Left / Right
\ 267 |
Reset
\ 268 |
\ 269 |
\ 270 |
' + chrome.i18n.getMessage("editorTitle") + '
\ 271 | \ 272 |
\ 273 | '; 274 | } 275 | 276 | function addEditorPane() { 277 | var objPanel = document.createElement('div'), 278 | code; 279 | 280 | objPanel.setAttribute('id', 'LiveCSSEditor-panel'); 281 | objPanel.innerHTML = editorHtmlContent(); 282 | 283 | document.body.appendChild(objPanel); 284 | 285 | code = getEl('code'); 286 | 287 | setBoxSize(getBoxSize()); 288 | 289 | if (getStorage('position') === 'bottom') { 290 | toggleBottom(); 291 | } 292 | 293 | // Default to right side 294 | addClass(objPanel, 'right'); 295 | if (getStorage('positionLR') === 'left') { 296 | toggleLeftRight(); 297 | } 298 | 299 | activateButtons(); 300 | 301 | code.focus(); 302 | } 303 | 304 | function addStyleTag() { 305 | 306 | if (document.getElementById('LiveCSSEditor-PageCSS')) { 307 | return; 308 | } 309 | 310 | var head = document.getElementsByTagName('head')[0], obj = document.createElement('style'); 311 | 312 | obj.id = 'LiveCSSEditor-PageCSS'; 313 | obj.setAttribute("type", "text/css"); 314 | head.appendChild(obj); 315 | } 316 | 317 | function fillStyleTag(css) { 318 | var obj = getEl('PageCSS'); 319 | 320 | css = css || ''; 321 | 322 | obj.innerHTML = css; 323 | cssCache = css; 324 | 325 | setStorage('cache', css); 326 | } 327 | 328 | function updateCSSTag() { 329 | var source = getEl('code'); 330 | /* Don't bother replacing the CSS if it hasn't changed */ 331 | if (source) { 332 | if (cssCache === source.value) { 333 | return false; 334 | } 335 | fillStyleTag(source.value); 336 | } 337 | } 338 | 339 | function init() { 340 | var source, css; 341 | 342 | addStyleTag(); 343 | addEditorPane(); 344 | 345 | css = getStorage('cache'); 346 | source = getEl('code'); 347 | if (css && source) { 348 | source.value = css; 349 | } 350 | fillStyleTag(css); 351 | 352 | updateCSSTag(); 353 | } 354 | 355 | if (!getEl('panel')) { 356 | init(); 357 | } else { 358 | removeEditor(); 359 | } 360 | }; 361 | -------------------------------------------------------------------------------- /safari/source/css_editor.css: -------------------------------------------------------------------------------- 1 | #LiveCSSEditor-panel { direction: ltr !important; display: block !important; position: fixed !important; top: 0px !important; bottom: auto !important; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, rgb(144,144,144)),color-stop(1, rgb(205,205,205))) !important; background-color: #b0b0b0 !important; -webkit-border-bottom-right-radius: 5px !important; -webkit-border-bottom-left-radius: 5px !important; border-top: 1px solid #dedede !important; z-index: 9999999 !important; } 2 | #LiveCSSEditor-panel.bottom { top: auto !important; bottom: 0px !important; -webkit-border-bottom-right-radius: 0px !important; -webkit-border-bottom-left-radius: 0px !important; -webkit-border-top-right-radius: 5px !important; -webkit-border-top-left-radius: 5px !important; background-image: none !important; } 3 | #LiveCSSEditor-panel.left { left: 20px !important; } 4 | #LiveCSSEditor-panel.right { right: 20px !important; } 5 | #LiveCSSEditor-label { height: 12px !important; width: 79px !important; margin: 5px 0 !important; padding: 0 !important; color: #000 !important; font: normal 16px arial, verdana, sans-serif !important; text-align: left !important; background-repeat: no-repeat; text-indent: -99999px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAAAMCAYAAAAj+OBEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACJNJREFUeNqcVwlMldkVfguVfV9k31FxpKIDGhcioMSMBMQFrYkaI84gZmBA07oQohWtkzqOmZGqpVqVZkZMHDWiIDUIGkBkG2UTZX8g24PHvvl40O/TS2oI6Wj/5OSdu5177lm+c550cnJS5unp6T44OGjS3NxcIpFINJL/frLZs2e7dHR0NICfkMzwSaVSycd8uEe6du1ay9raWh+O3d3dizMzM5U4P0kdFi5c6AEd3GQymaqmpqYI8xpxTsvZ2TlILpdLp85gWs45X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XA6kycCyO2E+PBL6AspCB1Vnh5eSVj/BXuKORdPIvGunPRokWvkGV0fOD02sC0fYtoyQKgDiHVBlGiBxjOCM/X9EpSUtLf/fz8Xghrt+7evfvBvHnzhpFad0WvNuTq6vqkurp6BJXYAxgkgfGVWH8oMK0UzpEjxRrQHpjDy++iBlX5O/aVeOyd7OxsJdoBFDOb8c2bNxNzKhnR0ONr3L9MVN4MtDMKsWZ8+fLlVBQR7YGBgU6mEtK5FxWwDc7ogA5j0MUZvesIKqoSfSNbrHpW6oSEhJ9gcKVoeeoBBecRabbAxXyMG9Cm/BOpan/v3j1LGC4bkc7KX0h9kHEPIKdkCr/5/4R/V9xATgKXNMJQbQILjEXjTMWZ5s6iSW0Vc9xrKM7bsbcTiinEHq6zQXUQTbiOuIPy34D0WViEDLXAmuZ3afFeprW4t180wq1CJy8hVy32soWpFzrbiXMTAhLeivNjAkvfCv34985dzLULYgqzM6BdRsV9LSLDHcT7eFb1HwEGAD5iGRkuNxVBAAAAAElFTkSuQmCC) !important; } 6 | #LiveCSSEditor-pad { padding: 5px 10px 5px !important; } 7 | #LiveCSSEditor-code { padding: 5px !important; width: 250px; outline:none !important; font: normal 12px "Courier new", monospaced !important; resize: both !important; } 8 | #LiveCSSEditor-actions { position: absolute; right: 10px; top: 5px; } 9 | #LiveCSSEditor-actions div { float: right !important; margin-left: 5px !important; border-width: 0 !important; width: 12px; height: 12px; text-indent: -99999px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAkCAYAAACTz/ouAAAXWGlDQ1BJQ0MgUHJvZmlsZQAAeAHVWXk8Vd3X3+fO93JN1zzP8yxcZJ4zz0PENc/jJURlSIUGQkQpZAwNQlJCqJQMhUJpEKJSSOb3qOd5fr/383vf/95/3v35nH2+d+211973rHXWXmsdADgWKBERIQgGAELDqFG2xnr8zi6u/NjXAA94AR1QASoU7+gIXWtrc/A/NwiAnyMA7gEYltmV9T+z/a9URh/faG8AIGuYw8sn2jsUxo0AIPS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C1dXJZffrjisDL20/Xn5Krj6tNfer+a10TWste21gPWBzaUNwo3tja9Nju2+LYOb01ua2znbS/u7Nsp39V/tJ8SfEbADaLVg4PJNzs7S6IAYHMA2Mre2dko3dnZKoOTDfgbyIOQP98rdpkxcM29uHwX9einHd29/3v7L0dbh5ootbVmAAACD0lEQVRIx+2WyYoCQQyG6/l8F/UiHhRRQUEFd3HB5eJyUvAkvoDPleEPpEmn2u4uBobBmUMgJF8qVWX1bxwRuWazScVikUqlEpXL5ZghhhwYsKE8w/V6nYbDIc1mM5rP57RYLNjgI4YcGLChvKtWqxxcrVYRtN1u2aQYOTBgNb/f7z0eMc27RqPBSSTECoUCm46BARvKu3a7TbvdLrMADFjLC2trhOcGh8MhswEYaSA8mNfrFfHia97ZAtvAFmgeC1peYrEGsku9G70ryUsDfbJ3JxbetVqtWNAeWefAWj6tAVhusNlsvCZ2cTDSIIR3eOej0Yjf7nK5pPV6zS8ABh8x5MbjcfRBhfD86SPY6/Wo3+/TYDCIGWLIgRGpCOHd39aiPHykRQg8Hg+6XC58jzD4iCFntch+L9Y8LcKx8Aqezycdj0c2+IghZ7VIFgKjTeKeFuFXr9VqNJ1OIxg+YshZqZDF9QemY54W4cOAj/u73+9s8BFDLqkBFtW7hi+NPC2aTCZ0Op0Ygg+Dfz6f2bdapMVQX4/OxbQIi9xuN34JlUqFDf71eo0aaC2yu7an8bQIi3U6He6Ku4fB73a7nLNalPWKvq1F9vVY+9eiX6hFSX+DIXORrU+di5IK0+aipNrEuejdm06bi7L4n2lgpwOxrLlIM9pS5yJ9t3nmIj0u5p6L9AiYdy6y9Z8zF30Bk3zc4vsHiJIAAAAASUVORK5CYII=) !important; cursor: pointer; } 10 | #LiveCSSEditor-panel #LiveCSSEditor-close { background-position: 0px -12px !important; } 11 | #LiveCSSEditor-panel #LiveCSSEditor-bot { background-position: 0px 0px !important; } 12 | #LiveCSSEditor-panel.bottom #LiveCSSEditor-bot { background-position: -12px 0px !important; } 13 | #LiveCSSEditor-panel #LiveCSSEditor-leftright { background-position: -12px -24px !important; } 14 | #LiveCSSEditor-panel.left #LiveCSSEditor-leftright { background-position: 0px -24px !important; } 15 | #LiveCSSEditor-panel #LiveCSSEditor-reset { background-position: -12px -12px !important; } -------------------------------------------------------------------------------- /chrome/source/css_editor.css: -------------------------------------------------------------------------------- 1 | html,body { display: block !important; } /* hack to prevent the panel from disappearing in case of "* { display: none; }" */ 2 | #LiveCSSEditor-panel { direction: ltr !important; display: block !important; position: fixed !important; top: 0px !important; bottom: auto !important; background-image: -webkit-gradient(linear,left bottom,left top,color-stop(0, rgb(144,144,144)),color-stop(1, rgb(205,205,205))) !important; background-color: #b0b0b0 !important; -webkit-border-bottom-right-radius: 5px !important; -webkit-border-bottom-left-radius: 5px !important; border-top: 1px solid #dedede !important; z-index: 9999999 !important; } 3 | #LiveCSSEditor-panel.LiveCSSEditor-bottom { top: auto !important; bottom: 0px !important; -webkit-border-bottom-right-radius: 0px !important; -webkit-border-bottom-left-radius: 0px !important; -webkit-border-top-right-radius: 5px !important; -webkit-border-top-left-radius: 5px !important; background-image: none !important; } 4 | #LiveCSSEditor-panel.LiveCSSEditor-left { left: 20px !important; } 5 | #LiveCSSEditor-panel.LiveCSSEditor-right { right: 20px !important; } 6 | #LiveCSSEditor-label { display: block !important; height: 12px !important; width: 79px !important; margin: 5px 0 !important; padding: 0 !important; color: #000 !important; font: normal 16px arial, verdana, sans-serif !important; text-align: left !important; background-repeat: no-repeat; text-indent: -99999px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE8AAAAMCAYAAAAj+OBEAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAACJNJREFUeNqcVwlMldkVfguVfV9k31FxpKIDGhcioMSMBMQFrYkaI84gZmBA07oQohWtkzqOmZGqpVqVZkZMHDWiIDUIGkBkG2UTZX8g24PHvvl40O/TS2oI6Wj/5OSdu5177lm+c550cnJS5unp6T44OGjS3NxcIpFINJL/frL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R49VTBJ9nh3S4Ef2b5zDnlr8qpD2SYCFUO4BrpZwDc3AEDDnGc6EgzZSB+jbxruoM+5+duTIke319fUJcHA70r+DZ6GPYtOmTRXA6kycCyO2E+PBL6AspCB1Vnh5eSVj/BXuKORdPIvGunPRokWvkGV0fOD02sC0fYtoyQKgDiHVBlGiBxjOCM/X9EpSUtLf/fz8Xghrt+7evfvBvHnzhpFad0WvNuTq6vqkurp6BJXYAxgkgfGVWH8oMK0UzpEjxRrQHpjDy++iBlX5O/aVeOyd7OxsJdoBFDOb8c2bNxNzKhnR0ONr3L9MVN4MtDMKsWZ8+fLlVBQR7YGBgU6mEtK5FxWwDc7ogA5j0MUZvesIKqoSfSNbrHpW6oSEhJ9gcKVoeeoBBecRabbAxXyMG9Cm/BOpan/v3j1LGC4bkc7KX0h9kHEPIKdkCr/5/4R/V9xATgKXNMJQbQILjEXjTMWZ5s6iSW0Vc9xrKM7bsbcTiinEHq6zQXUQTbiOuIPy34D0WViEDLXAmuZ3afFeprW4t180wq1CJy8hVy32soWpFzrbiXMTAhLeivNjAkvfCv34985dzLULYgqzM6BdRsV9LSLDHcT7eFb1HwEGAD5iGRkuNxVBAAAAAElFTkSuQmCC) !important; } 7 | #LiveCSSEditor-pad { display: block !important; padding: 5px 10px 5px !important; } 8 | #LiveCSSEditor-code { display: block !important; padding: 5px !important; width: 250px; outline:none !important; font: normal 12px "Courier new", monospaced !important; resize: both !important; background-color: #fff !important; color: #000 !important; border-radius: none !important; } 9 | #LiveCSSEditor-actions { display: block !important; position: absolute; right: 10px; top: 5px; } 10 | #LiveCSSEditor-actions div { display: block !important; float: right !important; margin-left: 5px !important; border-width: 0 !important; width: 12px; height: 12px; text-indent: -99999px; background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAkCAYAAACTz/ouAAAXWGlDQ1BJQ0MgUHJvZmlsZQAAeAHVWXk8Vd3X3+fO93JN1zzP8yxcZJ4zz0PENc/jJURlSIUGQkQpZAwNQlJCqJ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CSSEditor-panel #LiveCSSEditor-close { display: inline-block !important; background-position: 0px -12px !important; } 12 | #LiveCSSEditor-panel #LiveCSSEditor-bot { display: inline-block !important; background-position: 0px 0px !important; } 13 | #LiveCSSEditor-panel.LiveCSSEditor-bottom #LiveCSSEditor-bot { display: inline-block !important; background-position: -12px 0px !important; } 14 | #LiveCSSEditor-panel #LiveCSSEditor-leftright { display: inline-block !important; background-position: -12px -24px !important; } 15 | #LiveCSSEditor-panel.LiveCSSEditor-left #LiveCSSEditor-leftright { display: inline-block !important; background-position: 0px -24px !important; } 16 | #LiveCSSEditor-panel #LiveCSSEditor-reset { display: inline-block !important; background-position: -12px -12px !important; } 17 | -------------------------------------------------------------------------------- /LICENSE.txt: -------------------------------------------------------------------------------- 1 | GNU GENERAL PUBLIC LICENSE 2 | Version 2, June 1991 3 | 4 | Copyright (C) 1989, 1991 Free Software Foundation, Inc., 5 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 6 | Everyone is permitted to copy and distribute verbatim copies 7 | of this license document, but changing it is not allowed. 8 | 9 | Preamble 10 | 11 | The licenses for most software are designed to take away your 12 | freedom to share and change it. By contrast, the GNU General Public 13 | License is intended to guarantee your freedom to share and change free 14 | software--to make sure the software is free for all its users. This 15 | General Public License applies to most of the Free Software 16 | Foundation's software and to any other program whose authors commit to 17 | using it. (Some other Free Software Foundation software is covered by 18 | the GNU Lesser General Public License instead.) You can apply it to 19 | your programs, too. 20 | 21 | When we speak of free software, we are referring to freedom, not 22 | price. Our General Public Licenses are designed to make sure that you 23 | have the freedom to distribute copies of free software (and charge for 24 | this service if you wish), that you receive source code or can get it 25 | if you want it, that you can change the software or use pieces of it 26 | in new free programs; and that you know you can do these things. 27 | 28 | To protect your rights, we need to make restrictions that forbid 29 | anyone to deny you these rights or to ask you to surrender the rights. 30 | These restrictions translate to certain responsibilities for you if you 31 | distribute copies of the software, or if you modify it. 32 | 33 | For example, if you distribute copies of such a program, whether 34 | gratis or for a fee, you must give the recipients all the rights that 35 | you have. You must make sure that they, too, receive or can get the 36 | source code. And you must show them these terms so they know their 37 | rights. 38 | 39 | We protect your rights with two steps: (1) copyright the software, and 40 | (2) offer you this license which gives you legal permission to copy, 41 | distribute and/or modify the software. 42 | 43 | Also, for each author's protection and ours, we want to make certain 44 | that everyone understands that there is no warranty for this free 45 | software. If the software is modified by someone else and passed on, we 46 | want its recipients to know that what they have is not the original, so 47 | that any problems introduced by others will not reflect on the original 48 | authors' reputations. 49 | 50 | Finally, any free program is threatened constantly by software 51 | patents. We wish to avoid the danger that redistributors of a free 52 | program will individually obtain patent licenses, in effect making the 53 | program proprietary. To prevent this, we have made it clear that any 54 | patent must be licensed for everyone's free use or not licensed at all. 55 | 56 | The precise terms and conditions for copying, distribution and 57 | modification follow. 58 | 59 | GNU GENERAL PUBLIC LICENSE 60 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 61 | 62 | 0. This License applies to any program or other work which contains 63 | a notice placed by the copyright holder saying it may be distributed 64 | under the terms of this General Public License. The "Program", below, 65 | refers to any such program or work, and a "work based on the Program" 66 | means either the Program or any derivative work under copyright law: 67 | that is to say, a work containing the Program or a portion of it, 68 | either verbatim or with modifications and/or translated into another 69 | language. (Hereinafter, translation is included without limitation in 70 | the term "modification".) Each licensee is addressed as "you". 71 | 72 | Activities other than copying, distribution and modification are not 73 | covered by this License; they are outside its scope. The act of 74 | running the Program is not restricted, and the output from the Program 75 | is covered only if its contents constitute a work based on the 76 | Program (independent of having been made by running the Program). 77 | Whether that is true depends on what the Program does. 78 | 79 | 1. You may copy and distribute verbatim copies of the Program's 80 | source code as you receive it, in any medium, provided that you 81 | conspicuously and appropriately publish on each copy an appropriate 82 | copyright notice and disclaimer of warranty; keep intact all the 83 | notices that refer to this License and to the absence of any warranty; 84 | and give any other recipients of the Program a copy of this License 85 | along with the Program. 86 | 87 | You may charge a fee for the physical act of transferring a copy, and 88 | you may at your option offer warranty protection in exchange for a fee. 89 | 90 | 2. You may modify your copy or copies of the Program or any portion 91 | of it, thus forming a work based on the Program, and copy and 92 | distribute such modifications or work under the terms of Section 1 93 | above, provided that you also meet all of these conditions: 94 | 95 | a) You must cause the modified files to carry prominent notices 96 | stating that you changed the files and the date of any change. 97 | 98 | b) You must cause any work that you distribute or publish, that in 99 | whole or in part contains or is derived from the Program or any 100 | part thereof, to be licensed as a whole at no charge to all third 101 | parties under the terms of this License. 102 | 103 | c) If the modified program normally reads commands interactively 104 | when run, you must cause it, when started running for such 105 | interactive use in the most ordinary way, to print or display an 106 | announcement including an appropriate copyright notice and a 107 | notice that there is no warranty (or else, saying that you provide 108 | a warranty) and that users may redistribute the program under 109 | these conditions, and telling the user how to view a copy of this 110 | License. (Exception: if the Program itself is interactive but 111 | does not normally print such an announcement, your work based on 112 | the Program is not required to print an announcement.) 113 | 114 | These requirements apply to the modified work as a whole. If 115 | identifiable sections of that work are not derived from the Program, 116 | and can be reasonably considered independent and separate works in 117 | themselves, then this License, and its terms, do not apply to those 118 | sections when you distribute them as separate works. But when you 119 | distribute the same sections as part of a whole which is a work based 120 | on the Program, the distribution of the whole must be on the terms of 121 | this License, whose permissions for other licensees extend to the 122 | entire whole, and thus to each and every part regardless of who wrote it. 123 | 124 | Thus, it is not the intent of this section to claim rights or contest 125 | your rights to work written entirely by you; rather, the intent is to 126 | exercise the right to control the distribution of derivative or 127 | collective works based on the Program. 128 | 129 | In addition, mere aggregation of another work not based on the Program 130 | with the Program (or with a work based on the Program) on a volume of 131 | a storage or distribution medium does not bring the other work under 132 | the scope of this License. 133 | 134 | 3. You may copy and distribute the Program (or a work based on it, 135 | under Section 2) in object code or executable form under the terms of 136 | Sections 1 and 2 above provided that you also do one of the following: 137 | 138 | a) Accompany it with the complete corresponding machine-readable 139 | source code, which must be distributed under the terms of Sections 140 | 1 and 2 above on a medium customarily used for software interchange; or, 141 | 142 | b) Accompany it with a written offer, valid for at least three 143 | years, to give any third party, for a charge no more than your 144 | cost of physically performing source distribution, a complete 145 | machine-readable copy of the corresponding source code, to be 146 | distributed under the terms of Sections 1 and 2 above on a medium 147 | customarily used for software interchange; or, 148 | 149 | c) Accompany it with the information you received as to the offer 150 | to distribute corresponding source code. (This alternative is 151 | allowed only for noncommercial distribution and only if you 152 | received the program in object code or executable form with such 153 | an offer, in accord with Subsection b above.) 154 | 155 | The source code for a work means the preferred form of the work for 156 | making modifications to it. For an executable work, complete source 157 | code means all the source code for all modules it contains, plus any 158 | associated interface definition files, plus the scripts used to 159 | control compilation and installation of the executable. However, as a 160 | special exception, the source code distributed need not include 161 | anything that is normally distributed (in either source or binary 162 | form) with the major components (compiler, kernel, and so on) of the 163 | operating system on which the executable runs, unless that component 164 | itself accompanies the executable. 165 | 166 | If distribution of executable or object code is made by offering 167 | access to copy from a designated place, then offering equivalent 168 | access to copy the source code from the same place counts as 169 | distribution of the source code, even though third parties are not 170 | compelled to copy the source along with the object code. 171 | 172 | 4. You may not copy, modify, sublicense, or distribute the Program 173 | except as expressly provided under this License. Any attempt 174 | otherwise to copy, modify, sublicense or distribute the Program is 175 | void, and will automatically terminate your rights under this License. 176 | However, parties who have received copies, or rights, from you under 177 | this License will not have their licenses terminated so long as such 178 | parties remain in full compliance. 179 | 180 | 5. You are not required to accept this License, since you have not 181 | signed it. However, nothing else grants you permission to modify or 182 | distribute the Program or its derivative works. These actions are 183 | prohibited by law if you do not accept this License. Therefore, by 184 | modifying or distributing the Program (or any work based on the 185 | Program), you indicate your acceptance of this License to do so, and 186 | all its terms and conditions for copying, distributing or modifying 187 | the Program or works based on it. 188 | 189 | 6. Each time you redistribute the Program (or any work based on the 190 | Program), the recipient automatically receives a license from the 191 | original licensor to copy, distribute or modify the Program subject to 192 | these terms and conditions. You may not impose any further 193 | restrictions on the recipients' exercise of the rights granted herein. 194 | You are not responsible for enforcing compliance by third parties to 195 | this License. 196 | 197 | 7. If, as a consequence of a court judgment or allegation of patent 198 | infringement or for any other reason (not limited to patent issues), 199 | conditions are imposed on you (whether by court order, agreement or 200 | otherwise) that contradict the conditions of this License, they do not 201 | excuse you from the conditions of this License. If you cannot 202 | distribute so as to satisfy simultaneously your obligations under this 203 | License and any other pertinent obligations, then as a consequence you 204 | may not distribute the Program at all. For example, if a patent 205 | license would not permit royalty-free redistribution of the Program by 206 | all those who receive copies directly or indirectly through you, then 207 | the only way you could satisfy both it and this License would be to 208 | refrain entirely from distribution of the Program. 209 | 210 | If any portion of this section is held invalid or unenforceable under 211 | any particular circumstance, the balance of the section is intended to 212 | apply and the section as a whole is intended to apply in other 213 | circumstances. 214 | 215 | It is not the purpose of this section to induce you to infringe any 216 | patents or other property right claims or to contest validity of any 217 | such claims; this section has the sole purpose of protecting the 218 | integrity of the free software distribution system, which is 219 | implemented by public license practices. Many people have made 220 | generous contributions to the wide range of software distributed 221 | through that system in reliance on consistent application of that 222 | system; it is up to the author/donor to decide if he or she is willing 223 | to distribute software through any other system and a licensee cannot 224 | impose that choice. 225 | 226 | This section is intended to make thoroughly clear what is believed to 227 | be a consequence of the rest of this License. 228 | 229 | 8. If the distribution and/or use of the Program is restricted in 230 | certain countries either by patents or by copyrighted interfaces, the 231 | original copyright holder who places the Program under this License 232 | may add an explicit geographical distribution limitation excluding 233 | those countries, so that distribution is permitted only in or among 234 | countries not thus excluded. In such case, this License incorporates 235 | the limitation as if written in the body of this License. 236 | 237 | 9. The Free Software Foundation may publish revised and/or new versions 238 | of the General Public License from time to time. Such new versions will 239 | be similar in spirit to the present version, but may differ in detail to 240 | address new problems or concerns. 241 | 242 | Each version is given a distinguishing version number. If the Program 243 | specifies a version number of this License which applies to it and "any 244 | later version", you have the option of following the terms and conditions 245 | either of that version or of any later version published by the Free 246 | Software Foundation. If the Program does not specify a version number of 247 | this License, you may choose any version ever published by the Free Software 248 | Foundation. 249 | 250 | 10. If you wish to incorporate parts of the Program into other free 251 | programs whose distribution conditions are different, write to the author 252 | to ask for permission. For software which is copyrighted by the Free 253 | Software Foundation, write to the Free Software Foundation; we sometimes 254 | make exceptions for this. Our decision will be guided by the two goals 255 | of preserving the free status of all derivatives of our free software and 256 | of promoting the sharing and reuse of software generally. 257 | 258 | NO WARRANTY 259 | 260 | 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 261 | FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN 262 | OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES 263 | PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED 264 | OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 265 | MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS 266 | TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE 267 | PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, 268 | REPAIR OR CORRECTION. 269 | 270 | 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING 271 | WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR 272 | REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, 273 | INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING 274 | OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED 275 | TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY 276 | YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER 277 | PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE 278 | POSSIBILITY OF SUCH DAMAGES. 279 | 280 | END OF TERMS AND CONDITIONS 281 | 282 | How to Apply These Terms to Your New Programs 283 | 284 | If you develop a new program, and you want it to be of the greatest 285 | possible use to the public, the best way to achieve this is to make it 286 | free software which everyone can redistribute and change under these terms. 287 | 288 | To do so, attach the following notices to the program. It is safest 289 | to attach them to the start of each source file to most effectively 290 | convey the exclusion of warranty; and each file should have at least 291 | the "copyright" line and a pointer to where the full notice is found. 292 | 293 | {description} 294 | Copyright (C) {year} {fullname} 295 | 296 | This program is free software; you can redistribute it and/or modify 297 | it under the terms of the GNU General Public License as published by 298 | the Free Software Foundation; either version 2 of the License, or 299 | (at your option) any later version. 300 | 301 | This program is distributed in the hope that it will be useful, 302 | but WITHOUT ANY WARRANTY; without even the implied warranty of 303 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 304 | GNU General Public License for more details. 305 | 306 | You should have received a copy of the GNU General Public License along 307 | with this program; if not, write to the Free Software Foundation, Inc., 308 | 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. 309 | 310 | Also add information on how to contact you by electronic and paper mail. 311 | 312 | If the program is interactive, make it output a short notice like this 313 | when it starts in an interactive mode: 314 | 315 | Gnomovision version 69, Copyright (C) year name of author 316 | Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. 317 | This is free software, and you are welcome to redistribute it 318 | under certain conditions; type `show c' for details. 319 | 320 | The hypothetical commands `show w' and `show c' should show the appropriate 321 | parts of the General Public License. Of course, the commands you use may 322 | be called something other than `show w' and `show c'; they could even be 323 | mouse-clicks or menu items--whatever suits your program. 324 | 325 | You should also get your employer (if you work as a programmer) or your 326 | school, if any, to sign a "copyright disclaimer" for the program, if 327 | necessary. Here is a sample; alter the names: 328 | 329 | Yoyodyne, Inc., hereby disclaims all copyright interest in the program 330 | `Gnomovision' (which makes passes at compilers) written by James Hacker. 331 | 332 | {signature of Ty Coon}, 1 April 1989 333 | Ty Coon, President of Vice 334 | 335 | This General Public License does not permit incorporating your program into 336 | proprietary programs. If your program is a subroutine library, you may 337 | consider it more useful to permit linking proprietary applications with the 338 | library. If this is what you want to do, use the GNU Lesser General 339 | Public License instead of this License. 340 | --------------------------------------------------------------------------------