Open GoogleCodeExporter opened 9 years ago
found an easy way. may be author misuse something, just add slashes to double
like "^[\\w\\-]+:\\/+(?!\\/)(?:[^\\/]+\\.)?" to
"^[\\\\w\\-]+:\\\\/+(?!\\\\/)(?:[^\\\\/]+\\\\.)?"
also since some rule of autoproxy-list start with a plus which can't be
recognize by Switchy, you should trim it first.
add these codes after line 829:
if (line[0] == '+') {
line = line.substring(1);
}
Original comment by ayanamist
on 29 Oct 2010 at 9:23
just upload a modified version to help people who dont know how to modify
Original comment by ayanamist
on 29 Oct 2010 at 5:49
Attachments:
Thanks a lot~
Original comment by yangji...@gmail.com
on 30 Oct 2010 at 7:13
find another method to test whether rule is valid or not to avoid problem.
ruleManager.js after line 333 insert code below:
// just declare to see whether regular expression rule is valid
if (rule.patternType == RuleManager.PatternTypes.regexp) {
try {
var tmp = new RegExp(rule.urlPattern);
}
catch(e) {
delete tmp;
return '';
}
delete tmp;
}
also give out a modified version to help noob.
you need to unintall previous Switchy and install this one. sorry i dont save
my pem file before.
YOU SHOULD USE BACKUP/RESTORE FUNCTION TO SAVE YOUR OPTIONS!!!
Original comment by ayanamist
on 31 Oct 2010 at 10:58
Attachments:
just modify something else to optimize my code. here is the latest version.
because code is messy, you can unzip the crx file and diff them. only
RuleManager.js is modified.
Original comment by ayanamist
on 31 Oct 2010 at 11:19
Attachments:
Thanks for Ayanamist's work!!
It is very nice!!
I hope this update will merge in next release.
Original comment by fuaiqi...@gmail.com
on 28 Dec 2010 at 8:04
Original issue reported on code.google.com by
ayanamist
on 25 Oct 2010 at 7:13