Commit Graph

156 Commits

Author SHA1 Message Date
tophf
989df35b05 live preview in editor
* refreshAllTabs was extracted
* ...and fixed to use each frame's url when getting the styles
2018-01-12 00:54:36 +03:00
tophf
68777f6163 bump version 2018-01-08 11:31:57 +03:00
tophf
b659dde35d bump version 2018-01-07 17:30:55 +03:00
tophf
807ea6aa70 extract colorconverter.js 2018-01-07 11:52:43 +03:00
tophf
1fe290fb8c bump version 2018-01-06 10:43:12 +03:00
tophf
bd1e6175af bump version 2018-01-04 18:24:47 +03:00
tophf
71c3e0c7a8 extract and improve dummy chrome.storage in FF
* chrome.storage.onChanged supported in own pages
* values are stored in the background page
* chrome.storage in own pages accesses that background storage
2018-01-04 17:04:23 +03:00
tophf
2374c88e1b extract styleSectionsEqual 2018-01-04 16:43:54 +03:00
tophf
eb3c770612 bump version 2018-01-03 18:45:21 +03:00
tophf
eb65ce1a88 bump version 2018-01-03 10:47:06 +03:00
tophf
3418ac9cb9 FF: support private/container tabs 2018-01-03 10:43:56 +03:00
tophf
319b2c2411 bump version 2017-12-30 04:34:55 +03:00
tophf
d9f8d1361f bump version 2017-12-26 14:42:58 +03:00
tophf
fd4300f841 add a wiki link, shorten the USO link, use https everywhere 2017-12-13 07:15:40 +03:00
tophf
c23e192b7a bump version 2017-12-11 23:58:01 +03:00
tophf
6fb9d2d157 switch to a much faster LZStringUnsafe
https://github.com/pieroxy/lz-string/pull/98
2017-12-10 11:30:57 +03:00
tophf
fa6365d297 bump version 2017-12-09 21:37:58 +03:00
tophf
e45748d515 bump version 2017-12-09 20:48:13 +03:00
tophf
a1f2d2a719 bump version to 1.1.7.6 2017-12-08 20:26:37 +03:00
tophf
0413736a29 remove the now redundant "chrome_style" from the options page 2017-12-08 06:20:30 +03:00
tophf
c723ec58ce bump version to 1.1.7.2 2017-12-03 20:36:20 +03:00
tophf
0f3ddb9c03 bump version to 1.1.7.1 2017-12-03 17:14:13 +03:00
tophf
c1d15cfeb4 bump version to 1.1.7 2017-12-03 08:27:41 +03:00
tophf
47c6e7a52e bump version to 1.1.6.3 2017-11-25 20:24:50 +03:00
tophf
978e5ca9f0 sendMessage()
Promise mode [default]:
  - rejects on receiving {__ERROR__: message} created by
    background.js::onRuntimeMessage
  - suppresses chrome.runtime.lastError
    by browserAction.setText which lacks a callback param in chrome API

Callback mode:
  - enabled by passing a second param
  - doesn't suppress chrome.runtime.lastError
2017-11-25 18:00:38 +03:00
tophf
226fc471eb bump version to 1.1.6.2 2017-11-25 17:44:32 +03:00
tophf
4e9e4d24b1 bump version to 1.1.6.1 2017-11-21 11:03:22 +03:00
tophf
46df47bf31 bump version to 1.1.6 2017-11-21 10:10:29 +03:00
tophf
40f9413207 version 1.1.5 2017-11-14 11:57:05 +03:00
Jeremy Schomery
12e2fbdd37 version 1.1.4.3 2017-11-14 10:57:20 +03:30
tophf
ac8331e6ae FF: use tabs API for XML viewer 2017-11-14 09:52:51 +03:00
eight
db1643e9b8 Refactor: pull out colorParser 2017-11-01 11:18:13 +08:00
eight
098dc10f85 Fix: pull out runtimeSend 2017-11-01 11:15:11 +08:00
eight
1d829fe8f5 Fix: split up usercss logic from saveStyle 2017-09-18 11:34:12 +08:00
eight
d4ddefe8a0 Merge branch 'master' of https://github.com/openstyles/stylus into dev-user-css 2017-09-12 03:40:56 +08:00
Jeremy Schomery
63954c986f version 1.1.4.1 2017-09-06 18:53:09 +04:30
Jeremy Schomery
8f28872830 version 1.1.4 2017-09-06 16:15:24 +04:30
eight
1f44898475 Add: adopt node-semver 2017-09-06 03:08:03 +08:00
eight
dece4b57f3 Add: install styles from *.user.css file
Fix: handle dup name+namespace

Fix: eslint eqeqeq

Fix: trim @name's spaces

Add: check update for userstyle

Add: build CSS variable

Fix: only check dup when id is not provided

Refactor: userStyle2json -> userstyle.json

Add: style for input

Add: config dialog

Fix: preserve config during update

Fix: onchange doesn't fire on keyboard enter event

Fix: remove empty file

Add: validator. Metas must stay in the same line

Add: warn the user if installation failed

Fix: add some delay before starting installation

Add: open the editor after first installation

