import { AbstractModifier } from "./abstract.modifier" ; export class ActivityStravaMapTypeModifier extends AbstractModifier { protected mapType : string ; constructor ( mapType ) { super ( ) ; this . mapType = mapType ; } public modify ( ) { if ( this . mapType === "terrain" ) { return ; } const mapGoal = this . mapType ; setInterval ( ( ) => { $ ( "a.map-type-selector[data-map-type-id=" + mapGoal + "]" ) . not ( ".once-only" ) . addClass ( "once-only" ) . click ( ) . parents ( ".drop-down-menu" ) . click ( ) ; } , 750 ) ; } }