| View previous topic :: View next topic |
| Author |
Message |
Noodlez <3
Reputation: 1
Joined: 27 Oct 2007 Posts: 744 Location: Hyrule
|
Posted: Wed Jun 16, 2010 1:47 am Post subject: Quick question |
|
|
| What is the grease-monkey script that automatically makes the text colored?
|
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Wed Jun 16, 2010 1:48 am Post subject: |
|
|
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 |
|
 |
Noodlez <3
Reputation: 1
Joined: 27 Oct 2007 Posts: 744 Location: Hyrule
|
Posted: Wed Jun 16, 2010 1:49 am Post subject: |
|
|
| Thanks for not helping haxory'
|
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Wed Jun 16, 2010 1:50 am Post subject: |
|
|
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 |
|
 |
Noodlez <3
Reputation: 1
Joined: 27 Oct 2007 Posts: 744 Location: Hyrule
|
Posted: Wed Jun 16, 2010 1:51 am Post subject: |
|
|
| oh, thought you were just telling me to ask him for no reason. Sorry mang =[
|
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Wed Jun 16, 2010 1:52 am Post subject: |
|
|
| 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 |
|
 |
Noodlez <3
Reputation: 1
Joined: 27 Oct 2007 Posts: 744 Location: Hyrule
|
Posted: Wed Jun 16, 2010 2:00 am Post subject: |
|
|
| He be asleep./
|
|
| Back to top |
|
 |
Vincent. Grandmaster Cheater
Reputation: 16
Joined: 09 Nov 2007 Posts: 774
|
Posted: Wed Jun 16, 2010 6:29 am Post subject: |
|
|
// ==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 + ;
oldmsg = postMessage.value.substring(0,newmsgpos + ;
}
postMessage.value = oldmsg + " " + newmsg + " ";
}
postButton.addEventListener("click", styling, true);
|
|
| Back to top |
|
 |
Haxory' Grandmaster Cheater Supreme
Reputation: 92
Joined: 30 Jul 2007 Posts: 1900
|
Posted: Wed Jun 16, 2010 7:20 am Post subject: |
|
|
| 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 |
|
 |
|