User talk:Phlip/Greasemonkey

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(AdMuncher Install Issues)
m (Egh...)
Line 79: Line 79:
::<s>Nope. I only have the script that allows it to be viewed 'full-screen'. {{User:NFITC1/sig}} 22:34, 16 August 2006 (UTC)</s>
::<s>Nope. I only have the script that allows it to be viewed 'full-screen'. {{User:NFITC1/sig}} 22:34, 16 August 2006 (UTC)</s>
::Nevermind. Turns out that they were both conflicting and I was misinterpreting the second error message. Thanks! {{User:NFITC1/sig}} 22:40, 16 August 2006 (UTC)<br><br>
::Nevermind. Turns out that they were both conflicting and I was misinterpreting the second error message. Thanks! {{User:NFITC1/sig}} 22:40, 16 August 2006 (UTC)<br><br>
-
Just as a side-note for people who run into the same problem I did: if you use a program that blends its own Javascript functions into every page you load (mainly found in ad-munching software, like Ad Muncher), make sure you disable it BEFORE installing the Greasemonkey script.  Otherwise the extra code might break it, requiring you to clear your cache and install it again with the filters disabled. {{User:MNGoldenEagle/sig}} 14:24, 28 September 2006 (UTC)
+
Just as a side-note for people who run into the same problem I did: if you use a program that blends its own Javascript functions into every page you load (mainly found in ad-munching software, like Ad Muncher), make sure you disable it BEFORE installing the Greasemonkey script.  Otherwise the extra code might break it, requiring you to clear your cache and install it again with the filters disabled. [[User:MNGoldenEagle|MNGoldenEagle]] 14:24, 28 September 2006 (UTC)
== HOW THE HECK!?!?!?!?! ==
== HOW THE HECK!?!?!?!?! ==

Revision as of 01:25, 29 September 2006

Release notes

Version 1.0 (8 Mar, 2006)

  • First released version.
  • Had the fullscreen, seek bar, prev/next and wiki link features.
  • Worked only on the main site.

Version 2.0 (26 May, 2006)

  • Added the preferences menu.
  • Added support for Videlectrix and the HRWiki mirror.
  • Added "outside the frame", April Fools and plain HTML navbar options.

