Commit Graph
42 Commits
Author SHA1 Message Date
claustromaniacandGitHub 343f77c5e9 minor fix on the version check
'IF !_line! GEQ 4 (' is not reliable.
2018-01-16 10:46:57 -03:00
claustromaniacandGitHub a0ec17955d tiny change 2018-01-16 01:27:36 -03:00
claustromaniacandGitHub e195aceb54 Updater 4.3
Changes:
	-The script doesn't touch the user.js file until it really has to.
	-The merge function is a bit smarter parsing files, at no significant cost. See examples below.
	-Minor syntactic changes here and there.
Additions:
	-New -multiBackups argument. I personally intend to use it to compare files and quickly review changes.
2018-01-15 22:15:30 -03:00
claustromaniacandGitHub c1c368bce9 1.2
- Search string made case-sensitive, because Firefox preferences are.
- The script now uses regex, which allows it to understand user.js files formatted using single quotes, spaces, or tabs.

Trade-off: it can no longer reset preferences that include some special characters in their names. Not an issue for now, just something to remember.
2017-12-29 20:14:08 +00:00
claustromaniacandGitHub 7cd2c650cb fix for previous commit
Take it or leave it. Up to you, as always.
2017-12-27 03:32:58 +00:00
claustromaniacandGitHub a1f10513ea 1.2 2017-12-26 20:06:41 +00:00
claustromaniacandGitHub 74f18db85a 1.1 2017-12-26 20:04:57 +00:00
claustromaniacandGitHub 2ad3fbdbd3 Update updater.bat 2017-12-26 19:37:39 +00:00
claustromaniacandGitHub 68a44bcbb4 cosmetic fix
for calls to :message before the script begins logging (with -log)
2017-12-26 17:29:11 +00:00
claustromaniacandGitHub 643206a3da autoparrot - second try 2017-12-25 15:30:09 +00:00
claustromaniacandGitHub 05ac6dd0ec autoparrot 2017-12-25 08:18:41 +00:00
claustromaniacandGitHub daff5f6fa6 cosmetic fix + formatting
the fix in question just removes the extra space in the version + date output (line 91)
2017-12-25 03:48:39 +00:00
claustromaniacandGitHub 018fb2a321 cosmetic stuff 2017-12-25 03:33:36 +00:00
claustromaniacandGitHub 4f22afac7f rewording 2017-12-25 00:51:56 +00:00
claustromaniacandGitHub 94bbb6bab4 minor change 2017-12-24 16:55:17 +00:00
claustromaniacandGitHub b9266bba1d 4.1
- added missing -unattended switch to the list of switches
- other minor changes
2017-12-24 16:49:33 +00:00
claustromaniacandGitHub 901670fffc Convert BAT line-endings to CRLF
LF is messing with calls to :message in the updater, at least on my end.
2017-12-18 12:26:03 +00:00
claustromaniac 25321e7262 4.0? 2017-12-17 15:59:55 +00:00
claustromaniac ca947c6ae4 4.0b3 - ignore the previous commit lol 2017-12-17 15:02:52 +00:00
claustromaniac c9f62822a6 4.0b3
- Fix for empty lines.
- Went back to using FIND in the main loop for the good reasons stated by @earthing
2017-12-17 15:01:06 +00:00
claustromaniac 240bcbfbee 4.0b2
Not all issues fixed yet.
2017-12-17 13:46:39 +00:00
claustromaniac 2f5ae9b294 v4.0b
Fixes:
	- Merge function:
		*no longer has the potential to truncate super long lines.
		*no more issues with exclamation marks in user_pref lines.

Improvements:
	- Overall better performance due to ECHO syntax changes.
	- Merge function on steroids! Faster than ever, and no longer generates temporary files at all. As it always should have been.

Changes, Additions, Substractions:
	- Leading spaces are no longer ignored by the merge function. Lines to be merged must begin with user_pref.
	- Added header with name, author, version.
	- Added help sub-menu.
	- Added special message when no override files are found when using -multiOverrides.
	- Formatting changes.
