Execute Code in Divi only outside of the Visual Builder

To execute Code in Divi only when the Visual Builder is NOT enabled simply wrap it in the following if function:

if($("#wp-admin-bar-et-disable-visual-builder").length == 0 && window.location != "about:blank"){
//your code here
}