Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

...
Commits on May 31, 2011
Erik Vold erikvold <em:version>0.1.2pre</em:version> 86bfe09
Erik Vold erikvold - adding some promise helpers Q.and() and Q.chain()
- include() in aboutScriptish.js now returns a promise.
0398a49
Erik Vold erikvold Merge branch 'master' of github.com:erikvold/scriptish 59eec7d
Erik Vold erikvold - using https://github.com/erikvold/html e84ac09
Commits on Jun 01, 2011
Erik Vold erikvold test: Scriptish.isGreasemonkeyable() 70f7a70
Erik Vold erikvold Closes #324 until jquery/qunit#111 is closed 578c4de
Erik Vold erikvold minor style change to padding in about:scriptish 5c202d3
Greg Parris supahgreg Closes #328 timeout test: clear the second timeout if the first is ca…
…lled

(cherry picked from commit 0af13cbc5173e488fc7857e5a901f4c0d0a98fec)
c8008ed
Commits on Jun 04, 2011
Erik Vold erikvold - timeout the callback used with the promises returned by Config._loa…
…d* functions so that possible errors in the function don't cause a rejected callback to be called.

- adding a Config.loaded flag which Config._save() checks b4 saving
957d90f
Erik Vold erikvold wrapping Script.isUSOScript in a try/catch in case it throws an error b23431c
Erik Vold erikvold set Config.loaded = true only after everything in the callback has ex…
…ecuted without throwing an error
9d6fc48
Erik Vold erikvold Closes #331 Merge branch 'issue-331' dfe976b
Erik Vold erikvold Config.loadBlocklist()'s guts are warpped in a timeout now, b/c if it…
… throws then that shouldn't block w/e called it
9095dbb
Erik Vold erikvold restoring save delay code removed in e4a05b3 d7a6ee3
Erik Vold erikvold replacing Scriptish.getConfig when the config is loaded 104550a
Greg Parris supahgreg minor change: using classList to add/remove a class 0c9fa1f
Greg Parris supahgreg Closes #335 only display the 'scriptish-list-empty' box if needed
(cherry picked from commit e803a166ec7ad3cd994546c402c0241c03ec9ee1)
c915390
Greg Parris supahgreg minor: removing a junk line from config.js 7c5e244
Commits on Jun 05, 2011
Greg Parris supahgreg Closes #337 localize the 'no user scripts installed' box
(cherry picked from commit 917c5c8ededc3c8db6d36c979396b69b067a2ffb)
5d40d15
Erik Vold erikvold <em:minVersion>4.0</em:minVersion> for FF 2397eb7
Greg Parris supahgreg minor fix: 'Service' -> 'Services' in modules\scriptish.js 0214edf
Greg Parris supahgreg Closes #339 Adding sv-SE locale. Crediting 'Mikael Hiort af Orns' as …
…the translator.

