
Well, y'know that Neigh april fools joke? I've been thinking, why don't I just make a userscript for it? So, I'm going to. It's gonna look for the code on the scratch site that has the img tag for the scratch logo, and replace it with the Neigh code. Does it sound like it'll have a security issue?
NOTE: I don't claim that I own this image or have made it.
Last edited by gbear605 (2012-05-17 15:52:37)
Offline
gbear605 wrote:
Well, y'know that Neigh april fools joke? I've been thinking, why don't I just make a userscript for it? So, I'm going to. It's gonna look for the code on the scratch site that has the img tag for the scratch logo, and replace it with the Neigh code. Does it sound like it'll have a security issue?
No security issues. Just make sure people can't use XSS and hidden JavaScript with it.
Offline
Well, it's currently far too large (I need to edit the image), but it works. You have to use two different userscripts.
Code:
// ==UserScript==
// @name Neigh! Enabler Main
// @namespace gbear605
// @description change the scratch logo to the Neigh! logo
// @include http://scratch.mit.edu/*
// @version 1.0
// ==/UserScript==
var bodyInner = document.body.innerHTML;
var replaceOne = bodyInner.replace('<a href="/"></a>', "<img src='http://i.imgur.com/9vB5r.png' />");
document.body.innerHTML = replaceOne;// ==UserScript==
// @name Neigh! Enabler Forum
// @namespace gbear605
// @description change the scratch logo to the Neigh! logo
// @include http://scratch.mit.edu/*
// @version 1.0
// ==/UserScript==
var bodyInner = document.body.innerHTML;
var replaceOne = bodyInner.replace('<a href="/">Scratch</a>', "<img src='http://i.imgur.com/9vB5r.png' />");
document.body.innerHTML = replaceOne;Last edited by gbear605 (2012-05-17 06:58:03)
Offline
Edited with the new image. New code here:
Main Site:
// ==UserScript==
// @name Neigh! Enabler Main
// @namespace gbear605
// @description change the scratch logo to the Neigh! logo
// @include http://scratch.mit.edu/*
// @version 1.0
// ==/UserScript==
var bodyInner = document.body.innerHTML;
var replaceOne = bodyInner.replace('<a href="/"></a>', "<img src='http://i.imgur.com/i6awL.png' />");
document.body.innerHTML = replaceOne;Forum:
// ==UserScript==
// @name Neigh! Enabler Forum
// @namespace gbear605
// @description change the scratch logo to the Neigh! logo
// @include http://scratch.mit.edu/forums/*
// @version 1.0
// ==/UserScript==
var bodyInner = document.body.innerHTML;
var replaceOne = bodyInner.replace('<a href="/">Scratch</a>', "<img src='http://i.imgur.com/i6awL.png' />");
document.body.innerHTML = replaceOne;For the full experience, add both.
On website (grab both):
http://escratch.org/Neigh!/Forums/.user.js
http://escratch.org/Neigh!/Main%20Site/.user.js
Last edited by gbear605 (2012-05-17 14:54:42)
Offline
This script will also change the text in the forums!
// ==UserScript==
// @name Neigh Translator Forums
// @namespace HD123
// @description change any appearance of Scratch to Neigh
// @include http://scratch.mit.edu/forums/*
// @version 1
// ==/UserScript==
var bodyInner = document.body.innerHTML;
var rep = bodyInner.replace('Scratch', 'Neigh');
rep = rep.replace('Scratcher', 'Pony');
rep = rep.replace('scratcher', 'pony');
rep = rep.replace('everyone', 'everypony');
rep = rep.replace('everybody', 'everypony');
rep = rep.replace('Everyone', 'Everypony');
rep = rep.replace('Everybody', 'Everypony');
rep = rep.replace('someone', 'somepony');
rep = rep.replace('somebody', 'somepony');
rep = rep.replace('Someone', 'Somepony');
rep = rep.replace('Somebody', 'Somepony');
rep = rep.replace('anyone', 'anypony');
rep = rep.replace('anybody', 'anypony');
rep = rep.replace('Anyone', 'Anypony');
rep = rep.replace('Anybody', 'Anypony');
rep = rep.replace('facepalm', 'facehoof');
rep = rep.replace('Facepalm', 'Facehoof');
rep = rep.replace('Kaj', 'Discord');
rep = rep.replace('kaj', 'discord');
rep = rep.replace('yes', 'eeyup');
rep = rep.replace('Yes', 'Eeyup');
rep = rep.replace('computer', 'toaster');
rep = rep.replace('Computer', 'Toaster');
rep = rep.replace('troll', 'parasprite');
rep = rep.replace('Troll', 'Parasprite');
rep = rep.replace('trolling', 'paraspriting');
rep = rep.replace('Trolling', 'Paraspriting');
rep = rep.replace('only', 'ponly');
rep = rep.replace('Only', 'Ponly');
rep = rep.replace('nobody', 'nopony');
rep = rep.replace('Nobody', 'Nopony');
document.body.innerHTML = rep;Offline
I might use these

Offline
gbear605 wrote:
http://i.imgur.com/i6awL.png
Well, y'know that Neigh april fools joke? I've been thinking, why don't I just make a userscript for it? So, I'm going to. It's gonna look for the code on the scratch site that has the img tag for the scratch logo, and replace it with the Neigh code. Does it sound like it'll have a security issue?
NOTE: I don't claim that I own this image or have made it.
are you gonna replace the default scratch cat to niegh when you oper sds 2.0 if you are then you are so cool i always wanted to use niegh instead of the boreing scratch cat
Offline