File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -978,6 +978,9 @@ cloudopt.grade = (function (cloudopt) {
978978 if ( config . whiteList . indexOf ( item . host ) > - 1 && item . safe < 0 ) {
979979 item . safe = 0 ;
980980 }
981+ if ( config . whiteListAds . indexOf ( item . host ) > - 1 && item . safe < 0 ) {
982+ item . safe = 0 ;
983+ }
981984 /*if in black list*/
982985 if ( config . blackList . some ( e => e === item . host ) ) {
983986 item . safe = - 1 ;
@@ -1008,6 +1011,9 @@ cloudopt.grade = (function (cloudopt) {
10081011 if ( config . whiteList . indexOf ( result . host ) > - 1 && result . safe == - 1 ) {
10091012 result . safe = 0 ;
10101013 }
1014+ if ( config . whiteListAds . indexOf ( result . host ) > - 1 && result . safe == - 1 ) {
1015+ result . safe = 0 ;
1016+ }
10111017 if ( data . result . host != "" ) {
10121018 result . date = new Date ( ) . getTime ( ) ;
10131019 cloudopt . store . set ( website , result ) ;
@@ -1060,7 +1066,7 @@ cloudopt.init = (function (cloudopt) {
10601066 url = tabArray [ tabArray . length - 1 ] . url ;
10611067 host = cloudopt . utils . getHost ( url ) ;
10621068 // cloudopt.browserIconChange.normal();
1063- if ( tabArray [ tabArray . length - 1 ] . url . indexOf ( "file://" ) == 0 || tabArray [ tabArray . length - 1 ] . url . indexOf ( "chrome-extension://" ) == 0 || tabArray [ tabArray . length - 1 ] . url . indexOf ( "chrome://" ) == 0 || cloudopt . config . get ( ) . whiteList . indexOf ( host ) > - 1 ) {
1069+ if ( tabArray [ tabArray . length - 1 ] . url . indexOf ( "file://" ) == 0 || tabArray [ tabArray . length - 1 ] . url . indexOf ( "chrome-extension://" ) == 0 || tabArray [ tabArray . length - 1 ] . url . indexOf ( "chrome://" ) == 0 || cloudopt . config . get ( ) . whiteList . indexOf ( host ) > - 1 || cloudopt . config . get ( ) . whiteListAds . indexOf ( host ) > - 1 ) {
10641070 cloudopt . browserIconChange . gray ( ) ;
10651071 return ;
10661072 }
You can’t perform that action at this time.
0 commit comments