(cherry picked from commit fa5ee0f)
e31b3a6
Erik Vold erikvold <em:contributor>Greg Parris; http://phob.net/</em:contributor> -> <em…
…:developer>Greg Parris; http://phob.net/</em:developer>
28db832
Erik Vold erikvold Closes #340 setting a explicit width & height for script-options.xul 919ac38
Erik Vold erikvold don't delay calling aCallback for Scriptish.getConfig(aCallback) when…
… the config is available; keep script injection time consistent post load
0c81ce0
Commits on Jun 06, 2011
Erik Vold erikvold Closes #342 removing window unload listener c1f1223
Greg Parris supahgreg Adding 'customIsGreaseableSchemes' to support scripting of non-standa…
…rd schemes.
dfc47e2
Greg Parris supahgreg minor style change: using double quotes 7c71104
Greg Parris supahgreg Closes #338 Merge branch 'issue-338' 17d45c9
Erik Vold erikvold For #338 changing method of including new schemes to match GM's 8e6b464
Greg Parris supahgreg ordering contributors list alphabetically fc0f78d
Greg Parris supahgreg adding 'Developers' section to about:scriptish d661776
Erik Vold erikvold using a slightly faster timeout for @run-at document-idle 7ced7c3
Erik Vold erikvold adding a comment about why I'm not using the window's setTimeout for @… a70e5ad
Erik Vold erikvold Merge branch 'master' of github.com:erikvold/scriptish 1556ddb
Nils Maier nmaier Closes #343 Add homepage for nmaier
(cherry picked from commit 2da0425c1f5eb578197af911c536f50b88b26511)
0071979
Nils Maier nmaier Initial de (German) locale 845d706
Nils Maier nmaier Register de locale in chrome.manifest 10d93d0
Nils Maier nmaier Add em:translator for de
No em:localized, because this would require to duplicate a lot of stuff such as all em:developer/em:contributor/em:translator and such.
ab7c84d
Erik Vold erikvold Merge pull request #345 from nmaier/de
German locale (de)
bffc10d
Erik Vold erikvold Closes #332 allow users to disable notifications. 70bbbb4
Commits on Jun 07, 2011
Nils Maier nmaier The about menu item from the Add-on Manager should open about:scriptish
Possible other consumers of em:aboutURL, too.
Implement this by using a stub XUL "window" that in turn opens a new about:Scriptish tab within the most recent browser.
Do not use window.opener tricks or such, as there is no guarantee the opener will be a browser.
430177b
Erik Vold erikvold Merge pull request #346 from nmaier/about-menuitem-should-open-aboutS…
…criptish

The about menu item from the Add-on Manager should open about:scriptish
5a6075e
Commits on Jun 08, 2011
Erik Vold erikvold Closes #350 tabBrowser is null error for Scriptish_getBrowserForConte…
…ntWindow
78b9689
Erik Vold erikvold bug fix: testIsGMable.js tests failed when a pref like extensions.scr…
…iptish.fileIsGreaseable is not a bool type
475bc30
Erik Vold erikvold test: Scriptish.enabled getter and extensions.scriptish.enabled pref …
…exists and is a bool
b725fbe
Erik Vold erikvold test: Scriptish.updateSecurely returns extensions.scriptish.update.re…
…quireSecured and that it's a bool pref
0f9144a
Erik Vold erikvold bug fix: Scriptish.updateSecurely should only return a bool ebba8ac
Erik Vold erikvold test: Scriptish.getConfig 9c9996b
Nils Maier nmaier Rewrite options dialog to use <prefwindow>
<prefwindow> has a lot of advantages, such as platform specific integration that fits user expectations better.

Also add some advanced options:

* Use default locale
* Require built-in certs
* Disable notifications
* LogChrome

The security stuff was moved to the Advanced Pane, while Global Excludes received it's own pane.
Also, the current editor path is now shown within the UI

Icons courtesy of http://www.openclipart.org/
bbc3c6f
Nils Maier nmaier Fix the Options menu item after the <prefwindow> migration
Using a <prefWindow> now requires a slightly different way to open the dialog.
Added to this, add an Options entry to the Tools menu, for parity with the bToolbar button.
89bd00c
Nils Maier nmaier de: Add new <prefwindow> strings 6630451
Nils Maier nmaier Fix various issues with about:scriptish
- Fore- and background colors properly set
- Add some more whitespace, as this makes the page more clear
- Limit the width of the page and also the inner-container width of text
- Add some paragraphs and line breaks
- Style more like the in-application pages (e.g. neterror) of Firefox
- /s/Contributors/Credits/ as there is already a Contributors subsection
- Re-organize Credits section: use more columns (depending on size)
- Re-organize Credits section: Do not put emphasis on the homepages by writing the urls explicitly; just make the person text into a link, and put less visual emphasis on the links
e70c1a8
Nils Maier nmaier Merge pull request #351 from nmaier/use-prefwindow
Rewrite options dialog to use <prefwindow>
3dd7eb2
Nils Maier nmaier Merge pull request #352 from nmaier/about-scriptish-fixes
Fix various issues with about:scriptish
a02e86a
Greg Parris supahgreg options.excludes -> options.pane.excludes for locales that have it 3f6e75e
Nils Maier nmaier Add ignoreRedirect argument to GM_xhr
Also add ignoreTempRedirect and ignorePermanentRedirect for more fine-grained control.

