Author Topic: Blockland Javascript Scripts V2 - New Scripts Directory!  (Read 12650 times)

Scripts Directory (work in progress and a temporary domain name)


Creation
if you want a script to be up here first you have to actually make it (derp) and then make a link for the .user.js download or source. i'm going to make a scripts directory that will be your submission source.

tampermonkey has a built-in editor but it blows stuff so I recommend Aptana Studio 3, which can basically catch any handicapped errors you may make.

general purpose editors like notepad++ or sublime text are also good options.


hao2javascript
https://developer.mozilla.org/ --how i learned
http://www.codecademy.com/#!/exercises/0 --really good step by step interactive tutorial


Usage
Quote from: MyGamerCard.net
Running Userscripts is easy, but you may require some setup to be able to install them:

Google Chrome allows native runtime of Userscripts; just click and go! You can remove Userscripts via the 'Extensions' tab.

Mozilla Firefox requires the Greasemonkey plugin before using this script.

Apple Safari's version 5 allows the installation of the NinjaKit extension (Click 'NinjaKit for Safari').

Opera is also native, but requires some setup. See 'Adding User JavaScripts' for more details, then download the script to the directory you specify.

Microsoft Internet Explorer is unfortunately left out of the party. With no native support for userscripts, and no development on addons for years (and only for earlier versions) means no automatic Leaderboards for now. :(
« Last Edit: April 17, 2012, 03:29:58 PM by Kingdaro »



Can I make a request?

I want a script that will automatically resize any embedded images that are over a certain size so I won't have to worry about page stretch on my tiny laptop monitor.

You need to fix the YouTube script. Any links to a YouTube channel redirect you to YouTube's main page.
« Last Edit: January 21, 2012, 03:06:08 PM by dkamm65 »

Can I make a request?

I want a script that will automatically resize any embedded images that are over a certain size so I won't have to worry about page stretch on my tiny laptop monitor.

oh wow definitely this

nice idea

I am using tampermonkey
how do blacklist websites and permit for only threads
i still have the problem with automatically being redirected to youtube

I made a script that makes all transparent text visible. Does that count?
No.

Can I make a request?

I want a script that will automatically resize any embedded images that are over a certain size so I won't have to worry about page stretch on my tiny laptop monitor.

What's your resolution?
« Last Edit: January 21, 2012, 03:12:52 PM by Club559 »

Also for editor I recommend VIM.

I made a script that makes all transparent text visible. Does that count?
No.

How about a script that makes all <10pt text become 10pt.

What's your resolution?

1366x768, but I keep Chrome windowed so my actual screen space is close to 1100 pixels wide.

EDIT: forget double post. Sorry about that.

How about a script that makes all <10pt text become 10pt.
There's an option in Firefox which defaults all font to something you set it to. But it'll make nicely formatted pages look less nice.

What's your resolution?
Pretty sure 800 width will always be a good size to scale down to. (aside from mobile devices which can't use these scripts anyways)

How about a script that makes all <10pt text become 10pt.
I have a stuffty script I made a long time ago that does this, it probably needs some work though:
http://forum.blockland.us/index.php?topic=103197.0

What's your resolution?
Just flat out letting people pick a resolution and then shrinking images that exceed it is a good starting point.

I think that a more robust version should probably shrink all images to 640x480, then set it so that clicking on an image brings it up at full size in some kind of light box. You'll also need to find some way to preserve images that link to another website, maybe by putting a little chain icon in the corner that directs to the site or something.

How about a script that makes all <10pt text become 10pt.

Alright.
Testing.
Will post when finished.


Nevermind. Just use his.
I have a stuffty script I made a long time ago that does this, it probably needs some work though:
http://forum.blockland.us/index.php?topic=103197.0
« Last Edit: January 21, 2012, 03:25:53 PM by Club559 »

Can I make a request?

I want a script that will automatically resize any embedded images that are over a certain size so I won't have to worry about page stretch on my tiny laptop monitor.

You need to fix the YouTube script. Any links to a YouTube channel redirect you to YouTube's main page.
Definitely an image resizer.  IMO, if it stretches 1024x768, it's too much.  So make the max like 900 pixels wide I think.

Clicking to expand it to full size would be neato too.

Can I make a request?

I want a script that will automatically resize any embedded images that are over a certain size so I won't have to worry about page stretch on my tiny laptop monitor.

You need to fix the YouTube script. Any links to a YouTube channel redirect you to YouTube's main page.
it's whitelisted to only forum topics, you need to put in http://forum.blockland.us/index.php?topic=* because this will happen if the script can access all areas of-

wait i'm stupid chrome doesn't read greasemonkey whitelists


brb
Definitely an image resizer.  IMO, if it stretches 1024x768, it's too much.  So make the max like 900 pixels wide I think.

Clicking to expand it to full size would be neato too.
this feature can be found in my css theme Blockland Light, but since that's 1000px wide, i guess I could do that.

and since you can get the window length with javascript too.

fixed, put in an actual check to see if it's on a topic for non-tampermonkey/greasemonkey users
« Last Edit: January 21, 2012, 03:28:07 PM by Kingdaro »