User:Cap123/ChatHacks2.js

/* Import Relevant Javascript Pages */` importArticles({   type: "script",    article: "User:Cap123/LTP.js" }); importArticles({   type: "script",    article: "User:Cap123/Sactage.js" }); /* Set the Variables */ var ch = getElementByTag('textarea'); var command = '/'; var ltp = 'confirm("Are you sure you want to clear your LTP protocol cache?");'; /* Begin the if statements */ if (ch == command + 'clearusers') { clear; } else if (ch == command + 'plugin' + ' ' + 'opt') { openOptions; } else if (ch == command + 'help') { alert('Help Center\n\nType in /credits for the Credits\nType in /clearusers to Clear the users\nType in /plugin opt to get the Options Window by Sactage.\nMore Coming Soon!'); } else if (ch == command + 'clearltp') { ltpcache; } else if (ch == command + 'credits') { alert('Credits!\n\nProgrammed By Cap123\n19:20 10/05/13'); } else { return; } function ltpcache { if (ltp == true) { alert('Cache Cleared!'); } else { alert('Cache Clearing Aborted!'); } }; document.write(' '); getElementById('cap123ch').innerHTML = 'Chat Hacks v2.0 By Cap123 ';