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);
}
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);
}