fix: automate graduate timetable read and refine blue glass Dock
This commit is contained in:
@@ -18,7 +18,8 @@ class SchoolNavigationPolicy {
|
||||
|
||||
static bool canNavigate(Uri uri, {required bool isMainFrame}) => isMainFrame
|
||||
? isSchoolPage(uri)
|
||||
: (uri.scheme == 'https' && uri.userInfo.isEmpty) ||
|
||||
: isGraduatePage(uri) ||
|
||||
(uri.scheme == 'https' && uri.userInfo.isEmpty) ||
|
||||
(uri.scheme == 'about' && uri.path == 'blank');
|
||||
static bool _https(Uri uri) =>
|
||||
uri.scheme == 'https' && uri.port == 443 && uri.userInfo.isEmpty;
|
||||
@@ -43,7 +44,11 @@ class SchoolNavigationPolicy {
|
||||
uri.port == 80 &&
|
||||
uri.userInfo.isEmpty &&
|
||||
uri.host == 'yjsjy.uestc.edu.cn' &&
|
||||
uri.path.startsWith('/pyxx/'));
|
||||
(uri.path == '/pyxx' || uri.path.startsWith('/pyxx/')));
|
||||
static bool isGraduatePage(Uri uri) =>
|
||||
isSchoolPage(uri) &&
|
||||
uri.host == 'yjsjy.uestc.edu.cn' &&
|
||||
(uri.path == '/pyxx' || uri.path.startsWith('/pyxx/'));
|
||||
static bool isExam(Uri uri) =>
|
||||
_https(uri) &&
|
||||
uri.host == 'yjsjy.uestc.edu.cn' &&
|
||||
|
||||
Reference in New Issue
Block a user