Fix: add openEditor to globals

Fix: i18n

Add: preprocessor. Move userstyle.build to background page.

Fix: remove unused global

Fix: preserved unknown prop in saveStyleSource() like saveStyle()

Add: edit userstyle source

Fix: load preprocessor dynamically

Fix: load content script dynamically

Fix: buildCode is async function

Fix: drop Object.entries

Fix: style.sections is undefined

Fix: don't hide the name input but disable it

Fix: query the style before installation

Revert: changes to editor, editor.html

Refactor: use term `usercss` instead of `userstyle`

Fix: don't show homepage action for usercss

Refactor: move script-loader to js/

Refactor: pull out mozParser

Fix: code style

Fix: we don't need to build meta anymore

Fix: use saveUsercss instead of saveStyle to get responsed error

Fix: last is undefined, load script error

Fix: switch to moz-format

Fix: drop injectContentScript. Move usercss check into install-user-css

Fix: response -> respond

Fix: globals -> global

Fix: queryUsercss -> filterUsercss

Fix: add processUsercss function

Fix: only open editor for usercss

Fix: remove findupUsercss fixme

Fix: globals -> global

Fix: globals -> global

Fix: global pollution

Revert: update.js

Refactor: checkStyle

Add: support usercss

Fix: no need to getURL in background page

Fix: merget semver.js into usercss.js

Fix: drop all_urls in match pattern

Fix: drop respondWithError

Move stylus -> stylus-lang

Add stylus-lang/readme

Fix: use include_globs

Fix: global pollution
2017-08-30 17:29:41 +08:00
Rob Garrison
988af5f1b8 Store linter rules with sync & LZ compression 2017-08-27 17:20:47 -05:00
Jeremy Schomery
a37281afb7 version 1.1.3.1 2017-08-09 13:57:15 +04:30
Jeremy Schomery
1b5db4872d version 1.1.3 2017-08-09 11:53:09 +04:30
Jeremy Schomery
f57240d3c1 version 1.1.2 2017-07-25 09:47:30 +04:30
Rob Garrison
4cbd48b9f9 Rename options.html & fix path 2017-07-14 03:25:33 -05:00
Rob Garrison
ac91e25eb4 Move messaging.js file & references 2017-07-13 19:52:40 -05:00
Rob Garrison
bb33ff3981 Fix links & split out edit.css 2017-07-12 16:26:20 -05:00
Jeremy Schomery
50a2b5dd72 Updating locales from transifex 2017-07-12 11:46:13 +04:30
Jeremy Schomery
c5a340e44e version 1.1.0 2017-06-14 09:30:19 +04:30
Jeremy Schomery
14e8dedded version 1.0.9 2017-05-30 16:21:41 +04:30
Jeremy Schomery
8989a53517 version 1.0.8 2017-05-15 18:14:59 +04:30
Jeremy Schomery
497756d838 version 1.0.7 2017-05-06 15:40:07 +04:30
Jeremy Schomery
f3c42fc27b version 0.1.6 2017-05-02 19:16:02 +04:30
tophf
e61a24b4e4 refactor install.js
* run_at: document_start
* MutationObserver to rebrand without flickering the original text
* reuse styleSectionsEqual
* don't proceed when orphaned
2017-04-18 12:46:38 +03:00
tophf
470bc92da5 Add <all_urls> in permissions
We already have full access to all sites via our content script so this permission doesn't add anything new but we need it to be able to establish page connection via tabs.executeScript when the extension is installed, reloaded, re-enabled.

<all_urls> also allows file:// URLs unlike *://*/* used previously. Of course it requires the corresponding checkbox being enabled on chrome://extensions page.
2017-04-18 12:46:36 +03:00
tophf
ca911396a1 Don't use chrome://favicon
chrome://favicon doesn't indicate an icon is missing in any way, it simply shows a placeholder instead. It also doesn't extrapolate from sub-pages so `example.com` won't have a favicon even if `example.com/subpage` has one.
2017-04-18 12:46:36 +03:00
tophf
05c05ec6b9 manage: use chrome://favicon 2017-04-18 12:46:36 +03:00
tophf
a93354de8c remove iframe observer
* documentElement may be overwritten right after iframe was initialized with contentDocument.write() and due to this change being external it's not reported in our existing rewrite observer so we enqueue an additional check using setTimeout(0).

* match_about_blank in manifest.json is back

* iframes with src = about: or javascript: don't have a proper URL when our content script runs so we get the real URL from the parent window

* minor refactoring
2017-04-18 12:46:35 +03:00
tophf
5c8d1950a7 Isolate storage.js in background context
To prevent cross-page leaks we need to create/copy prefs and cachedStyles inside the background page context.

* storage.js is now used only in the background page

* messaging.js now contains less bg-specific methods and more common methods. Added saveStyleSafe, deleteStyleSafe which automatically invoke onRuntimeMessage of the current page or just handleUpdate/handleDelete when notify:false

