Raymanpc.com scripts here! All for convenience.

For all things related to Pirate-Community and its websites.
Forum rules
Please keep the forum rules and guidelines in mind when creating or replying to a topic.
Post Reply
Gamerking
Tribelle
Posts: 139
Joined: Fri Jul 14, 2006 1:23 pm
Tings: 288

Raymanpc.com scripts here! All for convenience.

Post 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
Hunchman801
Bad Rayman
Posts: 87621
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 640217

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

Post 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!
Dimentio
Gorilla Pirate
Posts: 206
Joined: Fri May 22, 2009 10:28 pm
Location: 4 Dimentional Reality
Tings: 1045

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

Post by Dimentio »

Btw Hunch, I have a couple of PMs for you. :wink:
spiraldoor
Umber
Posts: 12392
Joined: Tue Jul 15, 2008 3:13 pm
Tings: 156600

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

Post by spiraldoor »

Using which account?
The Jonster
Magician
Posts: 40789
Joined: Sat Mar 24, 2018 6:15 am
Location: The realm of Mario Karting
Tings: 51035

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

Post by The Jonster »

I wonder where these scripts went?
Steo
Holly Luya
Posts: 36334
Joined: Sun Feb 25, 2018 3:57 pm
Location: Globox Village
Tings: 100545

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

Post 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!
Post Reply