(line)
| 189 | finals = [] |
| 190 | |
| 191 | def process(line): |
| 192 | if line and (line.startswith(('Module[', 'if (globalScope)')) or line.endswith('["X"]=1;')): |
| 193 | finals.append(line) |
| 194 | return False |
| 195 | return True |
| 196 | |
| 197 | js = '\n'.join(line for line in js.split('\n') if process(line)) |
| 198 | post = '\n'.join(finals) + '\n' + post |