@moquyun/proxy
Version:
Multi-user & multi-env web debugging proxy based on whistle
30 lines (26 loc) • 817 B
Plain Text
``` whistle.nohost/inject.html
<script>
(function() {
if (typeof window === 'undefined' || !window || window.self !== window.top
|| window.__whistle_nohost_from_imweb_is_inited__) {
return;
}
window.__whistle_nohost_from_imweb_is_inited__ = true;
var head = document.head || document.getElementsByTagName('head')[0] || document.documentElement;
var script = document.createElement('script');
script.async = true;
script.charset = 'utf8';
script.src = '/.whistle-path.5b6af7b9884e1165/whistle.nohost/button.js';
if (head.firstChild) {
head.insertBefore(script, head.firstChild);
} else {
head.appendChild(script);
}
})();
</script>
```
``` whistle.nohost/none.html
<script>
window.__whistle_nohost_from_imweb_is_inited__ = true;
</script>
```