Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Quick question

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam
View previous topic :: View next topic  
Author Message
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Wed Jun 16, 2010 1:47 am    Post subject: Quick question Reply with quote

What is the grease-monkey script that automatically makes the text colored?
Back to top
View user's profile Send private message Send e-mail
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Wed Jun 16, 2010 1:48 am    Post subject: Reply with quote

Ask gogo.
_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Wed Jun 16, 2010 1:49 am    Post subject: Reply with quote

Thanks for not helping haxory'
Back to top
View user's profile Send private message Send e-mail
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Wed Jun 16, 2010 1:50 am    Post subject: Reply with quote

Ask gogodr, he wrote the script and he is more then willing to share it.

Good now? I mean, I'm trying here :<

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Wed Jun 16, 2010 1:51 am    Post subject: Reply with quote

oh, thought you were just telling me to ask him for no reason. Sorry mang =[
Back to top
View user's profile Send private message Send e-mail
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Wed Jun 16, 2010 1:52 am    Post subject: Reply with quote

Bud wrote:
oh, thought you were just telling me to ask him for no reason. Sorry mang =[


No prob bro.

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Noodlez
<3
Reputation: 1

Joined: 27 Oct 2007
Posts: 744
Location: Hyrule

PostPosted: Wed Jun 16, 2010 2:00 am    Post subject: Reply with quote

He be asleep./
Back to top
View user's profile Send private message Send e-mail
Vincent.
Grandmaster Cheater
Reputation: 16

Joined: 09 Nov 2007
Posts: 774

PostPosted: Wed Jun 16, 2010 6:29 am    Post subject: Reply with quote

// ==UserScript==
// @name adding text styling test
// @namespace http://forum.cheatengine.org/*
// @include *forum.cheatengine.org/*
// ==/UserScript==
var postButton = document.forms.namedItem("post").elements.namedItem("post");


function styling(){
var newmsg = "";
var oldmsg = "";
var postMessage = document.forms.namedItem("post").elements.namedItem("message");
var newmsgpos = 0;

if (postMessage.value.lastIndexOf("[/quote]") == -1){
newmsg = postMessage.value;
oldmsg = "";
}
else if (postMessage.value.lastIndexOf("[/quote]") != -1){
newmsgpos = postMessage.value.lastIndexOf("[/quote]");
newmsg = postMessage.value.substring(newmsgpos + Cool;
oldmsg = postMessage.value.substring(0,newmsgpos + Cool;
}



postMessage.value = oldmsg + " " + newmsg + " ";

}

postButton.addEventListener("click", styling, true);
Back to top
View user's profile Send private message
Haxory'
Grandmaster Cheater Supreme
Reputation: 92

Joined: 30 Jul 2007
Posts: 1900

PostPosted: Wed Jun 16, 2010 7:20 am    Post subject: Reply with quote

Code:
// ==UserScript==
// @name           adding text styling test
// @namespace      http://forum.cheatengine.org/*
// @include        *forum.cheatengine.org/*
// ==/UserScript==
var postButton = document.forms.namedItem("post").elements.namedItem("post");


function styling(){
var newmsg = "";
var oldmsg = "";
var postMessage = document.forms.namedItem("post").elements.namedItem("message");
var newmsgpos = 0;

 if (postMessage.value.lastIndexOf("[/quote]") == -1){
   newmsg = postMessage.value;
   oldmsg = "";
   }
 else if (postMessage.value.lastIndexOf("[/quote]") != -1){
   newmsgpos = postMessage.value.lastIndexOf("[/quote]");
   newmsg = postMessage.value.substring(newmsgpos + 8);
   oldmsg = postMessage.value.substring(0,newmsgpos + 8);
   }

   

   postMessage.value = oldmsg + "[color=darkblue][size=9] " + newmsg + " [/size][/color]";
 
}

postButton.addEventListener("click", styling, true);


fixed.

_________________
you and me baby ain't nothing but mammals so lets do it like they do on the discovery channel
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Random spam All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites