An open API service indexing awesome lists of open source software.

https://github.com/pshihn/no-more-script

One script to stop all other scripts
https://github.com/pshihn/no-more-script

Last synced: about 2 months ago
JSON representation

One script to stop all other scripts

Awesome Lists containing this project

README

        

# no-more-script

One script to stop all other scripts!

Once this script has loaded, any script loaded later will not run.

```html
console.log('inline 1');

console.log('inline 2');
setTimeout(() => {
const script = document.createElement('script');
script.src = './e.js';
document.head.appendChild(script);
}, 500);

```

Output:
```
// Output with no-more-script
inline 1
A
B

// Output without no-more-script
inline 1
A
C
inline 2
B
D
E
```