This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2012-05-17 06:38:47

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Neigh!

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.

Last edited by gbear605 (2012-05-17 15:52:37)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#2 2012-05-17 06:42:57

nathanprocks
Scratcher
Registered: 2011-04-14
Posts: 1000+

Re: Neigh!

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.


http://carrot.cassiedragonandfriends.org/Scratch_Signature/randomsig.php
http://trinary.site40.net/images/scratchrank.php?username=nathanprocks&display=small

Offline

 

#3 2012-05-17 06:52:18

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Neigh!

Well, it's currently far too large (I need to edit the image), but it works.  You have to use two different userscripts.
Code:

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;

Code:

// ==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)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#4 2012-05-17 14:50:42

gbear605
Scratcher
Registered: 2008-03-06
Posts: 1000+

Re: Neigh!

Edited with the new image.  New code here:
Main Site:

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/i6awL.png' />");
document.body.innerHTML = replaceOne;

Forum:

Code:

// ==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)


Yeah, I'm mostly inactive.  I check in once in a while though.  If you want to contact me, I have a contact form at my website, http://escratch.org

Offline

 

#5 2012-05-28 08:28:06

HD123
Scratcher
Registered: 2009-12-05
Posts: 500+

Re: Neigh!

This script will also change the text in the forums!

Code:

// ==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;

~~HD123~~
Treat others as you want to be treated. |  big_smile  | http://i.imgur.com/OaNrY.gif | http://blocks.scratchr.org/libstatus.php?user=HD123&amp;online=http://lemonfanatic.webs.com/ONLINE.png&amp;offline=http://lemonfanatic.webs.com/OFFLINE.png

Offline

 

#6 2012-05-28 08:44:49

funelephant
Scratcher
Registered: 2010-07-02
Posts: 1000+

Re: Neigh!

I might use these  smile


nicki begs to differ
http://24.media.tumblr.com/ab0e6e8fd347c5e39c2821bcab9d16e6/tumblr_mgu35sui1L1rfb7aqo2_500.gif

Offline

 

#7 2012-05-28 08:49:15

jvvg
Scratcher
Registered: 2008-03-26
Posts: 1000+

Re: Neigh!

Doing a string replace on the body's innerHTML can cause major problems. I would be careful with that.


http://tiny.cc/zwgbewhttp://tiny.cc/e1gbewhttp://tiny.cc/zygbewhttp://tiny.cc/izgbew
Goodbye, Scratch 1.4  sad                                                        Hello Scratch 2.0!  smile

Offline

 

#8 2012-07-23 11:07:02

legoboy09
Scratcher
Registered: 2012-03-28
Posts: 43

Re: Neigh!

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  big_smile

Offline

 

Board footer