Closes #225
1af0fd7
Nils Maier nmaier Add failOnRedirect and redirectionLimit arguments to GM_xhr
failOnRedirect is the same as redirectionLimit = 0
It will only work on nsIHttpChannels (mainly because there are no redirects specified or implemented in other prototcolls).

failOnRedirect or redirectionLimit will cause an error when redirected (too much) just like a regular redirection loop would.
f393b9a
Nils Maier nmaier about:scriptish?test -- style messed up after #352
Closes #353
b78e369
Erik Vold erikvold Closes #353 fixing up the css on about:scriptish?test a bit 28143ef
Erik Vold erikvold Merge branch 'master' into issue-353
Conflicts:
	extension/content/aboutScriptish.html
8dd9932
Erik Vold erikvold Merge branch 'issue-353' fe17111
Erik Vold erikvold <em:contributor>Nils Maier; https://tn123.org/</em:contributor> -> <e…
…m:developer>Nils Maier; https://tn123.org/</em:developer>
11483b4
Commits on Jun 09, 2011
Erik Vold erikvold bug fix: wait for all tests to load before starting them (ie: disable…
… autostart)
ca7cb46
Erik Vold erikvold test: a couple of Scriptish_log tests efe1814
Erik Vold erikvold test: Scriptish_log removes null chars from messages cf77e74
Nils Maier nmaier Add description to global excludes prefpane
Closes #354
d300951
Nils Maier nmaier Allow to enable/disable all schemes.
Also put enabled schemes under a enabledSchemes.* prefBranch and set sane defaults.
http/https schemes are now synonymous, as the difference is not really the prptocol, just the added SSL/TLS encapsulation.
Also, always allow parameterized/queried about:blank, so users do not have to turn on general about: support just to get some sites using about:blank tricks working.
a297088
Nils Maier nmaier Add enabledSchemes checkboxen to the advanced prefpane 682d912
Nils Maier nmaier Put the general schemes on the main prefpane
And keep the advanced, possibly dangerous schemes on the advanced pane. We don't really want n00bs to click them, and if they do, they have been warned :p
5694eac
Nils Maier nmaier Also make <caption> bold within the preference dialog 9720d47
Nils Maier nmaier Break the protocol security remark into two
This avoids display (crop) issues due to an overlong line, e.g. on mac
c9145b0
Nils Maier nmaier Fix qunit reruns via about:scriptish cb2894c
Nils Maier nmaier l10n: Drop "schemes" and typo fixes ad9f5a8
Nils Maier nmaier de: add recent preferences strings c313bf3
Greg Parris supahgreg Only run QUnit tests if 'test' param is set.
Also allowing for other parameters.
e1d0aa2
Greg Parris supahgreg Moving things around in aboutScriptish.css d7b7894
Greg Parris supahgreg Removing the bottom margin from #qunit-header2 b8e199d
Greg Parris supahgreg tweaking the Learn text in about:scriptish 40f2062
Greg Parris supahgreg making the about:scriptish Credits note smaller 0cbe06b
Erik Vold erikvold Closes #356 only run qunit tests if the first url param of about:scri…
…ptish is 'test' or 'filter'
2f496a5
Erik Vold erikvold <em:contributor>Nils Maier; https://tn123.org/</em:contributor> -> <e…
…m:developer>Nils Maier; https://tn123.org/</em:developer>