Version 2.1 (8 Aug, 2006)

  • Tooltips in the preferences box.
  • The "more better" rando link is now always on... the less better version was just ugly, so I removed it.
  • You can set what types of toon are included in the rando selection.
  • You have the option to make it check if the next sbemail/whatever actually exists before putting the "next" link (so there's no "next" link on the latest email).
    • The only reason this wasn't there before is that it means an extra hit to the H*R servers... but now that I have the preferences things set up, so you can turn it on or off, I think that's fine.

Version 3.0 (29 Aug, 2006)

  • Added subtitling functionality.
  • Updating no longer requires uninstalling the previous version.

Version 3.1 (27 Sep, 2006)

  • Whether to show the names next to subtitles is now a distinct setting from the one for colours - you can have neither, either or both.
  • There is a button that will purge the local cache for all subtitles-related files downloaded from the wiki and reload the page, for when the cache is out of date.
  • The ability to update the test subtitles without refreshing the page for every change (NB: disabled by default, see below).
  • Rewind and fast forward buttons on the seek bar to go to the first/last frame, respectively.
  • Flash loading progress bar on the seek bar (see how much it's loaded).

Contents

Suggestion

Would it make sense to change line 272 to

		addHRWikiLink("Index_Page");

Then I suppose line 261 could be removed. By the way, amazing work Phlip. -- Tom 17:25, 7 March 2006 (UTC)

I suggest that the games on videlectrix.com should be added, such as

http://www.videlectrix.com/duckguard1.html
http://videlectrix.com/duckguard1.html
http://www.videlectrix.com/racewalk.html
http://videlectrix.com/racewalk.html
http://www.videlectrix.com/hallrunner.html
http://videlectrix.com/hallrunner.html
http://www.videlectrix.com/lcd_game.html
http://videlectrix.com/lcd_game.html
http://www.videlectrix.com/thydungeonman2.html
http://videlectrix.com/thydungeonman2.html

And yeah, you rock. Libertyernie 16:32, 8 April 2006 (UTC)

Hmm, that's a good point... I'll get on that sometime (probably tomorrow). --phlip TC 16:37, 8 April 2006 (UTC)
The reason I thought of this was because I realized the Pause button on the seekbar can be used for skipping a level in Duck Guardian. Libertyernie 21:47, 12 April 2006 (UTC)

Homestar-Fullon Edit

Using the user script I was getting a scrollbar on every page, so I edited line 411 from

var dh = window.innerHeight - 10;

to

var dh = window.innerHeight - 20;

This kept all the content in the window, but I didn't have to scroll down to see the navbar at the bottom. Did this happen to anyone else? Consonance 08:39, 23 June 2006 (UTC)

Not me. Works perfectly for me. --Y2K (15px-Crystal_Clear_app_xchat.png15px-Crystal_Clear_app_kedit.png15px-Crystal_Clear_app_email.png) 03:04, 14 July 2006 (UTC)

Eventual to-do list

(in no particular order)

  • Done General cleanup of the code.
  • Done Work on Videlectrix.
  • Done Work on the mirrors (kitkorp (not needed with Tom working on completing the HRWiki mirror) and HRWiki).
  • Done Some way of turning various features on and off maybe?
  • Done replace the navbar with text links (this is more for me than for you guys).
  • Done resize the seek bar when the toon resizes (if you resize the window)
  • Done show outside-the-frame stuff

Feel free to add suggestions. --phlip TC 21:38, 9 April 2006 (UTC)

I've got one. You could try "flipping the whole page upside down". You know, using the flipped navbar, too. And putting the navbar above the flipped toon/game.
Also, you could try adding A-B repeat to the seek bar, if you know enough to do that. Preferably make it a seperate sub-option in the prefs, too.
Totally not getting old, Y2K (15px-Crystal_Clear_app_xchat.png15px-Crystal_Clear_app_kedit.png15px-Crystal_Clear_app_email.png) 22:57, 5 June 2006 (UTC)

Errors in installing

I keep getting this error:

Error installing user script:

[Exception... "Compoment returned failure code: 0x804b000a [nsIIOService.newChannel]" nsresult: "0x804b000a (<unknown>)" location: "JS frame :: chrome://strongbademailsprevnext/content/browser.xul :: getContents :: line 20" data: no]

Any suggestions? —NFITC1talk 07:56, 16 August 2006 (UTC)

"strongbademailsprevnext"? I'm guessing you have this extension installed? You might want to uninstall that... this script does that stuff too. --phlip TC 08:01, 16 August 2006 (UTC)
Nope. I only have the script that allows it to be viewed 'full-screen'. —NFITC1talk 22:34, 16 August 2006 (UTC)
Nevermind. Turns out that they were both conflicting and I was misinterpreting the second error message. Thanks! —NFITC1talk 22:40, 16 August 2006 (UTC)

Just as a side-note for people who run into the same problem I did: if you use a program that blends its own Javascript functions into every page you load (mainly found in ad-munching software, like Ad Muncher), make sure you disable it BEFORE installing the Greasemonkey script. Otherwise the extra code might break it, requiring you to clear your cache and install it again with the filters disabled. MNGoldenEagle 14:24, 28 September 2006 (UTC)

HOW THE HECK!?!?!?!?!

HOW DID YOU MAKE THIS!?!?! TheThin 00:36, 18 September 2006 (UTC)

Phlip has studied necromancy and sorcery for many years now. Other than that, it's a good diet, exercise, and a modicum of good fortune. Qermaq - (T/C) Image:Qermaqsigpic.png 00:44, 18 September 2006 (UTC)
Phlip has access to both a monkey and a typewriter, so it really was only a matter of time. — It's dot com 00:46, 18 September 2006 (UTC)
No, no, no... I sold my soul to Haxxina, ancient Greek goddess of programming and ruler of the underworld. In return She gave me the ability to write this script as my superpower. Just don't make me say my name backwards minus the first 'P' and we should be fine. --phlip TC 00:52, 18 September 2006 (UTC)
We'll be out a free lunch special? Qermaq - (T/C) Image:Qermaqsigpic.png 00:58, 18 September 2006 (UTC)

Refresh Subtitles

OK, this feature will need some explaining... First, go Tools→Manage User Scripts, click on "Homestar All-in-one" and click "Edit". If it asks you to choose a text editor, just pick Notepad unless you have something better. It'll look ugly in Notepad (it doesn't recognise the line endings) but it'll work. Now search for if (settings.testsubs && false) and change it to if (settings.testsubs && true). Now you can use the feature. First you have to turn on "Test subtitles" and hit "Save and apply" as usual, but the next time after the page loads there'll be a "Refresh Subtitles" button below the text area, that re-parses the subtitles without reloading the page - invaluable to subtitle authors.

The reasons the option's not avaliable by default are:

  • The interface is clumsy... sometimes the button's there, sometimes it's not there... depending on whether the test subtitles were already enabled before the page loaded... given it's something that's supposed to update stuff without a page load it can be confusing.
  • It's not exhaustively tested, and has some weird side-effects (it calls savesettings, so if you, say, turn off the seekbar and hit "Reload Subtitles" the seekbar will remain, but it'll save that you want the seekbar turned off)...
  • It's not permanent... Version 4.0 will hopefully make it so that all settings work like this, and clicking "Save and Apply" won't have to reload the page.

So it's there if you want it, but it's not cluttering up the settings boxes of people that don't want it.

Anyways, enjoy! --phlip TC 03:30, 27 September 2006 (UTC)

Personal tools