I found a snippet of Javascript online... that does exactly what I need to solve a problem. BUT I have not been able to get it to work without errors on Worpress.
The sni