missed this part in 11483b4
a8c68bd
Commits on Jun 10, 2011
Erik Vold erikvold adding a 'debug' param to the test.sh script c3dc69d
Erik Vold erikvold test: adding one test for Scriptish_openInTab defaults ad93abc
Erik Vold erikvold Closes #355 using wrong default in testScriptishEnabled.js
Also adding extensions.scriptish.enabled to defaults/preferences/scriptish.js
cb09323
Erik Vold erikvold adding a windowtype='scriptish:install' attribute to the install.xul …
…window
0ffae0f
Erik Vold erikvold Closes #347 support GM's openInTab's new aLoadInBackground argument ee6a5d2
Erik Vold erikvold test: Scriptish_openInTab's aReuse 34b31ff
Commits on Jun 13, 2011
Greg Parris supahgreg Closes #359 Add a 'Save As User Script' option to scratchpad's File menu
(cherry picked from commit f960962)
68b9ea2
Commits on Jun 14, 2011
Greg Parris supahgreg Closes #348 use Scriptish_openInTab in aboutStub.xul
(cherry picked from commit 1999646eb3e5032e8b9fc43862bbaeb0f76c32a3)
ca672e6
Erik Vold erikvold minor: moving GM_updatingEnabled and GM_generateUUID to GM_api.prototype ca0853d
Erik Vold erikvold WIP #341 removed use of Q in config.js, and Config._load* are loading…
… synchronously again
cc81a8c
Greg Parris supahgreg modifying Config._load* functions to handle the various 'save' cases e53b870
Erik Vold erikvold test: Scriptish_convert2RegExp a0bd72f
Erik Vold erikvold test: Scriptish_memoize 34e06e5
Greg Parris supahgreg Use a more reliable way to retrieve URL params in QUnit.
For 'about:scriptish?test', window.location.search is an empty string.
2f93d7d
Greg Parris supahgreg Adding the 'urlbase' option to QUnit. 6c17acc
Greg Parris supahgreg Using QUnit.config.urlbase in aboutScriptish.js bd2810d
Greg Parris supahgreg revert 2f496a5 since the 'test' param will always be set when filteri…
…ng QUnit tests
344c607
Greg Parris supahgreg Using default 'qunit-header' behavior now that URL params are working. 3173e96
Greg Parris supahgreg Closes #356 Merge branch 'issue-356' 1afa945
Erik Vold erikvold Merge branch 'master' of github.com:erikvold/scriptish f40de61
Erik Vold erikvold Revert "Adding the 'urlbase' option to QUnit."
This reverts commit 6c17acc.
b82da23
Erik Vold erikvold overwriting QUnit.url() instead of editing qunit.js 49bac64
Erik Vold erikvold ignoring keys with no values in QUnit.url() 25e013f
Commits on Jun 15, 2011
Greg Parris supahgreg Closes #82 Display 'reinstall' if a user script is already installed.…
… Also consolidating 'Install' translations into the 'install' key.

(cherry picked from commit 72519a1)
6a39942
Commits on Jun 18, 2011
Nils Maier nmaier Scriptish_getContents broken when NetworkHelper not shipped
Seamonkey (and others?) do not ship the NetworkHelper module, part of
the HUDConsole, hence the Cu.import fails, effectively causing other
missing error handling to render the whole application useless.

As a work-around reimplement the one function Scriptish currently uses
if Cu.import fails.
a84fb59
Nils Maier nmaier Official support Seamonkey up to Seamonkey Beta2.2
Closes #367
7f0e416
Nils Maier nmaier Fix testToolsMenuItem failure on Seamonkey 0ab4623
Commits on Jun 21, 2011
Greg Parris supahgreg only test global excludes against a URL once per page load f7c8fe8
Commits on Jun 22, 2011
mrwarper mrwarper Added es-ES locale 85e228a
mrwarper mrwarper Added es-ES description and translator name 5f96c6e
Commits on Jun 25, 2011
Greg Parris supahgreg Closes #371 Reuse the Scriptish Options window if it is already open,…
… and make it modal for non-instantApply systems.