* prefs.js with 'prefs' for background and UI pages: separate objects because a UI page may load before the background page and it can read prefs from localStorage/sync/defaults
2017-04-18 12:46:34 +03:00
tophf
2ef87e003d Remove webSqlStorage cruft as Stylus never used it 2017-04-18 12:46:23 +03:00
tophf
a6c3424b53 Move images into a separate directory 2017-04-18 12:46:22 +03:00
tophf
b2e18177c3 Minimum Chrome version is 49 for ES6 stuff we use
Default function parameters were implemented in Chrome 49 and FF 15+
Stable Chrome is v57. One year has passed since v49.
2017-04-18 12:43:29 +03:00
Jeremy Schomery
fbf4a0ea8a removing 'webRequest' and 'webRequestBlocking' permissions. fixes #48 2017-03-16 17:16:11 +03:30
Jeremy Schomery
1d30b19132 version 1.0.5 is ready 2017-03-16 15:24:27 +03:30
Jeremy Schomery
65845c6c6e replacing window.confirm 2017-03-13 16:28:35 +03:30
Jeremy Schomery
74cbefc427 adding the new FAQs page 2017-03-11 12:56:24 +03:30
Jeremy Schomery
fb45e86648 fixes #13 2017-03-06 18:15:49 +03:30
Jeremy Schomery
55fd654713 muting CSSLint's unicode-range warning, muting CSSLint hsl color code warning 2017-03-03 14:54:02 +03:30
Jeremy Schomery
218cd46670 updating 'turn all styles off' in the right click context menu when prefs are loaded 2017-02-23 11:07:25 +03:30
Jeremy Schomery
d6ec816ea9 adding options UI (fixes #22, #24) 2017-02-14 19:05:53 +03:30
Jeremy Schomery
2d1767199b implementing update checker; part 1 2017-02-08 18:45:35 +03:30
Jeremy Schomery
44a2e697e2 version 1.0.1 is ready for Store 2017-02-03 17:42:02 +03:30
Jeremy Schomery
07ec84313c possible fix for #12 2017-02-03 15:42:23 +03:30
narcolepticinsomniac
ab12ccc1c0 Update permissions for backup 2017-01-30 14:20:20 -05:00
Jeremy Schomery
5623bca182 #1 follow up 2017-01-13 12:23:17 +03:30
Jeremy Schomery
458daf0836 getting rid of analytics.js 2017-01-08 12:27:33 +03:30
tophf
e15449435c Use 16/32px icon in new MD toolbar 2016-08-22 14:09:20 +03:00
Jason
76dd91930d 1.5.2 2016-04-04 19:02:30 -05:00
Jason
7452fe0c0b 1.5.1 2016-04-03 10:26:30 -05:00
Jason
53619501ce 1.5.0 2016-04-02 21:07:09 -05:00
Jason
15407c4cde Add Google Analytics 2016-03-17 21:52:46 -05:00
Jason
2973cac28f Switch to IndexedDB #167 2016-03-06 20:27:17 -06:00
Jason
ddb6f400e7 Add applications.gecko.id #166 2016-01-30 18:26:34 -06:00
tophf
23190af270 Switch from the dummy background.html to "scripts" key
Also fix the order: messaging.js should precede storage.js for notifyAllTabs() to work
2015-10-15 00:34:48 +03:00
tophf
965ea073c9 Sync localStorage prefs 2015-10-05 09:07:56 +03:00
Jason
ce465719d4 1.4.0 2015-09-28 19:42:45 -05:00
tophf
73218c399b Support ftp urls 2015-08-11 07:36:48 +03:00
tophf
f765934316 Dim toolbar icon on unstyled tabs, regenerate icons 2015-05-21 17:38:02 +03:00
Jason
68fa907854 1.3.1 2015-04-22 20:11:55 -05:00
Jason
6fb5c44f67 1.3.0 2015-04-21 11:00:01 -05:00
tophf
bd9a91951f Add 2 global behavior toggles to the toolbar button context menu 2015-03-26 21:16:03 +03:00
tophf
2ed53db7ad Add Chrome shortcut keys; update popups on change
* hotkey to open Manage styles
* hotkey to enable/disable all styles

No default hotkeys are provided, to customize go to "Keyboard shortcuts" on the Extensions page
2015-03-25 18:04:51 +03:00
Jason
908d769944 Manually apply styles to dynamic iframes #3 2015-03-03 10:48:29 -06:00
Jason Barnabe
0756f2d2b8 Add write new style options to toolbar pop-up #14 2015-01-30 11:28:05 -06:00
Jason Barnabe
89c1dc6bf9 Merge 2015-01-29 12:45:55 -06:00
Jason Barnabe
d09255a6b8 Apply to file: protocol #25 2015-01-29 12:44:29 -06:00
Jason Barnabe
c4c92c6c27 Convert to Unix linebreaks 2015-01-29 12:41:45 -06:00
silverwind
30b7a03101 Add match_about_blank to fix #3 2015-01-29 18:56:24 +01:00
Jason Barnabe
dda79fa4c6 Update version for release 2014-03-25 12:01:18 -05:00
Jason Barnabe
9445f47a3e #9 No install button on userstyles.org HTTPS server 2014-03-22 14:39:58 -05:00
Jason Barnabe
701ed8b783 Increment version for 1.2.1 release 2014-02-19 20:15:40 -06:00