Author Topic: Blockland Greasemonkey Scripts  (Read 40965 times)

jquery?

isn't that for like data saving?

would you even need that for simply replacing a elements with youtube embed codes?
You don't know what jQuery is?

It works like this.

Code: [Select]
function handleAll() {
// Relinks the forum header.
$("img.logoLink").parent().attr('href', 'http://forum.blockland.us/');
}

http://jquery.com/

i really don't feel like bothering with that, maybe i'll just make my own script for personal use or something.

P.S. Wedge, I made it so the banner links to the main forum page in the script now.
Works great, although clicking it when you're at http://forum.blockland.us/ seems to still link to the home page. It might seem odd to click the logo again if you're already at the forum index but the logo should probably behave consistently and I imagine it's just a simple problem with the link used in the file or something.

What would you expect it to do at the home page? That's how most forums operate. The existing "Home" button does the same thing.

As I recall, on most other forums it works as a refresh button on the index page by directing you to the main page (which you're already on). It's a pretty minor thing though.

Okay, this is really odd. The bottom of the page seems to be getting cut off when I view this page: http://forum.blockland.us/index.php?topic=182771.0
Happened here too: http://forum.blockland.us/index.php?topic=182753

I'm wondering if it's anything I did? I'm pretty sure I'm running the default script, except I went back and emptied the blacklist by unignoring people from their profiles.
« Last Edit: January 20, 2012, 10:26:43 PM by Wedge »



eeyup.

oh hell i just had an idea

automatic quoted image snipping/resizing

...someone else do it javascript is stupid and annoying

« Last Edit: January 20, 2012, 10:44:59 PM by Wedge »

I like the direction this thread took.

Here's an old post of mine that has a script for stripping out large numbers and colors.
http://forum.blockland.us/index.php?topic=103197.0

I stopped using it because I'd like to be able to specify an upper and lower bound for text (so people can still use large/small fonts for emphasis and de-emphasis, but reducing all the size 72 words to 24 max).

i fixed some issues with the video embedding, iban can take care of anything else that needs to be taken care of.

http://pastebin.com/ma0w71X5

basic probably buggy youtube embedding.

test:
http://www.youtube.com/watch?v=w96QLJ5Byq8&feature=g-u-u&context=G25fa997FUAAAAAAAGAA
Wow thats cool. If I click play on your video and then click play on the quoted video, the quoted one doesn't work though. Also you should make it so there is a fullscreen button instead of the watch later. I always fullscreen unless its just music.
EDIT: After editing the video turns back to text too.
« Last Edit: January 20, 2012, 10:56:28 PM by Tylale »

i can't really change anything in the youtube video module itself, i can only change the embedding around it.

also, i don't know about that "the quoted one doesn't work" issue, since i have all of the videos on this page playing right now giving me a headache, lol.
« Last Edit: January 20, 2012, 10:58:12 PM by Kingdaro »

i can't really change anything in the youtube video module itself, i can only change the embedding around it.

also, i don't know about that "the quoted one doesn't work" issue, since i have all of the videos on this page playing right now giving me a headache, lol.
Does this help at all?
fs
Values: 0 or 1. Default is 0. Setting to 1 enables the fullscreen button in the embedded player and does not affect the chromeless player. The fullscreen option will not work if you load the YouTube player into another SWF. Note that you must include some extra arguments to your embed code for this to work. The bold text in the following example is required to enable fullscreen functionality:
Code: [Select]
<object width="425" height="344">
<param name="movie" value="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"</param>
<param name="allowFullScreen" value="true"></param>
<param name="allowScriptAccess" value="always"></param>
<embed src="http://www.youtube.com/v/u1zgFlCw8Aw?fs=1"
  type="application/x-shockwave-flash"
  allowfullscreen="true"
  allowscriptaccess="always"
  width="425" height="344">
</embed>
</object>