2017-12-16 17:55:08 +00:00
claustromaniac 77ca6af2d9 I said 3.2.
I'm not me if I don't miss something.
2017-12-10 01:20:39 +00:00
claustromaniac e663b8a968 3.2
Prevent issues handling the script when the name includes spaces.

+ Formatting.
2017-12-09 16:49:42 +00:00
claustromaniac 457ef9ec2f 3.1 tidy up 2017-12-03 15:07:15 +00:00
claustromaniac a6c93b3982 Revert "3.1"
This reverts commit ccaf06973b.
2017-12-03 15:04:41 +00:00
claustromaniac ccaf06973b 3.1
Minor change suggested by earthing.
2017-12-03 15:01:45 +00:00
claustromaniac ce3c077d06 3.1 2017-12-03 13:35:41 +00:00
claustromaniac 8a99bb350c 3.1a2 2017-12-01 01:05:24 -03:00
claustromaniac fc47792df2 3.1a1 2017-11-30 22:17:58 +00:00
claustromaniac e5d00be8f0 Revert "3.1a1"
This reverts commit ac7ad78d1d.
2017-11-30 22:11:42 +00:00
claustromaniac ac7ad78d1d 3.1a1
Just added a few lines to make batch updates more visible - which helps with testing.
2017-11-30 18:22:18 +00:00
claustromaniac 00e17281dc Updater 3.1a
-updatebatch now will (or at least should):
*Download new batch and name it [updater]*.bat
*Open that script in a new CMD window.
*Exit

The [updated]*.bat script should:
*Copy itself overwriting the original batch (without renaming).
*Start that script in a new CMD instance.
*Exit.

The new script, with the original name, should:
*Delete the [updated]*.bat script
*Begin the normal script routine.

@earthing do you think I should still rename the scripts to .old or something before overwriting/deleting?
2017-11-30 00:10:01 +00:00
claustromaniac 3737b65f53 Fixed issue with commented-out user_pref lines
It ended up being a mixture of the previous commit and the fix. It writes a temporary file on the go that only holds preferences, and generates the target file at once at the end. It's slower than before, but it works.
2017-11-29 16:15:20 +00:00
claustromaniac 635cacfe54 Replace PING with TIMEOUT
Otherwise earthing's nosy firewall bitches about it.
2017-11-29 15:49:21 +00:00
claustromaniac a126a32109 Revert "2nd merge optimisation"
This reverts commit c9e7f1ccfa.
2017-11-29 15:18:23 +00:00
claustromaniac c9e7f1ccfa 2nd merge optimisation
While I figure out a fix for the missing characters...

Enclosing the whole merging loop in parentheses and replacing the source file with the entire output at once is more efficient than appending individual lines with >>%~2. The script doesn't have to wait for the HD to continue processing.
2017-11-29 12:08:15 +00:00
claustromaniac ff9370b714 fix for hiding powershell output
Everything in a line after a powershell call is considered as being called from PowerShell.

>nul didn't work because of that. Enclosing the line in brackets should fix it.
2017-11-29 04:56:33 +00:00
claustromaniac b1fd2ba48b minor fix
What would we want a warning that we can't get to read for?
2017-11-29 04:50:01 +00:00
claustromaniac bdf69cd198 misc
To account for the possibility of the user running the script silently in the background. PAUSE would leave an instance in memory doing nothing indefinitely.

I was going to use TIMEOUT but PING performs better.
2017-11-29 04:33:02 +00:00
claustromaniac 6ff3d1eb36 Fix for the self-update feature and misc
Also minor but significant improvement to the merge function: it no longer writes temp files to the disk while processing data.
2017-11-28 21:53:20 +00:00
claustromaniacandGitHub efcaa3de8a Just some polishing 2017-11-19 17:41:19 +00:00