Page 1 of 1

Raymanpc.com scripts here! All for convenience.

Posted: Mon Oct 06, 2008 11:38 am
by Gamerking
Image

Hey the last couple of days I returned to Raymanpc, also in the last couple of days I have been bored and have written some scripts to assist in every day duties you will preform on this site so if you are using Opera download and enjoy some convenience.

Script one:

A basic script that adds Hunch style banner to the beginning and end of every post once you have edited the file and added your unique image url.

Script two:

Mainly for people learning french ie. myself - it will add a tiny button that won't get in your way at the bottom of the web browser everytime you enter Raymanpc.com. Once clicked the button will open up the page you are on in a translator as of now all it does is from French to english. With very little Javascript knowledge you can also edit that script to add a translation button whenever you visit a french website you have marked.

Script one: (save as [whatever].js

Code: Select all

function backgroundToGreen(){
  if( location.hostname.indexOf('raymanpc.com') != -1 ) {
var x = document.getElementById('message').value;
if(x == ''){
document.getElementById('message').value="[img][IMAGE URL HERE][/img] \n \n \n[img][IMAGE URL HERE][/img]";
}else
{
document.getElementById('message').value="[img][IMAGE URL HERE][/img] \n\n" + x + "\n\n[img][IMAGE URL HERE][/img]";
}
}
}
window.onload=backgroundToGreen;

if (window.addEventListener)
{
    window.addEventListener("load", backgroundToGreen, false);
}
else if (window.attachEvent)
{
    window.attachEvent("onload", backgroundToGreen);
}

Scripttwo (save as [whatever].js

Code: Select all

function jumper(){
var x = document.location;
document.location = 'http://babelfish.yahoo.com/translate_url?doit=done&tt=url&intl=1&fr=bf-res&trurl=' + escape(x) + '&lp=fr_en&btnTrUrl=Translate';
}


function button() {
window.opera.defineMagicVariable('bar', function() {}, null);

if( location.hostname.indexOf('raymanpc.com') != -1 ) {

        var ary = document.createElement('input');

	ary. type="submit";
	ary. value="Translate"
	ary.onclick="jumper()"        
	ary.style.position = 'fixed';

        ary.style.bottom = '0px';

        ary.style.left  = '45%';

        ary.style.width = '5%';

	//ary.style.opacity = '.100';

	ary.style.filter = 'alpha(opacity=60)';

        ary.style.border = '1px dotted #f30';

        ary.style.padding = '3px';

        ary.style.font = '8pt sans-serif';
	

        document.body.appendChild(ary);

    	}

}

if (window.addEventListener)
{
    window.addEventListener("load", button, false);
}
else if (window.attachEvent)
{
    window.attachEvent("onload", button);
}

Enjoy your script everyone please leave feedback. The scripts aren't overly complicated by design so don't expect a million bells and whistles ;)

Image

Re: Raymanpc.com scripts here! All for convenience.

Posted: Mon Oct 06, 2008 2:24 pm
by Hunchman801
Excellent work, Matt. They're both working and I'm already using the first one. I love how the second one tries to translate English sentences... to English:
Talk butt EVERYTHING drank Rayman!

Re: Raymanpc.com scripts here! All for convenience.

Posted: Sat May 30, 2009 6:29 pm
by Dimentio
Btw Hunch, I have a couple of PMs for you. :wink:

Re: Raymanpc.com scripts here! All for convenience.

Posted: Sat May 30, 2009 8:28 pm
by spiraldoor
Using which account?

Re: Raymanpc.com scripts here! All for convenience.

Posted: Fri Aug 10, 2018 11:57 pm
by The Jonster
I wonder where these scripts went?

Re: Raymanpc.com scripts here! All for convenience.

Posted: Thu Aug 30, 2018 8:40 am
by Steo
The Jonster wrote:I wonder where these scripts went?
You mean the ones in the first post that are still there? :lol:

Should've gone to Specsavers :P

Also, this thread was 9 years old!