Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Monchomans chat hacks */
- importScriptPage('User:Monchoman45/ChatHacks.js', 'c');
- importScriptPage('User:Joeytje50/ChatPMs.js', 'c');
- {
- $("input[type=submit]").css("display","inline")
- $("input[type=submit]").click(function(){
- e = jQuery.Event("keypress")
- e.which = 13 // enter key
- $('textarea[name=message]').keypress(function(){}).trigger(e)
- })
- }
- //LMGTFY Chat script
- //By Princess Platinum
- $('[name="message"]').keypress(function (e) {
- if (e.which == 13) {
- var test = "/lmgtfy";
- if (this.value.indexOf(test) > -1) {
- var query = this.value.replace('/lmgtfy ', '');
- var query = query.replace(/ /g, "+");
- this.value = "http://www.lmgtfy.com/?q=" + query
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement