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
- Host: GitHub
- URL: https://github.com/pshihn/no-more-script
- Owner: pshihn
- License: mit
- Created: 2019-11-03T17:45:59.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-03T18:41:08.000Z (over 5 years ago)
- Last Synced: 2025-02-25T07:21:32.623Z (3 months ago)
- Language: TypeScript
- Size: 5.86 KB
- Stars: 1
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```