Discuss Scratch

CosmicSans
New Scratcher
100+ posts

Comic Sans Userscript

Yes, you read that correctly.

Here it is, feel free to use at your leisure! Give feedback please!

// ==UserScript==
// @name        Comic Sans Userscript
// @namespace   my namespace (lol)
// @include     http://*
// @include     https://*
// @version     1
// @grant       none
// ==/UserScript==
(function () {
  var head = document.getElementsByTagName ('head')[0];
  var sty = document.createElement ('style');
  sty.setAttribute ('type', 'text/css');
  
  if (sty.styleSheet) {
    sty.styleSheet.cssText = "body { font-family: \"Comic Sans MS\"!important; } ";
  } else {
    sty.appendChild (document.createTextNode
                    ("body { font-family: \"Comic Sans MS\"!important; } "));
  }
  head.appendChild (sty);
})();
MegaApuTurkUltra
Scratcher
1000+ posts

Comic Sans Userscript

Why not use GM_addStyle?

Or just make it a userstyle?

Last edited by MegaApuTurkUltra (Feb. 19, 2015 18:25:53)

CosmicSans
New Scratcher
100+ posts

Comic Sans Userscript

MegaApuTurkUltra wrote:

Why not use GM_addStyle?
oh… that saves a lot of code… I'll keep mine just because it's more verbose and looks like I did something of use
QuillzToxic
Scratcher
1000+ posts

Comic Sans Userscript

AHHHHHHHHHHHHHHHHHHH
Superdoggy
Scratcher
1000+ posts

Comic Sans Userscript

Hmm… I tried saving it as a CSS file and using it as my stylesheet but that didn't seem to work. Am I missing something?
CosmicSans
New Scratcher
100+ posts

Comic Sans Userscript

Superdoggy wrote:

Hmm… I tried saving it as a CSS file and using it as my stylesheet but that didn't seem to work. Am I missing something?
It's a userscript, meaning you either have to set it up with greasemonkey or inject it into the javascript console each time a page reloads. It's JS, not CSS
Superdoggy
Scratcher
1000+ posts

Comic Sans Userscript

CosmicSans wrote:

Superdoggy wrote:

Hmm… I tried saving it as a CSS file and using it as my stylesheet but that didn't seem to work. Am I missing something?
It's a userscript, meaning you either have to set it up with greasemonkey or inject it into the javascript console each time a page reloads. It's JS, not CSS
Oh. xD lol okay.
Zro716
Scratcher
1000+ posts

Comic Sans Userscript

best userscript ever 10/10
MegaApuTurkUltra
Scratcher
1000+ posts

Comic Sans Userscript

Zro716 wrote:

best userscript ever 10/10
Gr8 b8 m8 I str8 appreci8 no h8 IGN r8 360noscope/8

Zro716 wrote:

pot8oes gonna pot8
ftfy
CosmicSans
New Scratcher
100+ posts

Comic Sans Userscript

I just thought of something - even though I'm a horrible programmer, I can still do more programming than probably billions of people on planet Earth.
MrSherlockHolmes
Scratcher
500+ posts

Comic Sans Userscript

CosmicSans wrote:

I just thought of something - even though I'm a horrible programmer, I can still do more programming than probably billions of people on planet Earth.
Yep, I think you should help ScratchExt
MegaApuTurkUltra
Scratcher
1000+ posts

Comic Sans Userscript

CosmicSans wrote:

I just thought of something - even though I'm a horrible programmer, I can still do more programming than probably billions of people on planet Earth.
Wow! And I can Scratch better than billions of people! And I can be MegaApuTurkUltra better than billions of people! Amazing, right?
CosmicSans
New Scratcher
100+ posts

Comic Sans Userscript

MegaApuTurkUltra wrote:

CosmicSans wrote:

I just thought of something - even though I'm a horrible programmer, I can still do more programming than probably billions of people on planet Earth.
Wow! And I can Scratch better than billions of people! And I can be MegaApuTurkUltra better than billions of people! Amazing, right?
And I can exist better than infinite non-existent people!
MrSherlockHolmes
Scratcher
500+ posts

Comic Sans Userscript

CosmicSans wrote:

MegaApuTurkUltra wrote:

CosmicSans wrote:

I just thought of something - even though I'm a horrible programmer, I can still do more programming than probably billions of people on planet Earth.
Wow! And I can Scratch better than billions of people! And I can be MegaApuTurkUltra better than billions of people! Amazing, right?
And I can exist better than infinite non-existent people!
xD Your both incredible.
Firedrake969
Scratcher
1000+ posts

Comic Sans Userscript

MegaApuTurkUltra
Scratcher
1000+ posts

Comic Sans Userscript

Firedrake969 wrote:

oh god

http://prntscr.com/68ky8h
Wow that actually looks horribly annoying amazing amirite?
Photoguy77
Scratcher
100+ posts

Comic Sans Userscript

Firedrake969 wrote:

oh god

http://prntscr.com/68ky8h
Geez.
Sonickyle
Scratcher
1000+ posts

Comic Sans Userscript

Needs more Wingdings.
TheGamingStar
Scratcher
500+ posts

Comic Sans Userscript

YES.
theonlygusti
Scratcher
1000+ posts

Comic Sans Userscript

Sonickyle wrote:

Needs more Wingdings.
Indeed.

Powered by DjangoBB