(cherry picked from commit 897cae67d92335c54c2107196cc792d4fbe72a0e)
910ca73
Commits on Jun 26, 2011
Erik Vold erikvold Closes #341 Merge remote branch 'supahgreg/issue-341' b54d5a8
Erik Vold erikvold test fix: testAboutScriptishTestsRan was busted in 3173e96 7673080
Erik Vold erikvold Merge remote branch 'mrwarper/master' 187cb4f
Erik Vold erikvold adding es-ES translations from Alfredo Fernández Díaz ad77233
Greg Parris supahgreg Adding pt-BR (Brazilian Portuguese), courtesy of Mauro Jos da Silva 752deb8
Greg Parris supahgreg consolidating 'install' translations in pt-BR fb6a98a
Greg Parris supahgreg updating pt-BR to reflect changes in en-US 10780ca
Greg Parris supahgreg updating sv-SE to reflect changes in en-US 32e0630
Greg Parris supahgreg updating ru-RU to reflect changes in en-US 239f6b8
Greg Parris supahgreg updating ja-JP to reflect changes in en-US 875af1a
Greg Parris supahgreg updating de to reflect changes in en-US cc86b47
Greg Parris supahgreg moving some stuff around in the localizations d74cdbd
Erik Vold erikvold Closes #362 Merge remote branch 'supahgreg/issue-362' 6e98e08
Erik Vold erikvold minor performance tweaks to Config.getMatchingScripts() 3b7e9ea
Greg Parris supahgreg Updating ja-JP using a mix of the previous and Babelzilla translation…
…s. Crediting 'k2jp' as a ja-JP translator.
3d48bcf
Greg Parris supahgreg updating es-ES to reflect changes in en-US da2bc72
Greg Parris supahgreg specifying which locale each translator worked on 1c12338
Greg Parris supahgreg Closes #370 Merge branch 'issue-370' e414672
Erik Vold erikvold Bug #252 Fix all creations of nsITimer that are locally-scoped and su…
…sceptible to GC before firing.
e8c96a9
Erik Vold erikvold Merge branch 'master' of github.com:erikvold/scriptish 64e1482
Commits on Jun 27, 2011
Erik Vold erikvold Closes #372 After upgrading a user script 'installing' message hangs 090afc0
Nils Maier nmaier Translate new de-locale strings
Closes #370
a99b35a
Nils Maier nmaier Hook up the window console into the script sandbox if possible
Closes #374
c931878
Nils Maier nmaier Make script errors appear in the corresponding script console.
The trick here is to rewrite errors so that they become nsIScriptError2
instances with a correct window id assigned so that the web console
nsIConsoleListener will pick it up and associate it accordingly.

Disclaimer: inspired by some moz-scratchpad stuff
Closes #375
a861442
Greg Parris supahgreg Some more updates to ja-JP from k2jp (BabelZilla) 28a7ee3
Nils Maier nmaier Remove variable missed from cleanup f418fbc
Nils Maier nmaier Fix var double definition in testScriptishLogger a19e130
Nils Maier nmaier Provide user pref for caching script & dep contents
CachedResource added, which at the moment implements cached textContent
that Script and ScriptDependency will use, as they now inherit from CR.

Caching is controlled by the new `cache.enabled` preference, which by
default it set to true.  The Advanced panel now features a checkbox
for the user to access and control the preference.

The regular script modification checks will catch any modified scripts,
so that script editing is still possible without hacks.

Closes #289
027d646
Nils Maier nmaier Fix Qunit result detail table styles b30f9b0
Nils Maier nmaier Consolidate qunit tests a bit
- Test more of cryptoHash according to
  http://mxr.mozilla.org/mozilla-central/source/security/manager/ssl/tests/unit/test_hash_algorithms.js
  (@nmaier wrote test_hash_algorithms.js)
