News:

As a consequence of the forum being updated and repaired, the chatbox has been lost.
However, you can still come say hi on our Discord server!

Main Menu

Cbox ringer

Started by jjppof, 30, May, 2014, 12:07:10 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

jjppof

Well. Its done in parts...
I just need to find something that makes this script run everytime goldensunhacking.net is open, but if you copy and paste the script in the browser javascript console its gonna run just for this page.


-------------------------- EDIT - 2 -----------------------

now the script has the fb msger box like. just click the Cbox title to decrease the box size.

the script is attached, cause this message system modifies the code.


-----------------------------------
EDIT:

100% working with tampermonkey (chrome).
If It works with tampermonkey, almost sure that also works with greasemonkey (firefox)


Daddy Poi's Oily Gorillas

Sounds like something that might work with GreaseMonkey! (Haven't tried your script yet.)

Thanks!
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

#2
Quote from: Teawater on 30, May, 2014, 12:08:34 AM
Sounds like something that might work with GreaseMonkey! (Haven't tried it yet.)

Thanks!

yeaaah... let me try the greasemonkey, well remembered!

------------------------------------------------------------
100% working with tampermonkey (chrome).
If It works with tampermonkey, almost sure that also works with greasemonkey (firefox)

Dont know in greasemonkey, but in tampermonkey when setting the match, put the url like this:
http://*.goldensunhacking.net/*
to get all pages


-----------------------------------------------------------

maybe, if you guys think is interesting, theres a way to make the cbox float in the page corner, like FB...

Luna_blade

Nice! I didn't know you also did other programming jjppof.
"Hear the sounds and melodies
Of rilets flowing down
They're the verlasting songs
Whispering all the time
As a warning that behind some rocks
There's a rigid grap even
Oreads fear the tread"

Daddy Poi's Oily Gorillas

#4
Tampermonkey? That sounds new(?) to me...

So now I shall see if I can get this to work... (It says it's running, but doesn't seem to do anything.. hmmm...)

Quotemaybe, if you guys think is interesting, theres a way to make the cbox float in the page corner, like FB...
Sounds useful!
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

#5
for who thinks the levelup sound is a bit exaggerated, here is another:
http://static1.grsites.com/archive/sounds/cartoon/cartoon008.mp3

------------------------------------------------

for those that wanna test the script before mess with grease/tampermonkey, just copy everything and paste at your browser javascript console. But its gonna work till you press F5.

-----------------------------------------------
Installing in chrome:

1- Install the tampermonkey:
https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo

2- Follow the image:


3- Enter in a gshc page and it is done, if I didnt miss any step  :happy:

Luna_blade

Wow dude nice tutorial.
"Hear the sounds and melodies
Of rilets flowing down
They're the verlasting songs
Whispering all the time
As a warning that behind some rocks
There's a rigid grap even
Oreads fear the tread"

Daddy Poi's Oily Gorillas

Quote from: METhanks! It works now!

Didn't even need the tutorial either? (Unless the bottom center text box actually needed editing.) I just simply needed to copy/paste the attachment you provided into the textbox.

There's still a design problem, though... I'm typing in the Quick Post box, and if my lines reach to the right,
the text goes behind the cbox, and I can't see what I'm typing?  (Unless you collapse the box, but not sure if that's worth doing everytime.)

There!
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

Quote from: Teawater on 30, May, 2014, 02:04:39 PM
Quote from: METhanks! It works now!

Didn't even need the tutorial either? (Unless the bottom center text box actually needed editing.) I just simply needed to copy/paste the attachment you provided into the textbox.

There's still a design problem, though... I'm typing in the Quick Post box, and if my lines reach to the right,
the text goes behind the cbox, and I can't see what I'm typing?  (Unless you collapse the box, but not sure if that's worth doing everytime.)

There!

you can put this:

conteudo.style.height = "0px";

just after this:

var conteudo = document.getElementById(document.querySelectorAll("[id*='shout_']")[0].id).parentNode;

With this, you set the cbox to start compressed in every page load.

Daddy Poi's Oily Gorillas

#9
@compressed: Not sure, but I think collapse might be a better word? (Just saying this in case you were looking for a proper word, but 'compressed' will do as well.)

What if I perfer it to keep it open? Would be somewhat difficult to see what people post if it's always collapsed, right?

(I was thinking a mod to change the width of the quick reply box would do.)
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

#10
Quote from: Teawater on 30, May, 2014, 10:41:08 PM
@compressed: Not sure, but I think collapse might be a better word? (Just saying this in case you were looking for a proper word, but 'compressed' will do as well.)
`

Yes, hahahahah... I was looking for it...

Quote from: Teawater on 30, May, 2014, 10:41:08 PM

What if I perfer it to keep it open? Would be somewhat difficult to see what people post if it's always collapsed, right?


The sound is there for it... just a suggestion too.

Quote
(I was thinking a mod to change the width of the quick reply box would do.)

Where's this hell? hahahaha

-----------------------

And by curiosity, which sound effect are you using? hahahahah

Daddy Poi's Oily Gorillas

>Yes, hahahahah... I was looking for it...
Good!

>The sound is there for it... just a suggestion too.
Okay... might would be a little cooler if the box re-opened when it makes the sound as well. (Or does it already?)

>Where's this hell? hahahaha
I was hoping that it would be a one-line snippet of code.

When I inspect the textbox element, I see this:
Quote<textarea cols="75" rows="7" style="width: 95%; height: 100px;" name="message" tabindex="1"></textarea>
Just need to edit that width, somehow? (And perhaps height, as well, since a taller box would be nicer, as well.)
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

#12
Quote from: Teawater on 30, May, 2014, 10:59:45 PM
>The sound is there for it... just a suggestion too.
Okay... might would be a little cooler if the box re-opened when it makes the sound as well. (Or does it already?)

making this now... nice idea

-------------edit-----------------
above:

playSound.playclip();

put:

if(conteudo.style.height == "0px"){
    conteudo.style.height = "245px";
}

Lord Wolfram

Can someone explain what is this Cbox ringer?
Still haven't understood...

Daddy Poi's Oily Gorillas

Simple. It's a userscript to improve the cbox. (By docking and auto-refreshing.)

To get it, you must get TamperMonkey, and install the attachment he has in his first post to it. (Then refresh the page.)
Golden Sun Docs: Broken Seal - The Lost Age - Dark Dawn | Mario Sports Docs: Mario Golf & Mario Tennis | Misc. Docs
Refer to Yoshi's Lighthouse for any M&L hacking needs...

Sometimes I like to compare apples to oranges. (Figuratively) ... They are both fruits, but which one would you eat more? (If taken literally, I'd probably choose apples.)
Maybe it is over-analyzing, but it doesn't mean the information is useless.


The only GS Discord servers with significance are:
Golden Sun Hacking Community
GS Speedrunning
/r/Golden Sun
GS United Nations
Temple of Kraden

Can you believe how small the Golden Sun Community is?

2+2=5 Don't believe me? Those are rounded decimal numbers. Take that, flat earth theorists! :)

jjppof

Teawater, here is the the code you asked for the quick reply textbox:


if(document.getElementById("quickReplyOptions") != null){
var textArea = document.getElementById("postmodify")[6];
textArea.style.width = "65%";
textArea.style.height = "200px";
var thingDelete = document.getElementById("quickReplyOptions").children[0];
thingDelete.remove();
document.getElementById("quickReplyOptions").children[0].align = "left";
}



Paste this before the first code line.


-------------------------------------------------------------

Everything I edit, I update the first topic