• Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
  • Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!

You are not logged in or you do not have permission to access this page. This could be due to one of several reasons:

  • You are not logged in. If you are already registered, fill in the form below to log in, or follow the "Sign Up" link to register a new account.
  • You may not have sufficient privileges to access this page. Are you trying to edit someone else's post, access administrative features or some other privileged system?
  • If you are trying to post, the administrator may have disabled your account, or it may be awaiting activation.

Previously on "Finally you can kill off dull threads... literally"

Collapse

  • shaunbhoy
    replied
    Originally posted by MarillionFan View Post

    I now have a reason to visit Monday Links.
    Why would you want one?

    Leave a comment:


  • NickFitz
    replied
    Originally posted by xoggoth View Post
    Brill. I didn't know you could put jscript in the address bar. All sorts of possibilities there.
    It's a really handy way to debug stuff, if you have the page's structure in your head. For example:

    Code:
    javascript:alert(document.getElementById("post_message_1213143").innerHTML);
    will show the textual serialisation of the internal DOM structure of this post. (If the resultant dialog flows off the bottom of your screen, Just Press Return to get rid of it.) That's pretty trivial (except when it lets you determine that different browsers are interpreting markup differently), but if you know your way around the DOM you can use the same approach to find out computed styles and all kinds of other useful info.

    Of course we now have much better tools like Firebug for Firefox*, Web Inspector in Safari and Chrome, Dragonfly in Opera, and Microsoft® Web Developer Tools for Internet Explorer™ in IE8™ and IE9 Beta™ that render much of this redundant; but I still use such techniques regularly when debugging stuff on...

    Originally posted by d000hg View Post
    • Nick to come and explain it, probably with some reference to IE6
    ...IE6™ on a machine where I can't install either the Microsoft® Web Developer Toolbar™ or Microsoft® Visual Studio Web Developer 2008 Express Edition™, both of which can be extremely useful once you suss out the remarkably recondite manners of their workings. (I mean, really, I have to create an empty ASP.NET™ project, launch it, and then send the new browser instance created thereby to the site I actually want to debug? Pur-lease.)

    * That reminds me: at ClientOrg last year I was able to find a bug in Firebug by using the javascript: URL technique to determine that it was reporting incorrect values. This was on pre-beta versions of both FF 3.wotever and FB x.wotever-was-intended-to-work-on-3.wotever, but that bug report helped the Firebug folk to get it fixed by the time 3.wotever was released
    Last edited by NickFitz; 19 October 2010, 03:10.

    Leave a comment:


  • dang65
    replied
    Originally posted by xoggoth View Post
    Brill. I didn't know you could put jscript in the address bar. All sorts of possibilities there.
    Check out Bookmarklets. Some of them are quite useful.

    Leave a comment:


  • d000hg
    replied
    Happily/Sadly it's non-permanent. So running it on SKA will have no long-term effect.

    Leave a comment:


  • OwlHoot
    replied
    Originally posted by d000hg View Post

    In your web-address bar paste the following and hit enter:

    Code:
    javascript:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);
    You'll get a little spaceship to literally let you destroy the Flash adverts, or GricerBoy's posts, etc.

    I tested in Chrome and IE8.

    To the best of my knowledge there is nothing dodgy about this. Probably won't look great to play at work though.

    edit: Tried to fix line-breaks in quote...
    What happens if it runs amok, and starts zapping threads you _do_ care about?

    Leave a comment:


  • d000hg
    replied
    I'm waiting for 2 things:
    1. Nick to come and explain it, probably with some reference to IE6
    2. Minestrone to claim he can knock up something better overnight, but isn't going to

    Leave a comment:


  • MarillionFan
    replied
    Brill. Didn't think that was poss.

    I now have a reason to visit Monday Links.

    Pow pow pow!!

    Leave a comment:


  • xoggoth
    replied
    Brill. I didn't know you could put jscript in the address bar. All sorts of possibilities there.

    Leave a comment:


  • d000hg
    replied
    Originally posted by gingerjedi View Post
    No, can't get it to work in either IE8 or Chrome??
    I edited my post slightly, should be able to just copy-paste the code now. I tested it by destroying your comment prior to posting

    Leave a comment:


  • thunderlizard
    replied
    Groovy! It works for me in Firefox and IE8 (ignore the js error) once the space in "ht tp" has been removed.

    Leave a comment:


  • gingerjedi
    replied
    No, can't get it to work in either IE8 or Chrome??

    Leave a comment:


  • d000hg
    started a topic Finally you can kill off dull threads... literally

    Finally you can kill off dull threads... literally

    In your web-address bar paste the following and hit enter:

    Code:
    javascript:var s = document.createElement('script');s.type='text/javascript';document.body.appendChild(s);s.src='http://erkie.github.com/asteroids.min.js';void(0);
    You'll get a little spaceship to literally let you destroy the Flash adverts, or GricerBoy's posts, etc.

    I tested in Chrome and IE8.

    To the best of my knowledge there is nothing dodgy about this. Probably won't look great to play at work though.

    edit: Tried to fix line-breaks in quote...
    Last edited by d000hg; 18 October 2010, 16:28.

Working...
X