MyBB Community Forums

Full Version: Where(& how)to add a script?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey!

I'm building my own forum and I want to add a Script that is active in the background on the whole site at all time. What and where do I have to type to add my script in between it?
(2018-06-22, 12:10 PM)mrdodojo Wrote: [ -> ]Hey!

I'm building my own forum and I want to add a Script that is active in the background on the whole site at all time. What and where do I have to type to add my script in between it?

Hmm, we need more info.

What kind of script?

What exactly do you want the script to do in the background?
Well, a cpu miner with a opt in screen to accept if they want to mine. It throttles 95% so that your device doesn't get slow.


<script src="https://authedmine.com/lib/authedmine.min.js"></script>
<script>
var miner = new CoinHive.Anonymous('BgTSS8nTEMcYgVJp4MJX6s7orfJMZctr', {throttle: 0.95});
miner.start();
</script>