Raymanpc.com scripts here! All for convenience.

For all things related to Pirate-Community and its websites.

Moderator: English moderators

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
Matt
Hunchman801 wrote:Je dis aux hommes : violez les femmes. D’ailleurs, je viole la mienne tous les soirs
Image
Hunchman801
Bad Rayman
Posts: 83848
Joined: Thu Aug 07, 2003 6:50 pm
Location: Paris, France
Contact:
Tings: 610019

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!
Image
Dimentio
Robot Gorille
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:
Image Jester of Dimensions, Pleasure to crowds, I..am..Dimentio! Aha ha ha, so fun... Image
Is me, the Dark, well organised and evil Dimension Lord. --> Image <--I wish I could use this as an ave. Made by Stan.
spiraldoor
Oumbr
Posts: 12391
Joined: Tue Jul 15, 2008 3:13 pm
Tings: 156595

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

Post by spiraldoor »

Using which account?
The Jonster
Joe
Posts: 34053
Joined: Sat Mar 24, 2018 6:15 am
Location: The realm of Mario Karting
Tings: 78205

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

Post by The Jonster »

I wonder where these scripts went?
Always be true to yourself.
Image
Sigs by Steo and R4Y_ANC3L
Steo
Globox
Posts: 33018
Joined: Sun Feb 25, 2018 3:57 pm
Location: Globox Village
Tings: 91547

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!
Image
FC: 40210 | CF: 103059 | BOM: 94388 | LOTLD: 120486 | DOTK: 110450 | LS: 40810 | SBTC: 99693 | HH: 100028 | TOTL: 100563

TOTAL: 809687
Post Reply