User talk:Phlip/Greasemonkey

From Homestar Runner Wiki

(Difference between revisions)
Jump to: navigation, search
(Homestar-Fullon Edit: Short reply for Consonance.)
(2.1 release notes)
Line 42: Line 42:
:[[do over|Totally not getting old]], {{User:X-Spider2/X-Sigger2}} 22:57, 5 June 2006 (UTC)
:[[do over|Totally not getting old]], {{User:X-Spider2/X-Sigger2}} 22:57, 5 June 2006 (UTC)
-
:PS: I've tried to add a seconds counter to my Sydney clock, with this js code:
+
==Changes in 2.1==
-
 
+
*Tooltips in the preferences box
-
  var seconds = time.getUTCSeconds();
+
*The "more better" rando link is now always on... the less better version was just ugly, so I removed it.
-
  if (seconds < 10) { seconds = "0" + seconds; }
+
*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).
-
:but it doesn't work right, apparently. Think you can help me out?
+
**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.
-
 
+
Enjoy! {{User:Phlip/sig}} 00:44, 8 August 2006 (UTC)
-
::Thanks for fixing that, but I need a bit more help. I've tried to create a 1-click bookmarker, but it doesn't work correctly. This is line 23 on my JS:
+
-
 
+
-
  addQuickbarLink("javascript:AddBookmark();", "bookmark this page", "userpage");
+
-
 
+
-
::Think you can help me out again?
+
-
 
+
-
:::Nevermind. Left it out.
+
-
 
+
-
:::Made from crap,
+
-
:::{{User:X-Spider2/X-Sigger2}} of [[myths & legends|the Corn Army]] 23:54, 11 June 2006 (UTC)
+
-
 
+
-
::::One more thing. I've tried to add a page logs tab for myself on the fanstuff wiki, but again, there's something wrong in the code, which is:
+
-
 
+
-
<pre>
+
-
 
+
-
function addPageLogButton()
+
-
{
+
-
  var href = document.location.href;
+
-
  {
+
-
    var historyHref = document.getElementById( "ca-history" ).firstChild.href;
+
-
    var div = document.getElementById( "p-cactions" );
+
-
    var ul = div.getElementsByTagName( "ul" )[0];
+
-
    var newLi = document.createElement( "li" );
+
-
    var newA = document.createElement( "a" );
+
-
    newA.setAttribute( "href" , historyHref.replace( "/index.php?title=" , "/index.php?title=Special:Logs&target=" ) + historyHref.replace( "&action=history" , "" ) );
+
-
    var text = document.createTextNode( "page logs" );
+
-
    newA.appendChild( text );
+
-
    newLi.appendChild( newA );
+
-
    ul.appendChild( newLi );
+
-
  }
+
-
}
+
-
if ( window.addEventListener ) window.addEventListener( "load" , addPageLogButton , false );
+
-
else if ( window.attachEvent ) window.attachEvent( "onload", addPageLogButton );</pre>
+
-
 
+
-
::::Last time I'll ask,
+
-
::::{{User:X-Spider2/X-Sigger2}} 03:02, 14 July 2006 (UTC)
+

Revision as of 00:44, 8 August 2006

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)

Changes in 2.1

  • 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.

Enjoy! --phlip TC 00:44, 8 August 2006 (UTC)

Personal tools