- A little less global pollution in testCachedResource
6cdda9f
Nils Maier nmaier Warn about return from main scope in user scripts 517b24c
Nils Maier nmaier Make the nsIContentPolicy blazing fast
And less gc-y
ba3f1c0
Nils Maier nmaier Install should re-get the script.
Security consideration: This is not better or worse than before. A
server might push cache-control anyway.
313e3cf
Nils Maier nmaier Dynamically inserted iframes (frames?) not processed
Wait for location/src-less frames via DOMContentLoaded. Once we receive
that event, push to `docReady` again and synthetisize another
DOMContentLoaded,

Closes #298
a7c4ff5
Commits on Jun 28, 2011
Greg Parris supahgreg Closes #376 <preferences> should be defined in a <prefpane>
(cherry picked from commit 894ca379445c6d1141cfb0ed012961d516cbe8e6)
c178186
Nils Maier nmaier Avoid stat thrashing
Many nsIFile properties will effectively cause a stat() call, e.g.
lastModifiedTime or fileSize.
As scriptish does regularly check these properties, e.g. when loading a
website, the number of stat() calls should be clammed. This commit clams
such calls to 1 in 1000ms.
Together with the previous CachedResource patch, this might greatly
reduce the disk load where it matters, i.e. during high activity loads.
656aa1c
Nils Maier nmaier Put the XUL/DOM localization stuff into a module for reuse fac6bb4
Nils Maier nmaier Newscript: use a <grid> and Scriptish_localizeDOM df7ef22
Nils Maier nmaier Newscript: Add a "generate id" button 017c8f2
Nils Maier nmaier Newscript: Remove unused <label id>s 5463a0e
Nils Maier nmaier createUserScriptSource should support any @key.
Also it should not have to care about what data type a specfic
@key-value and simply support a more generic approach
dbbee27
Nils Maier nmaier Newscript: support @author 9227688
Nils Maier nmaier Scratchpad integration: Make the code comprehensible
Also allow other extensions to check/use `Scratchpad.saveAsUserscript`
081b882
Greg Parris supahgreg minor fix: tools undefined in scratchpad.js ee8f36e
Greg Parris supahgreg minor: adding a semicolon cadacd0
Greg Parris supahgreg Correcting include/exclude metadata headers in new user script creation.
Issue introduced by dbbee27
0769e83
Nils Maier nmaier Make gone script disappear after access attempt ceb3d61
Nils Maier nmaier Newscript: Validate that name and id are provided
If no name or id are given, accepting the dialog will fail and the
corresponding fields will be highlighted.
Also, the required fields got a placeholder text now, asking the user to
specifiy the text.

(Note: Not using HTML5 Form validation here, as this does not work
reliably when intermixed with XUL)
fc45a61
Commits on Jun 29, 2011
Nils Maier nmaier Newscript: generate-id button should now consume a whole column
Also fixes: first instance of the dialog in a session was right-cropped before
due to showing the generate-button only late in the game in a new column
(gecko issue).
52800cb
Greg Parris supahgreg Don't wrap 'New User Script' includes/excludes to the next line. 39d5960
Greg Parris supahgreg Make it easier to add additional @include's to a New User Script. 9a4ff7b
Greg Parris supahgreg Closes #383 Merge branch 'issue-383' d7118f1
Greg Parris supahgreg Closes #384 Standardize on 'Add-ons Manager', as that is what Mozilla…
… uses.

(cherry picked from commit 86094b14b98bb3ca3b3a0cc5abefdd66068e54ea)
186a377
Greg Parris supahgreg minor change: Use the internal '_run-at' when updating from a new scr…
…ipt. Otherwise it will be set to the 'defaultRunAt' value.
eb595a0
Erik Vold erikvold test: clicking the toolbar button to enable/disable 1d83f7f
Erik Vold erikvold test: Scriptish_getTLDURL b658b0c
Greg Parris supahgreg Adding a few more availability checks. 82480df
Commits on Jun 30, 2011
Erik Vold erikvold <em:version>0.1.2</em:version> 4960e21
Erik Vold erikvold Merge branch 'master' into staging ea0e203