1 class Main extends FeatureInterface{
2 features:any = {};/*;any bypasses dot notation issues on objects*/
7 if(!Generics.storageAvailable('localStorage')) {alert("4F-FSE: local storage error"); return;}
17 var top_bar = new TopBar();
19 this.settings = top_bar.getSettingsArr();
24 this.features.image_hider = new ImageHider();
27 this.features.image_replacer = new TextReplacer();
29 if(this.settings.password_settings == 'true'){
30 this.features.text_replacer = new PasswordViewer();
34 activate(){ console.log("4F-FSE Starting"); }
38 document.addEventListener('PostsInserted', evt => this.decideAction());
41 var start:any = document.getElementById('delform');
42 var itterator:any = document.createNodeIterator(start, NodeFilter.SHOW_ELEMENT);
45 for(let feature_key in this.features)
46 this.features[feature_key].retrieveStates();
48 while((node = itterator.nextNode())){
49 for(let feature_key in this.features)
50 this.features[feature_key].decideAction(node);
55 document.addEventListener('4chanXInitFinished', function(){new Main();});