User talk:Phlip/Greasemonkey
From Homestar Runner Wiki
Troubleshooting
If the script doesn't seem to be working for you, please try:
- If you have Adblock, Flashblock, or similar addons installed, disable them on homestarrunner.com.
- Reinstalling the script, by clicking this link.
- Uninstalling Greasemonkey (from the Tools menu in Firefox, choose Add-ons, then go to the Extensions section, click Greasemonkey, then Uninstall), and then reinstall it (from here). You'll probably need to install the script again.
If you're still having problems after that, then ask for help on this page. Be sure to mention what versions of Firefox and Flash you have, and what other extensions you have installed. --phlip TC 03:26, 11 October 2008 (UTC)
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).
Version 3.2 (25 Sep, 2007)
- Add option to automatically check for script updates (on by default).
Version 4.0 (8 Oct, 2014)
Complete ground-up rewrite of the script! Featuring:
- Chrome support! Install the extension from the Chrome Web Store!
- Note: Due to limitations in how the settings storage has been written for Chrome, any settings you enter will not transfer between sites... so if you, say, turn on Subtitles while watching a toon on www.homestarrunner.com, and then go to a toon on the HRWiki mirror, your settings won't transfer across, and you'll have to enable Subtitles again for the new site.
- Turning settings on and off no longer causes the page to refresh.
- More modular codebase, making the code easier to navigate and maintain.
- The script is now built from a number of smaller files, accessible at GitHub.
- Cleaned up some bugs and bitrot from the last version of the script being 7 years old... browsers have changed a lot since then, and the script has been tweaked to match.
Version 4.1 (2 Oct, 2017)
- Rewrote Flash-interaction handling to work in newer versions of Chrome.
- Added wikilink override for Screenland - 24 Apr 2017
Version 4.2 (22 Nov, 2017)
- Quick fix for basic support for Firefox Quantum and Greasemonkey 4.
Version 4.3 (24 Nov, 2017)
- More thorough fix for Firefox Quantum and Greasemonkey 4.
- Rewrite a lot of the script to use promises instead of callbacks, so the code is a lot cleaner.
Version 4.4 (11 Mar, 2018)
- Run on HTTPS pages (NB: Greasemonkey/Tampermonkey only, not in Chrome extension).
- Run on Tampermonkey on Chrome.
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 () 03:04, 14 July 2006 (UTC)
Eventual to-do list
(in no particular order)
- General cleanup of the code.
- Work on Videlectrix.
- Work on the mirrors (
kitkorp(not needed with Tom working on completing the HRWiki mirror) and HRWiki). - Some way of turning various features on and off maybe?
- Only if I get this working, replace the flash files with theyCallHimFlipper.swf.
- replace the navbar with text links (this is more for me than for you guys).
- resize the seek bar when the toon resizes (if you resize the window)
- 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 () 22:57, 5 June 2006 (UTC)
- I have a suggestion/request. If you could make a "play all sbemails in order" type of function, that would be really awesome. Thanks! 69.249.241.164 18:13, 19 October 2010 (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)
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!?!?! TheThingé 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) 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) 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)
Greasemonkey install method
GM's changed the way it installs scripts by link. A single-click on the link will offer to install the script, the option isn't even on the right click menu anymore. --AndrewNeo 17:20, 31 October 2006 (UTC)
Just the seek bar
Maybe for use on other sites, you could individually release the code for the seekbar. (And, if possible, include the preferences from the whole script, plus maybe external CSS skin support.) --Y2K () 04:00, 16 January 2007 (UTC)
spellcheck
"Homestar" is misspelled in the warning section of the heap-o-comments at the beginning. Page is locked or I'd fix it myself. — User:ACupOfCoffee@ 07:08, 22 February 2007 (UTC)
Uniformity matters... again
Since "podcast" was added recently to the navbar, can you please update that? --Addict 2006 20:55, 2 March 2007 (UTC)
Is it just me or is this broken?
One day the fullon part stopped working for me. And the Subtitles. And the seek bar. The corner buttons are still there. --68.55.198.213 11:57, 13 June 2007 (UTC)
- It's still working fine for me. What did you do the day that it broke? Did you install any other extensions, or scripts, or upgrade anything? --phlip TC 12:03, 13 June 2007 (UTC)
- So It's just me. That's good to know. I poked around in the system, and determined an update to flashblock borked it. I normally don't unblock flash (even for homestarrunner.com). Adding it to the whitelist fixed the problem. Before that update, they both worked together. Thanks, and I hope this info helps someone.--68.55.198.213 13:11, 21 June 2007 (UTC)
Not working in nightly build =(
In the nightly build of Firefox (Dubbed Minefield), the script has limited functionality. The subtitle language selector doesn't work, as there are no options. I will try to clean up to make it work..right.
onekopaka 02:14, 5 July 2007 (UTC)
- By design, if subtitles are turned off, the script doesn't contact the wiki at all. When you turn the subtitles on, it tries to download the list of supported languages then. The list is empty until that finishes (I suppose I should put a "Loading..." message in there...). So wait a bit, see if it turns up. Failing that, it is a nightly build after all, you should expect some things to be broken... the name "Minefield" isn't just for show... chances are, it's a problem with either
GM_xmlhttpRequest
orDOMParser
... and if so, then it's either a Firefox issue or a GreaseMonkey issue, and there's little I can do about it. --phlip TC 03:15, 5 July 2007 (UTC)- After looking in a Debug Console, the blame goes to..... Greasemonkey! onekopaka 06:40, 17 November 2007 (UTC)
- Firefox 3's document.getElementById is changed so that it returns the first object. If you're using it, you might want to read up on MDC (http://developer.mozilla.org/) --24.17.113.45 06:50, 9 May 2008 (UTC)
- After looking in a Debug Console, the blame goes to..... Greasemonkey! onekopaka 06:40, 17 November 2007 (UTC)
Typo...
You mispelled automatically. Don't press that button. 10:08, 20 July 2007 (UTC)
- I somehow think that's intentional. DEI
DAT
VM┌datvm center\super contra┘ 11:05, 20 July 2007 (UTC)
- If you're referring to "automagically", then yes, that's intentional. --phlip TC 04:24, 21 July 2007 (UTC)
Podcast/Podstar
addnavbarlink(newnavbar, "http://www.homestarrunner.com/toons.html", "Toons"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/games.html", "Games"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/characters2.html", "Characters"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/downloads.html", "Downloads"); addnavbarlink(newnavbar, "http://homestarrunner.stores.yahoo.net/", "Store"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/sbemail.html", "SB Emails"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/email.html", "Contact"); addnavbarlink(newnavbar, "http://podstar.homestarrunner.com/", "Podstar"); addnavbarlink(newnavbar, "http://www.homestarrunner.com/legal.html", "Legal"); randolink = addnavbarlink(newnavbar, "javascript:alert('rando.xml not loaded yet... be patient')", "Rando");
Where it says Podstar, it should say Podcast. On main_nav.swf, it says podcast. Here, is says Podstar. Incorrect. --The Goblin!! 19:00, 29 July 2007 (UTC)
- The feature is called Podstar Runner, though. --DorianGray 19:48, 29 July 2007 (UTC)
Just a question...
Are you ever going to put this in the Greasemonkey Script Repository? Just wondering... -- Super Martyo boing! 18:54, 6 August 2007 (UTC)
- Actually, that's the old Greasemonkey script place thing. The new one is at userscripts.org. Bluebry 19:00, 6 August 2007 (UTC)
not working
i installed greasemonkey but there isnt anything under tools. you do mean tools that is above the adress bar, right? Slipknot6477 22:57, 7 December 2007 (UTC)
Tablet stuff
Hey, this is a really neat script. Anyway, I use a tablet computer, and I've noticed that, when viewing a toon in portrait (tall) mode, the toon will cover up the top two buttons ("settings" and "wiki") if the script is set to scale the toon to full size. This is, I imagine, because the script expects the screen to be wider than it is tall, as most computer screens are... so when that is not the case, the toon sticks around the top of the page and covers up those key buttons. This doesn't happen in normal, "landscape" mode because the toon is horizontally centered across a wide screen. If the toon were vertically centered as well, or at least nudged sixteen pixels downward when on a tall screen, those buttons and their inherent usefulness would be unveiled for all. ("Landscape" mode is, of course, the better option for viewing Homestar Runner, but I think this would be a pretty good fix nonetheless.)
There are some other things: in Firefox 3.0 beta 4, the seek bar extends too far to the right, visually (covering up the buttons to its right), and does not seem to work for changing your place in the toon. Also, the script never seems to be able to load subtitles, perpetually leaving "loading" in place of subtitle options in the pulldown menu. Oh, and the "settings" bar has most of its scrollbar obscured by the toon, oddly, though it still works.
I hope this helps in working out any kinks. If nobody else can reproduce these errors, I can provide more details. Anyway, thanks!24.22.64.228 05:18, 2 April 2008 (UTC)
30 Frames fix?
For some reason, with the SBCG4AP "ad," the seek bar doesn't work at all. It counts the frame, but all the buttons (besides the zoom) doesn't work. --76.210.181.251 21:08, 10 April 2008 (UTC)
- This has nothing to do with the high framerate (which is 24 anyway, not 30), and everything to do with the fact that the HTML file is on homestarrunner.com, but the flash file is on Telltale's servers... Flash's security gets in the way, and there's nothing that can be done about it. Best I can do is make it so that the seekbar is disabled on that toon (or, at least, make it more obvious that it's informative only, and you can't use it to control the playback). Which I'm working on. --phlip TC 04:53, 12 April 2008 (UTC)
3.2.3 broken in FF 2?
I can't get the subtitles if I upgrade to 3.2.3. I'm using FF 2. I see that it was changed for tweaks for Firefox 3...did you notice that it breaks it in FF 2? I don't think a version that breaks it in the current version of Firefox should be released to the update. --Mini-Geek 16:36, 9 June 2008 (UTC)
- Oops... I didn't think to regression-test the changes in Fx 2... yeah, that doesn't work. The deal is that, in an earlier version of GreaseMonkey, DOMParser wasn't available for GM scripts to use... and you had to use some workaround to get at it. That workaround didn't work in Fx 3, but the site I got it from listed another option that did. Turns out that other option doesn't work in Fx 2. It also turns out that the workaround isn't necessary at all any more. It's gone now, and the script works in both Fx 2 and 3 (it should auto-update again in the next day or so). --phlip TC 08:55, 10 June 2008 (UTC)
- Thanks, it works now. --Mini-Geek 14:26, 10 June 2008 (UTC)
Trouble dragging in FF3
If you try to drag the seek bar, but are already moving the mouse when you start dragging (move it faster if it doesn't do it for you), it messes up. By messes up, I mean it flashes the cursor between a circular crossout symbol and the normal cursor as you hold it down (still moving the movie as you move), then when you release, it keeps following your mouse until you click on it again. --Mini-Geek 20:04, 18 June 2008 (UTC)
- Huh. That's... bizzare. I get a similar thing, but instead of the cursor-flashing thing you're saying, it actually starts dragging around a slightly-shrunk picture of the seekbar, and sometimes some of the surrounding buttons. I'll look into it (which I guess means I'll need to figure out how the drag-and-drop stuff in the seekbar actually works, since I didn't write that... that'll be "fun"). In the meantime: Don't do that. --phlip TC 08:55, 20 June 2008 (UTC)
- "In the meantime: Don't do that." lol yeah...It's just that I do it accidentally pretty often now, and it's annoying. I'll try to avoid it in the meantime, though. Thanks for looking into it. --Mini-Geek 14:27, 20 June 2008 (UTC)
- OK, this is fixed, I think. I never found a way to reproduce it reliably, but I think I could get it about one try in 3 or 4... and I tried about 20 times now, and I can't get it to happen... let me know if it still happens for you. --phlip TC 13:38, 25 June 2008 (UTC)
- It seems to work now. It hasn't happened since I updated. The random button now shows the correct tooltip. --Mini-Geek 21:35, 26 June 2008 (UTC)
- OK, this is fixed, I think. I never found a way to reproduce it reliably, but I think I could get it about one try in 3 or 4... and I tried about 20 times now, and I can't get it to happen... let me know if it still happens for you. --phlip TC 13:38, 25 June 2008 (UTC)
- "In the meantime: Don't do that." lol yeah...It's just that I do it accidentally pretty often now, and it's annoying. I'll try to avoid it in the meantime, though. Thanks for looking into it. --Mini-Geek 14:27, 20 June 2008 (UTC)
Plain HTML Rando Not Working in FF3?
I am finding if I used the plain HTML navbar with the script, it is not working and I get a dialog box saying "rando.xml has not loaded yet. Be Patient." from homestarrunner.com. Is this an issue with the official site, or did something in FF3 break it?— Bassbone (TALK CONT) 22:20, 22 June 2008 (UTC)
- It works for me, but shows the wrong URL when I roll over it. --Mini-Geek 16:52, 23 June 2008 (UTC)
- The wrong-URL thing should be fixed now. Things were happening in the wrong order... the tooltip and the page it would send you to if you clicked matched, but the URL in the status bar was from the previous selection... I tweaked the timing a bit, so this doesn't happen any more. I couldn't reproduce the infinite "has not loaded yet" thing... try clicking the "Clear Subtitles Cache" button in the preferences screen... the same button will clear the rando.xml cache, forcing it to really try again to download it from the server. --phlip TC 13:38, 25 June 2008 (UTC)
Subtitles broken
I'm on Firefox 3, with Adblock Plus (disabled on h*r.com and hrwiki.org), and the subtitles don't appear. I check "Show subtitles" in the options, and a list of languages appears, but when I go to anything that has subtitles - I tested it on Play Date - I get a "loading subtitles" message which disappears after a second or so. Other features like the seek bar work fine. Thanks in advance, 24.250.112.127 23:06, 1 July 2008 (UTC)
- Works fine on 2.0.0.14, the latest stable build. I don't know if it's worth Phlip's time to develop for the beta, but you could revert to the stable build and it'll work. - Qermaq - (T/C) 01:09, 2 July 2008 (UTC)
- IP Guy: I had the same problem, but then I reinstalled the script and tested it by watching The Baloneyman, and now the subtitles work again.
- Qermaq: the latest stable build is actually 3.0.0. --Y2K () 07:08, 2 July 2008 (UTC)
I was about to report a problem with this, but I forgot about having to disable Adblock to get the subtitles working, even on the latest build. I'm installing Firefox in Ubuntu, and I though the crappy flash plugin was the problem.
Anyways, you may want to make this advice more prominent, in some sort of FAQ. (If you have already, well, I couldn't find it.)
--trlkly 23:48, 3 October 2008 (UTC)
How'd you get the icon data?
I noticed that your icons are embedded in the script as base64 data. If you used an encoder program, which one was it? --Y2K () 00:49, 13 July 2008 (UTC)
- It's pretty simple... just convert the picture to PNG (I use The GIMP for that... any web-friendly image format will work, but PNG is best), then Base64-ify the PNG file (I just use the tool in coreutils), and tack "
data:image/png;base64,
" on the start, then use the string as the URL for the image. Wikipedia has more info. I'm sure there exists some online tools that let you upload files and generate the data: URIs for them... try Google. --phlip TC 07:22, 13 July 2008 (UTC)
Seekbar
I can't get the seekbar to work. Every time I click anywhere on it it just goes back to the beginning of the toon. I know nothing about code, mind you, so I have no idea how to fix this. ~That Guy Over There () 02:32, 15 July 2008 (UTC)
- Nevermind. I changed some of my Firefox settings and it works now. ~That Guy Over There () 02:37, 15 July 2008 (UTC)
what did you do, i have the same problem Forddude1416 19:20, 18 August 2008 (UTC)
Screencapture
How do I get a screen capture in Ubuntu Linux? --Blow Up the Ocean 20:50, 12 August 2008 (UTC)
- This may vary (it's been a while since I used Gnome), but I believe that alt-Print Screen grabs the focused window, and Print Screen by itself grabs the entire desktop. It will either prompt you for a filename to save it as, or just save it automatically on your Desktop. It will be in PNG format, which is probably want you want. Green Helmet 21:02, 12 August 2008 (UTC)
Test subtitles script and back button
I do a lot of subtitle work (the AIO makes it about a million times easier/possible, BTW :) ) and so I often use the "Test subtitles script" feature to preview my scripts before I save 'em. The problem is that I usually forget to uncheck the box, so when I go to another toon, it displays the wrong subtitles. Not a big deal, of course, as I can go into the options and uncheck the box, but it's an annoyance. It'd be nice if it automatically unchecks the box. Possibly make it uncheck when you load a different toon.
Also, if you have outside-the-frame action enabled and press the back/forward button (in the browser, not the next/previous button) to go to a page, it loads it full-screen instead of showing outside-the-frame action.
Oh and BTW I just noticed there's a feature to zoom in/out of the toon when it's full screened, but not when it shows outside-the-frame action. Can you add that feature in outside-the-frame mode, too?
--Mini-Geekt c 16:22, 14 August 2008 (UTC)
- The "Test subtitles script" option needs some serious rework anyway... I'd like the "Refresh subtitles" button to Just Work, rather than the sort of inconsistent mess it is now. Being able to give test subtitles for just one specific toon is a good idea... I'll add it to the list of things to do when I get around to doing that.
- The back/forward buttons and outside-the-frame: I hadn't noticed that... I'll look into it. Does everything else work with back/forward?
- As for the zoom buttons and outside-the-frame, if you use the Zoom things in Flash, then it stops doing the outside-the-frame thing... you can't zoom out further than how it behaves when you view the SWF alone (ie: either the height or width matches the height or width of your window, whichever is smaller)... and there's no way to go back to the outside-the-frame mode except by resetting it to the usual outside-the-frame size. I couldn't find any way around this... so I just got rid of the zoom buttons when that option's turned on. If you happen to know of a workaround, I'd love to hear it... --phlip TC 22:41, 14 August 2008 (UTC)
- Ok, cool. I don't mean that I really care to see toon-specific subs that are remembered with different pages, in case that's what you thought. I just want it to be cleared when I go to a page besides the one being tested.
- I haven't noticed anything else wrong with back/forward. I've noticed that when a page loads normally, it's momentarily enlarged to full screen before it's changed to show outside-the-frame, but that when you do back/forward it doesn't change. Perhaps it's something with how FF tells scripts that the page has loaded when it comes in from memory (since it was in recent history) instead of loading for the first time. I should probably also note that when it's zoomed out after going back/forward, I can still see outside-the-frame action, but of course since it's already full-screen, I only see it on the edges (instead of being like the normal full screen mode that puts black on the sides, this allows vision on the sides).
- Do you think you could make it so if it's already at the max zoom out level, instead of just trying to tell the SWF to zoom out more (unsuccessfully), make it refresh as outside-the-frame in some way so it goes back out? Of course, that would preferably be without actually refreshing the page, so your place isn't lost like when you save a setting. This could eliminate the need for an outside-the-frame option, since if you want to zoom out when it's already all the way out, it goes to outside-the-frame, while zooming in while viewing outside-the-frame would go to full screen.
- I just got an idea to fix the issue that when you save settings it refreshes the page (more of a workaround really, something that does it without refreshing at all would be better). Let it refresh, but first remember the frame you're at and the pause/unpause status (is there anything else that would be needed to make it seem the same?) and set it to that once it refreshes. --Mini-Geekt c 01:27, 15 August 2008 (UTC)
Latest java build
Seems this script is incompatable with the latest Java version. - Qermaq - (T/C) 03:08, 27 August 2008 (UTC)
- Can you be more specific? Neither this script, nor Homestarrunner.com use Java in any way... Green Helmet 03:15, 27 August 2008 (UTC)
- Can you still be more specific? Asked you to disabled this specific userscript, or Greasemonkey in general? Do you know the exact wording of the message? What version of Java did you update to? I just checked mine and it was at 1.6.0_04, there was an update available (to 1.6.0_07), which I just installed, restarted Firefox (and confirmed it was using the new version), and I did not see any change in the behaviour at all.
- I'm still pretty sure Java isn't used directly here (in fact, I'm certain it isn't). But, it is possible that the Java installation changed something in the browsers security model that is messing things up. I'll try updating it on another computer tomorrow and see if I get the problem to happen there. Green Helmet 05:07, 27 August 2008 (UTC)
- Are you on a Mac? It appears to be broken on my Mac... but, it's past my bedtime right now. Green Helmet 05:14, 27 August 2008 (UTC)
- I am still unable to install this script. - Qermaq - (T/C) 13:23, 5 September 2008 (UTC)
- And I am still unable to even guess as to what your problem is... Can you answer GreenHelmet's questions above? They'll help narrow down the problem. --phlip TC 13:32, 5 September 2008 (UTC)
- I am not certain how to check the Java version. I did go to the Java site and install the latest version. Greasemonkey itself seems to be properly installed, though I don't know how I can test that. Running Vista. - Qermaq - (T/C) 18:54, 5 September 2008 (UTC)
- Hmm... can you try something for me... run notepad, and type in this:
- I am not certain how to check the Java version. I did go to the Java site and install the latest version. Greasemonkey itself seems to be properly installed, though I don't know how I can test that. Running Vista. - Qermaq - (T/C) 18:54, 5 September 2008 (UTC)
- And I am still unable to even guess as to what your problem is... Can you answer GreenHelmet's questions above? They'll help narrow down the problem. --phlip TC 13:32, 5 September 2008 (UTC)
- I am still unable to install this script. - Qermaq - (T/C) 13:23, 5 September 2008 (UTC)
- Are you on a Mac? It appears to be broken on my Mac... but, it's past my bedtime right now. Green Helmet 05:14, 27 August 2008 (UTC)
// ==UserScript== // @name GM Test Thing // @description Check that Greasemonkey is working // @include http://homestarrunner.com/* // @include http://www.homestarrunner.com/* // ==/UserScript== alert("Greasemonkey's working");
- Save it somewhere as "test.user.js" (include the quotes, when you type it into Notepad's "Save As" box, otherwise it'll save it as test.user.js.txt). Then open that file in Firefox, let it install the script, and go to HR:. You should get a message box coming up saying that GM's working. If not, there's something wrong with GM on your end... try uninstalling and reinstalling it. Otherwise, let me know, and I'll have to make a more detailed test. --phlip TC 03:44, 6 September 2008 (UTC)
Script doesn't seem to work
I'm running Firefox 3, and none of the buttons, scrollbar[s], or subtitles work. --Addict 2006 22:50, 10 October 2008 (UTC)
- Hmm... could you try out the things listed in the brand new Troubleshooting section? --phlip TC 03:26, 11 October 2008 (UTC)
Yeah, Firefox 3 does have its own downs, because Adblock Plus doesn't conflict with the script in Firefox 2 but does in 3. --Addict 2006 19:27, 12 October 2008 (UTC)
Thank you!
This thing is awesome. HomsarGuy 13:16, 2 December 2008 (UTC)
Thanks and feature suggestion
Hey! Thanks for making this script! It really makes watching H*R much easier (and better)!
I would like to suggest a feature - it would be great to have an automatic 'next' feature to play through a whole series (like SBemail) or to play random through the whole site. This way we could watch sequential H*R without being near a mouse. (I don't know if this would infringe on the value of the SBemail DVDs) -Dutchscout 05:48, 5 December 2008 (UTC)
Page-Overwrite?
It's been on my mind lately; would it be possible to get the script to overwrite the loaded Flash file on a page, or just replace the content of a page without creating security issues with Flash? In some cases, it could be helpful, as with being able to run subtitles on certain Puppet Stuff toons that don't have their own HTML page, like Marshie vs. Little Girl. We could use default.html as a "dummy page", and using a URL referrer of "overwrite=whateverflashhere.swf
" (which would be picked up by the script, not the page), would overwrite the page with your usual Homestar Runner toon-viewing code, with the Flash file in place of the usual "toon placeholder" itself? (I hope that made sense) --70.253.165.204 00:14, 6 December 2008 (UTC)
Script broke.
Your Greasemonkey script doesn't work. I am using Minefield 3.2a1pre and Flash Player 10. I also modified Greasemonkey to make it work with Minefield. Dagoth 08:11, 10 January 2009 (UTC)
- Try everything in the Troubleshooting section. If that doesn't help, read through this and try again. Incidentally, "Minefield" has that codename for a reason... that Greasemonkey works at all (especially after you modified it) should be considered a stroke of luck. --phlip TC 08:17, 10 January 2009 (UTC)
2 things
1:Thanks!I really wanted a bigger screen. 2:Is it possible to make it work with the kitkorp mirror?
subtitles stopped working
I just noticed it today. I used it and it worked fine the other day. It seems that the script isn't finding the list of languages at Subtitles:Languages (the Subtitles Language select box doesn't have any entries). I do have AdBlock Plus but disabled it temporarily with no change. I'm using Firefox 3.0.11 with Greasemonkey 0.8.20090123.1 and the newest All-in-one script from User:Phlip/Greasemonkey (3.2.7). Perhaps it's related to "We will be making adjustments to the server throughout the evening, including upgrading to MediaWiki 1.15."? See also HRWiki_talk:Subtitles#Subitles_Not_Working? --Mini-Geekt c 03:11, 13 June 2009 (UTC)
- It's related to the new upgrade and the move to the /wiki/ URLs... it should be fixed now. The script should automatically prompt you to update it sometime in the next day or so, or you can just hit the install link on the script page to do it yourself. If you're still not getting subtitles, it could be because you hit the "Save" or "Clear cache" buttons in the config panel while the subtitles were broken... in that case, just open up the config panel, make sure that the "language" option is set, and hit save. That should bring them back. --phlip TC 16:27, 13 June 2009 (UTC)
sbemail201 & hremail3184
Someone needs to fix the back/forward links for the Sbemails, because Sbemail #201 is actually Hremail #3184 in the URL!!! Religious Corn 22:07, 1 July 2009 (UTC)
Not Compatible with Firefox 3?
Ever since upgrading to FF3, this script hasn't been working at all.
- I'm running Firefox 3.5 (on Windows) and it's working fine for me (it worked fine for me on 3.0). Did you try the troubleshooting options listed above? I've had problems with AdBlock plus so I added an exception to hr.com, hrwiki.org and videlectrix. If they don't work, can you provide more information regarding your problem? (Such as what platform and how does the script fail?) --Stux 13:18, 30 August 2009 (UTC)
- I got it. I had to reinstall Greasemonkey, then update it, then reinstall the HR script.
Some code for a more streamlined "Hide" ability
This is one way that crossed my mind. You'd have to replace the two lines in transcriptLoaded:
line.text = importNodes(lines[i]); transcript.push(line);
With this:
var hideEnds = true; for (var j = lines[i].firstChild; j; j = j.nextSibling) { // Looks for a "hide" element, and divides the line into two if one is found. if(j.nodeType == j.ELEMENT_NODE && j.nodeName.toLowerCase() == "hide" && hideEnds) { // If no frame number is specified, make the last frame of hiding really big, so it never stops hiding var hideUntil = 100000; if(j.hasAttribute("frame")) { hideUntil = parseInt(j.getAttribute("frame"), 10); if(isNaN(hideUntil) && settings.TestSubs) transcriptError("Hide frame \"" + j.getAttribute("frame") + "\" is not a number"); } if(hideUntil < line.start && settings.TestSubs) { transcriptError("Hide frame \"" + j.getAttribute("frame") + "\" is too early"); } var firstLine = line; if(hideuntil < line.end) { firstLine.end = hideuntil; } else { hideEnds = false; } j.setNodeName("span"); j.setAttribute("visibility", "hidden"); firstLine.text = importNodes(lines[i]); transcript.push(firstLine); j.setAttribute("visibility", "visible"); line.start = hideuntil; } } if(hideEnds) { line.text = importNodes(lines[i]); transcript.push(line); }
I'm kinda shaky on the programming language and its nuances, though. Especially "setNodeName", or whether "span" would work without a "/span" (or if adding a "/span" is possible). Also, it's very possible I made a mistake.
If it works, though, it should allow you to add <hide frame="123" /> and it would hide everything after it on a line until frame 123. You wouldn't have to put in multiple lines that way. Even a <hide/> tag should just simply hide everything else on the line, period (unless the toon becomes 100000+ frames in length AND the line comes after that point, but that hasn't happened yet and probably will never.)
Thoughts? Fixes? --Jay (Gobble) 00:31, 1 November 2009 (UTC)
- PS. Another useful addition would be the ability to write overlapping lines separately and have them all display. Would be useful for when characters semi-interrupt or speak over one another. Crystal Fortress's subs were a pain to write without this feature. I don't have code for it, though. --Jay (Gobble) 00:56, 1 November 2009 (UTC)
- Also for sound effects that are shorter than the dialogue, etc. Perhaps though it should be a different element called "<overlap>" with the same syntax as line, just to keep the error checking for people who don't intend to overlap lines. — Defender1031*Talk 01:00, 1 November 2009 (UTC)
- That <hide> tag sounds like a good idea, that's definitely going on my todo list. Maybe not the way you describe, though... rather than just having the empty tag hide everything from here to the end of the line, have something like "
first part <hide frame="100">second part</hide>
"... it'd make more sense, I think, and be easier to code up. Maybe it should havestart
andend
attributes instead, so things can disappear instead of appearing? Optional, of course, so you can have just astart
and noend
, and have it behave like you describe. - As for overlapping lines, it's something that I've considered before, but never really looked into, as it could be kinda tricky. In particular, arranging the lines... if you have two lines at once, and the first one ends, you want the second one to stay on the second line, with a gap above it (it could move upwards, but that'd be confusing)... and then, if a third line starts, it'd make sense to put it in the gap above the second line... but it may not fit, if it's a long line that word-wraps, or has the
volume
attribute turned up, or something. So there's an optimisation problem there to arrange all the lines without it being so tall that it runs out of space. But I may be overthinking it here, and a greedy heuristic is probably enough. I'll try it, and see what happens. - But don't hold your breath for either of these... I can't guarantee how long they'll take to write... what with the full-time work and all, I'm often not in the mood for programming outside work... but we'll see. --phlip TC 03:58, 1 November 2009 (UTC)
- We could create a
lineindex
attribute to fix that problem. —Soiled Bargains (talk|ctrb) 14:21, 1 November 2009 (UTC)- Not really... maybe if every line was exactly the same height, it'd work, but that's not necessarily the case, with
volume
and word-wrap. Indeed, with word-wrap, the same line could be different heights on different computers, even with the same subtitles script. Much better to have a dynamic solution. It'd be less work for the transcribers that way anyway, which is kinda the point of this whole thing. --phlip TC 22:00, 1 November 2009 (UTC)
- Not really... maybe if every line was exactly the same height, it'd work, but that's not necessarily the case, with
- We could create a
- That <hide> tag sounds like a good idea, that's definitely going on my todo list. Maybe not the way you describe, though... rather than just having the empty tag hide everything from here to the end of the line, have something like "
- Also for sound effects that are shorter than the dialogue, etc. Perhaps though it should be a different element called "<overlap>" with the same syntax as line, just to keep the error checking for people who don't intend to overlap lines. — Defender1031*Talk 01:00, 1 November 2009 (UTC)
Midori Web Browser
You probably don't use linux but, your script does not work with midori's built in userscript engine. I want it to work with midori but do not know why it isn't working. ColdReactive 13:11, 5 November 2009 (UTC)
- The script uses a bunch of GreaseMonkey-specific features, for things like saving the preferences or loading subtitles from the wiki. From what I can tell, Midori doesn't support any of those (note the part that says "Midori also does not support greasemonkey's api"). I looked into it briefly before, when I was considering supporting Opera... but without those features, it would be a lot of work. Maybe I'll take another look in the future, but don't hold your breath. (Incidentally: Yes, I do use Linux.) --phlip TC 13:19, 5 November 2009 (UTC)
- I don't need preferences if I can just have a userscript that does the following:
- Stretches the flash
- Check if next toon exists
- Has the seek bar
- But I guess it's still not possible. ColdReactive 13:48, 5 November 2009 (UTC)
- Like I said, it would be a heck of a lot of work to retrofit the script to not depend on Greasemonkey. That includes stripping out the script so that only some features are available - all the different features are pretty interconnected at the moment, it's hard to remove just one of them. It's my long-term plan to clean up the script and make it simpler to manage, but that's been my long-term plan since before the subtitles thing started 3 years ago, and I still haven't even started, so don't hold your breath. And anyway, that "check if the next toon exists" thing is one of the things that depends on the GM API, so even if I could quickly strip down the features, I couldn't do that one easily.
- However! You might have some luck with the original scripts that the all-in-one script was based on. I suspect that the Homestar Full-on could work in other browsers that have userscript features... I haven't tried it, but it looks like it could work (it doesn't depend on GreaseMonkey, but it might implicitly depend on Firefox, that's harder to tell just by looking at the script). The seek bar bookmarklet might work, it might not. Try it and see. Obviously, if they don't work, there's not much I can do about it, but it's worth a shot. --phlip TC 21:41, 5 November 2009 (UTC)
- I don't need preferences if I can just have a userscript that does the following:
Revisiting Midori With 0.2.4
Well, the fullon resizes the flash, but now refreshing won't fix the blank flash box. Oh well, guess I'll have to watch it small. ColdReactive 00:00, 23 April 2010 (UTC)
Feedburner
Yeah, the navbar on greasemonkey doesn't show the 'subscribe' button. Just saying. StrongAwesome 21:10, 7 December 2009 (UTC)
- Yes it does. Are you sure your script is up to date? It has an option to check for updates automatically, but maybe you've turned that off? --phlip TC 21:18, 7 December 2009 (UTC)
Opening as plain text
Firefox = check, Greasemonkey = go, and it worked a couple of weeks ago. But the Greasemonkey stuff vanished from H*R, oh, about the time the "visit our store" link appeared on it. I uninstalled and reinstalled Greasemonkey, but when I try clicking on the "click here to install" link, all it does is open the script in plain text instead of installing the script to Greasemonkey. I tried saving the script to my desktop and running it there, but it complains that, on character 1 of line 122, "document" is undefined. Um? --Jay (Gobble) 01:15, 25 January 2010 (UTC)
- If you save it and just try to run it, it'll do something completely different... that's not going to work. You might have some luck if you save it to disk and then open it in Firefox (as opposed to just double-clicking it) but it'll probably do the same thing. Is Greasemonkey enabled? Check the little monkey in the status bar, he should be all colourful and smiley (as opposed to greyscale and frowney). --phlip TC 07:55, 25 January 2010 (UTC)
Chrome Now Can Install... but...
You need to install from here instead. Unfortunately, even though Chrome has the greasemonkey APIs, your extension, Philip, doesn't work. the only portion that DOES work is the flyout settings menu when looking at a homestarrunner.com page. None of the settings can actually be saved. You need a git or development version of chrome to be able to install the script I believe, and that's easily done on ubuntu using the chromium daily ppa from launchpad. However, as said by this blog about the new feature, you will most likely have to edit your script so it works with chrome. ColdReactive 13:50, 2 February 2010 (UTC)
- Yes, I know, both Chrome and Opera and a couple of other browsers have user script engines, but most of them don't have the power necessary to run this script (neither Opera nor Chrome for instance allow cross-site AJAX requests, which are required for subtitles, rando and check-for-updates) and even the features they do have, you need to use in a different way (eg Opera doesn't have the GM_* functions, so I'd need to re-write all the preference-saving and AJAX code using other APIs). This doesn't make it impossible to make a script this complicated that will work in all these browsers... but it means it'd be a lot of work to retrofit an existing script to work.
- tl;dr: Only Firefox is supported for the foreseeable future. Like I said to you before. --phlip TC 21:38, 2 February 2010 (UTC)
Eating Up CPU
Just to warn people who have non-HT Single Core Processors (true single-cores, meaning no logical cores.) I have a 1.60 GHz true single-core processor (atoms are not true single-cores), and adding this to homestarrunner.com shoots up CPU usage to 100% on idle. Unfocusing the tab in which the script is active will bring down the CPU. ColdReactive 01:23, 9 April 2010 (UTC)
- Huh, it doesn't do that for me... my computer isn't single-core, but using this script doesn't cause my usage to shoot up to a single core being fully used. It does increase the usage a bit, but not drastically... the main culprits being (a) View fullscreen - obviously, if Flash has to render a larger area, it's going to take more processing time; and (b) Seek bar/subtitles... these too mean asking the Flash object a bunch what frame it's up to... which means a lot more context switching between the browser and the plugin, and all the wrappers and whatnot that needs... which is either the fault of Flash or the plugin architecture, I'm not sure which. Anyways - if you try turning those options off, it should help with your CPU problems. --phlip TC 09:30, 9 April 2010 (UTC)
Firefox 4.0 & JaegerMonkey
With Firefox 4.0 coming this year (or so it seems), they plan to implement "JaegerMonkey," a javaScript engine that rivals Safari's and Chrome's. The suffix -Monkey, sounds like it'll probably be replacing Greasemonkey or even forcing greasemonkey users to recompile their scripts all together. What do you plan to do if this happens? Keeping in mind that Firefox is the ONLY browser that works with your script, no other does. —ColdReactive 16:08, 11 May 2010 (UTC)
- I'll cross that bridge when we come to it. I don't see anything to suggest JägerMonkey is going to supersede GreaseMonkey (it's more likely it got the -Monkey suffix from SpiderMonkey). So I don't expect the changes to be that drastic (there's probably going to be new features the script could potentially use, but little in the way of old features disappearing). Also: yes, I get the fact that there's a couple of dozen browsers you've asked me to port the script to... I've made it clear that isn't going to happen. Being snarky isn't going to change that. Note the big GPL header at the top of the script - if you want it to work in Opera or Chrome or Midori or whateverthecrap other browser you're using this week, you're welcome to try to figure it out yourself. --phlip TC 22:59, 11 May 2010 (UTC)
Resizing option for recent toons
Hey, Phlip. The largest monitor I have is reasonably sized and yet can't show all of past two toons at their HTML'd resolution (at least in Firefox). I admire the screen-resizing option, but with an old laptop that can only do 1024×768 that struggles enough with Flash (The one I'm using right now, in fact. It runs Linux), I'd rather not have toons in the usual 550×400 resolution being scaled. Could there be an option so that users can downsize toons to their native resolution? After all, the newer toons were made in the usual 550×400, I've heard. —Soiled Bargains (talk|ctrb) 23:20, 24 December 2010 (UTC)
- Actually, could there be an option to set our preferred vertical resolution? —Soiled Bargains (talk|ctrb) 23:27, 24 December 2010 (UTC)
Firefox 4 zoom
I just noted that when I do the normal resize thing by holding down CTRL and using the scroll wheel in firefox 4, the homestar runner flash objects all are resized as well. Is this new to Firefox 4? Or was it already introduced into 3.6.x? I swear I wasn't able to do this previously. This probably should go somewhere else, but since I only really wanted the resize portion in this script, I may just forgo keeping greasemonkey. ColdReactive 20:18, 4 January 2011 (UTC)
- It works as you describe in at least 3.6.13. Maybe you had "Zoom Text Only" checked. — It's dot com 23:54, 4 January 2011 (UTC)
"Do not play on load" option
I have another feature request, but it's more of a convenience than anything. Could we have the option to have the Flash paused on page load, instead of having it automatically play? This would help someone when they restore a browser session that has multiple tabs/windows on homestarrunner.com. In my case, I find myself going to a toon, and then adjusting my settings a few times to get it just right (or, in recent cases of one of my Linux machines, getting the Flash player to appear). The bad thing is that, after doing that, the very beginning of the toon is unpleasantly seared into my brain, after hearing it several times on several occasions. Please and thanks, Soiled Bargains (talk|ctrb) 19:53, 5 November 2011 (UTC)
- Someone has told me about the Firefox extension BarTab for Firefox versions 4.0b6 and below, which doesn't automatically load tabs when a browser session is restored. Then I learned that Firefox 4 through 7 have had an option like this available as a hidden option; in Firefox 8 it will be available through the Preferences window. I guess my request is no more, seeing as I have other options. —Soiled Bargains (talk|ctrb) 20:25, 5 November 2011 (UTC)
- Hahaha, what timing. Firefox 8 is out three days later. I did not see that coming. —Soiled Bargains (talk|ctrb) 22:33, 8 November 2011 (UTC)
Flipper broken
The flipper function (that turns the website upside down) is broken. Can you please either remove the function or mirror the flipper SWF on mrphlip.com? Dagoth (I mean that it shows a 404'd error in place of the flipped page)
- I'll have a bit of a look, but I'm not sure it'd work to mirror the SWF... Flash tends to get tetchy about that sort of cross-domain nonsense. Anyway, I haven't really touched this script in some time, and unless the hiatus ends, I probably won't any time soon... --phlip TC 09:48, 25 March 2013 (UTC)
- Yeah, doesn't work. I've disabled the flipper in the script... I didn't bother to set the "updated" flag, though, so it won't get sent out through the update notification thing... no need to alert people to have to pick this up just because a feature's getting removed. If you feel the need to have the non-working option disappear from your options, though, you can just click the "install the script" link on the page here. --phlip TC 10:50, 25 March 2013 (UTC)
Chromified All-In-One Prototype
Update: It's highly recommended to either use the CRX, or the original script with Tampermonkey, like DeFender mentioned. I might add this to the Chrome App Store, but I'd like to make sure it's mostly bug-free, first. Downlods:
- Chrome CRX (adds button to toolbar instead of in-window): http://cl.ly/QlpQ/HRAIO.crx
- Chrome CRX source: http://cl.ly/Qlse/HRAIO.zip
- Tampermonkey: https://chrome.google.com/webstore/detail/tampermonkey/dhdgffkkebhmkfjojejmpbldmpobfkfo?hl=en
I modified the userscript to work with Chrome (I have version 28.0.1500.95). It's a bit of a hack, but hey-- it works for the most part!
I tested the basics, if anyone wants to test it, download it here: http://cl.ly/QkAX/allinone.user.js
To install:
1. Download the file (it'll likely complain that you can only use the Chrome App Store, ignore it because it's downloaded anyway) 2. Go to your Downloads folder and find HRAIO.crx 3. Open the URL chrome://extensions in Chrome and drag and drop the HRAIO.crx into that window. 4. Click Accept/OK/Sure/whatever it says when it asks about security to install it.
Atari 02:13, 8 August 2013 (UTC), edited 15:11, 12 August 2013 (UTC)
edit by Gh0st
yes it works kindof navigation bar works, however subtitles do not when enabled do you want to possibly contact me to work on this script gh0sti at me dot com
- Phlip's original script works (almost) perfectly fine with tampermonkey installed. (The almost is that the "back one frame" button has the | and the < on separate lines, making it look slightly wrong. Other than that, it's perfect.) — Defender1031*Talk 18:01, 10 August 2013 (UTC)
- I wasn't even aware that was a thing, honestly! If anything, I'm just going to keep working on this in case people don't want to download another extension for whatever reason. Also because I find it fun, cough cough. The "|<" is a problem even without tampermonkey, so it must be a Chrome thing. I'll start to look into that, even if just because of cosmetic reasons. Also, gh0st, what's the problem with the navbar/subtitles? I've got this just fine: screenshot Atari 20:54, 10 August 2013 (UTC)
- Hmm... try this:
prevButton.style.whiteSpace = "nowrap";
should fix the wrapping, though I haven't tested it. As for the subtitles, it looks like you're still using GM_xmlHttpRequest to fetch those, so presumably you have something set up that lets you do that... I doubt Chrome has that builtin (and what it does have builtin wouldn't let you make a replacement, since it's cross-site and all). --phlip TC 23:09, 10 August 2013 (UTC)- That bit of code worked out! Although, I'm kinda confused on why Chrome would decide to wrap a button. With the subtitles, I honestly don't know what in my version of Chrome is making it work. Even with only the All-in-one extension added, it works. I tried looking it up and it seems to be implied that it was broken on version 27, but it works on 28 (which is odd in the first place because GM_ is GreaseMonkey, not Chrome), as referenced by this issue in the bugtracker. Atari 14:58, 11 August 2013 (UTC)
- Hmm... try this:
- I wasn't even aware that was a thing, honestly! If anything, I'm just going to keep working on this in case people don't want to download another extension for whatever reason. Also because I find it fun, cough cough. The "|<" is a problem even without tampermonkey, so it must be a Chrome thing. I'll start to look into that, even if just because of cosmetic reasons. Also, gh0st, what's the problem with the navbar/subtitles? I've got this just fine: screenshot Atari 20:54, 10 August 2013 (UTC)
what if you made it a plugin in the chrome store possibly easier to update?? and philip are you back to help code it to work again?
- I decided to work on this one and came up with this buggy little .crx in the first post.
It's got some problems with the scaling that I couldn't figure out (if anyone could help, that'd be great; I just have to wait for tomorrow to upload the source)I think I got it figured out; at least it's scrolling. I'm much better with making my own code than editing that of others', so I wouldn't be surprised if I made a mess out of it. But hey, now the button's in the Chrome toolbar! Atari 22:36, 11 August 2013 (UTC), edited 15:11, 12 August 2013 (UTC)
@Gh0sti : Subtitles still do not work on the latest version you have put up, everything else seems to be working
- Other than the seek bar not turning off, this works pretty good. --mr_nutt 12:39, 14 August 2013 (UTC)
- Just looked into this and you're right; localStorage doesn't cross between site to extension, meaning all settings are stored somewhere they can't be accessed. I'll try to figure out a fix for this as soon as possible. Atari 17:49, 14 August 2013 (UTC)
- Other than the seek bar not turning off, this works pretty good. --mr_nutt 12:39, 14 August 2013 (UTC)
@Gh0sti: so how goes the updating of the plugin for chrome the subtitles still doesnt work and also looks like chrome wont let you install extensions unless its from the chrome store 12/1/2013
Unfortunately, this project seems dead. A real shame too since it was mostly working at one point. Though mind you, they might be struggling to get it in the Chrome Store for all I know. --mr_nutt 22:38, 25 September 2014 (UTC)
- I said it above and i'll say it again. The original script works almost perfectly in tampermonkey. Just use that and stop complaining. — Defender1031*Talk 18:01, 10 August 2013 (UTC)
With the new version 4.0 release, there is now a fully Chrome-compatible version of this script. --phlip TC 21:17, 7 October 2014 (UTC)
Chrome plugin
I really like how simple the plugin is now, but I notice the frame counter is gone. That was really useful for finding hidden sections of the video, as well as a way to tell someone what frame to start on to see or hear a specific moment. If that can be added back in, that would be fantastic. Homestar3.14 23:41, 8 October 2014 (UTC)
- It's still there... it's just turned off by default. Hit the settings menu in the top left. --phlip TC 00:31, 9 October 2014 (UTC)
- ...*facepalm* Thanks. My eyes must have slid right past that when I went to turn on the subtitles. Homestar3.14 00:55, 9 October 2014 (UTC)
Kitkorp version
Phlip, Why don't you make a Kitkorp version? --207.255.156.241 00:10, 10 March 2015 (UTC)
Chrome Plain HTML NavBar still shows Subscribe
Will it be updated soon? Catjaz63 15:17, 29 March 2015 (UTC)
- I've updated it in the Chrome Web Store, I'm not sure how long that takes updates to filter down. Maybe try checking for updates in Chrome manually? --phlip TC 22:25, 29 March 2015 (UTC)
- Hey! Thanks for replying! I reinstalled the plugin and it still hasn't changed. Probably takes awhile for it to go through Google's servers. - Catjaz63 01:02, 30 March 2015 (UTC)
.html v. .swf
Since games.html (Scrolling Shooter Games Menu) and games.swf (Third Games Menu) contain two separate menus, they may need to be separately this.addHRWikiLink'd if such a thing is possible. DEI DAT VM┌datvm center\super contra┘ 17:00, 10 June 2015 (UTC)
- Same with slash/slash (Easter Egg from Screenland - 24 Apr 2017), which, in the extension, links to Index Page. DEI DAT VM┌datvm center\super contra┘ 13:35, 18 July 2017 (UTC)
FireFox Quantum
The script seems to not load in the new FireFox Quantum. I upgraded to Greasemonkey 4.0 as well.— Bassbone (TALK CONT) 20:29, 14 November 2017 (UTC)
- I'm having the same problem, for the record. Can anyone shed some light? Lira (talk) 02:31, 17 November 2017 (UTC)
- They elected to rewrite Greasemonkey nearly completely for version 4.0; as such there are many things that are backwards incompatible. We'll let you know when we have more details or a solution. — It's dot com 04:43, 17 November 2017 (UTC)
- I believe that Firefox 57 can only use WebExtensions-based add-ons (and indeed, I can get the Chrome add-on partially working in Firefox, with the main caveat being the subtitles breaking if "check if next exists" is checked). Given this, would it be possible to get a fully-working version of the extension on the Mozilla add-ons site rather than a Greasemonkey script on this wiki? And would that be worth doing? DEI
DAT
VM┌datvm center\super contra┘ 10:59, 17 November 2017 (UTC)
- Then, whoever created this userscript must make it Quantum-compatible! --198.37.214.254 15:27, 18 November 2017 (UTC)
- "Must"? Whatever happened to "Please" and "Thank you"? --Stux 03:41, 19 November 2017 (UTC)
- Can you get whoever created this userscript to make it Quantum-compatible, please? Thank you. --198.37.214.254 14:23, 19 November 2017 (UTC)
- "Must"? Whatever happened to "Please" and "Thank you"? --Stux 03:41, 19 November 2017 (UTC)
- Then, whoever created this userscript must make it Quantum-compatible! --198.37.214.254 15:27, 18 November 2017 (UTC)
- I believe that Firefox 57 can only use WebExtensions-based add-ons (and indeed, I can get the Chrome add-on partially working in Firefox, with the main caveat being the subtitles breaking if "check if next exists" is checked). Given this, would it be possible to get a fully-working version of the extension on the Mozilla add-ons site rather than a Greasemonkey script on this wiki? And would that be worth doing? DEI
DAT
VM┌datvm center\super contra┘ 10:59, 17 November 2017 (UTC)
- They elected to rewrite Greasemonkey nearly completely for version 4.0; as such there are many things that are backwards incompatible. We'll let you know when we have more details or a solution. — It's dot com 04:43, 17 November 2017 (UTC)
OK, I've put up a bandaid fix that gets the script working again in Greasemonkey 4. It's a bit suboptimal as it won't remember your settings from prior versions, you'll have to pick your options again. It'll still keep remembering it going forward, though. Making it use the proper GM config storage will require some significant rewriting. Which I'll get to, but that's less pressing than just getting it working again. --phlip TC 04:47, 22 November 2017 (UTC)
- Have updated to a more thorough fix. Note that you might have to update the script manually, I think the bandaid fix potentially broke the "check for updates" feature. Once you have the new version it should go back to checking for updates normally again. --phlip TC 12:21, 24 November 2017 (UTC)
Subtitles not working in latest version
The subtitles in your script's new version doesn't work! Can you please fix it? --198.37.214.254 02:25, 2 December 2017 (UTC)
- Can you be a bit more specific? What browser are you using? What version of the browser? Can you give an example of a page where the subtitles aren't working? In what way "not working", are they just not showing up at all? Is it saying "loading" forever? Or is the "loading" message going away and the subtitles section disappearing? Or something else? --phlip TC 02:29, 2 December 2017 (UTC)
- Firefox Quantum and the subtitles loads forever! --198.37.214.254 02:46, 2 December 2017 (UTC)
Hmm. the subtitles are working just fine for me on Firefox. Can I get you to try something for me?
- Go to a toon on H*R.
- Press F12, to open up the developer panel, go to the Console tab.
- Open up the preferences panel for the script in the top left, and click the "Clear subtitles cache" button.
- Refresh the page.
- Let me know if there's any error messages in the console. It should looks something like this, let me know if there's any other messages there.
That should help me track down what's happening. --phlip TC 02:55, 2 December 2017 (UTC)
- Where's the preferences panel? --198.37.214.254 02:59, 2 December 2017 (UTC)
- EDIT; The subtitles works now. Thanks, mind games! --198.37.214.254 03:02, 2 December 2017 (UTC)
HTTPS support
The site has moved to HTTPS. Partial support can be achieved by changing the http:// to *:// (which covers HTTP and HTTPS only), but I'm missing a whole lot of features. (The)trlkly 00:41, 11 March 2018 (UTC)]
Additional info: if I got back to the previous version, it works just fine, once I change the @match URLs as above. It is possible that the problem is just that the new GM4 version doesn't work well with TamperMonkey (on Chrome, in my case. I can't edit the version in the Chrome store without a bunch of hassle.) --(The)trlkly 00:51, 11 March 2018 (UTC)
- Yeah, I know there can be some subtle differences between Greasemonkey and Tampermonkey (I have some other scripts I maintain that have to work in both). I haven't really put that effort in here since the Chrome Web Store version exists. But I do know TM is compatible with GM3 not GM4. But then, the script should work with either GM3 or GM4? I dunno. Maybe I'll take a look. But I'll do the HTTPS thing, sure. --phlip TC 01:04, 11 March 2018 (UTC)
- The latest TamperMonkey implements both APIs, actually. In my own scripts, that actually tripped me up at first. I had to test for the absence of GM_ functions for GM4, rather than testing for the GM object.
- Also, I've actually had to roll back to 4.0.65 to get full compatibility. --(The)trlkly 01:15, 11 March 2018 (UTC)
- So, good news: I figured out what was wrong on Tampermonkey, so the latest script seems to work there now. Bad news: I can't get the HTTPS pages working in the Chrome extension proper for now... because the calls to the Wiki to download subtitles etc are blocked as mixed content, and the workaround for that means doing something more fancy with the Chrome stuff than just stuffing a Greasemonkey script inside a CRX and going to town. I'll look into it when I get the chance, but no promises on anything soon. --phlip TC 11:48, 11 March 2018 (UTC)
- Thanks for the fix. It works for me, too. Personally, I'm fine with using it on Tampermonkey. It frees up space in my rows of addon buttons. The only problem is that installation/updating is annoying, since I have to copy and paste. The &fakeextension=.user.js URL trick doesn't seem to trigger TM's install dialog. (The)trlkly 21:41, 12 March 2018 (UTC)
- So, good news: I figured out what was wrong on Tampermonkey, so the latest script seems to work there now. Bad news: I can't get the HTTPS pages working in the Chrome extension proper for now... because the calls to the Wiki to download subtitles etc are blocked as mixed content, and the workaround for that means doing something more fancy with the Chrome stuff than just stuffing a Greasemonkey script inside a CRX and going to town. I'll look into it when I get the chance, but no promises on anything soon. --phlip TC 11:48, 11 March 2018 (UTC)
Yo
Will you update Homestar All-in-One for Ruffle?
- From what I've found, poking around in Ruffle so far, it doesn't seem to have a lot of the external API needed to interface with a script like this... there doesn't seem to be a call to get where the movie is currently playing, for instance, which would make things like the seekbar and the subtitles impossible. I'll keep an eye on their developments, but currently it's not really an option. --phlip TC 12:02, 5 January 2021 (UTC)
- Not so quick question: is the external API that this script needs part of AVM1 or AVM2/AS3? (Or "Yes", or neither?) Is it possible to tell if one or more issues have been raised for this external API from the two master issues linked? (Sorry I'm still a little hazy on the difference between AVM0/1/2 and ActionScript and whatever else constitutes as part of the Flash architecture.) --Stux 12:57, 5 January 2021 (UTC)
- It's not really the same thing... those ActionScript whatevers all deal with the scripts that are running inside the SWF. So, like, what all the games are implemented in, all the buttons and clickable Easter eggs, and whatnot. They're internal APIs inside the Flash object. What I'm looking at is an external API exposed by the Flash plugin to the host... for our purposes, that means JavaScript in the surrounding page (or JavaScript which has been injected into the page by a plugin like GM). It resembles the AS1 api, but it has some subtle differences, and it's really a different beast. I'm not sure it's even on Ruffle's radar at this point (and it would probably be quite low on the priority ladder if it is). --phlip TC 13:05, 5 January 2021 (UTC)
- Ah, thank you for clarifying Phlip! That makes a bit more sense. I've documented your response in my tracking page for posterity. Hopefully in the not-too-distant future I can file a ticket for that. (I should also check and see if Lightspark has support for that.)
- Also if you don't mind, to further clarify my mental image of the Flash architecture: are AVM0/1/2 then the spec for the bytecode that the Flash VM executes while Actionscript is the source language that is compiled into the appropriate bytecode? --Stux 13:31, 5 January 2021 (UTC)
- Oh, I think I just answered my own question while reading the examples section of the WP article I linked to:
- ActionScript executes in the ActionScript Virtual Machine (AVM), which is part of Flash Player and AIR. ActionScript code is typically transformed into bytecode format by a compiler.
- So it seems my guess is correct? --Stux 13:35, 5 January 2021 (UTC)
- It's not really the same thing... those ActionScript whatevers all deal with the scripts that are running inside the SWF. So, like, what all the games are implemented in, all the buttons and clickable Easter eggs, and whatnot. They're internal APIs inside the Flash object. What I'm looking at is an external API exposed by the Flash plugin to the host... for our purposes, that means JavaScript in the surrounding page (or JavaScript which has been injected into the page by a plugin like GM). It resembles the AS1 api, but it has some subtle differences, and it's really a different beast. I'm not sure it's even on Ruffle's radar at this point (and it would probably be quite low on the priority ladder if it is). --phlip TC 13:05, 5 January 2021 (UTC)
- Not so quick question: is the external API that this script needs part of AVM1 or AVM2/AS3? (Or "Yes", or neither?) Is it possible to tell if one or more issues have been raised for this external API from the two master issues linked? (Sorry I'm still a little hazy on the difference between AVM0/1/2 and ActionScript and whatever else constitutes as part of the Flash architecture.) --Stux 12:57, 5 January 2021 (UTC)
Gh0sti (1/6/2020): Flashpoint a project to grant everyone access to everything that is of flash content, games and animation. Flashpoint does have a fork of firefox called basalisk that can run extensions like greasemonkey. Somehow greasemonkey can be enabled I just need to get that extension working within the app and see if the script can load. https://bluemaxima.org/flashpoint/