User:Nx/Scripts/Botwarn.js

if (typeof nx_bw_strict == 'undefined') nx_bw_strict = false;

function Botwarn { var textbox = document.getElementById('wpTextbox1'); if (!textbox) { return false; } if (wgUserGroups != null && wgUserGroups.indexOf("bot") != -1 ) {   if (wgPageName.indexOf("talk:") != -1 || (nx_bw_strict && wgPageName.substring(0,5+wgUserName.length) != "User:" + wgUserName)) {     var warn = document.createElement("span"); var prev = document.getElementById("wikiPreview"); warn.innerHTML = "You are a bot! "; if (prev) {       prev.parentNode.insertBefore(warn,prev); }   }  } }

addOnloadHook(Botwarn);