Results 1 to 2 of 2

Thread: [guide] King Bookmarklets

  1. #1

    Joined
    Jun 2012
    Posts
    61
    Userbars
    2
    Thanks
    13
    Thanked
    26/13
    DL/UL
    7/0
    Mentioned
    16 times
    Time Online
    1d 10h 5m
    Avg. Time Online
    N/A

    [guide] King Bookmarklets

    Sick of having to find the correct drop downs for that Grumpy Old King Skarrl? Annoyed with picking random ones for the Wise King? Now you dont have to.

    First of all, these have a way smaller freeze risk than even GreaseMonkey Scripts since it's just a little javascript trick.

    Wise King
    Code:
    javascript:(function(){var numQs = 7; for (var i = 0; i < numQs; ++i) { var q = document.getElementById(%22qp%22 + (i + 1)); q.selectedIndex = 1 + Math.floor(Math.random()*(q.length - 2)); }})()
    Grumpy King
    Code:
    javascript:(function(){document.getElementById(%22qp1%22).value%20=%20%22What%22;%20document.getElementById(%22qp2%22).value%20=%20%22do%22;%20document.getElementById(%22qp3%22).value%20=%20%22you%20do%20if%22;%20document.getElementById(%22qp4%22).value%20=%20%22%22;%20document.getElementById(%22qp5%22).value%20=%20%22fierce%22;%20document.getElementById(%22qp6%22).value%20=%20%22Peophins%22;%20document.getElementById(%22qp7%22).value%20=%20%22%22;%20document.getElementById(%22qp8%22).value%20=%20%22has%20eaten%20too%20much%22;%20document.getElementById(%22qp9%22).value%20=%20%22%22;%20document.getElementById(%22qp10%22).value%20=%20%22tin%20of%20olives%22;%20var%20numQs%20=%208;%20for%20(var%20i%20=%200;%20i%20<%20numQs;%20++i)%20{%20var%20q%20=%20document.getElementById(%22ap%22%20+%20(i%20+%201));%20q.selectedIndex%20=%201%20+%20Math.floor(Math.random()*(q.length%20-%202));%20}})()
    Copy and paste these into a bookmark and then once you go to the Kings page just click that bookmark and the fields should be filled in.

    Now I don't take original credit for these but I've been using them for quite a while and I don't remember where I got them. But they are quite useful.

    Hope this will help you get the avatar, it's alot less work and made me happy when I first found them.

  2. The Following User Says Thank You to jkingaround For This Useful Post:

    SmileYaDead (07-13-2012)

  3. #2
    SmileYaDead's Avatar
    Joined
    Feb 2012
    Posts
    3,611
    Userbars
    7
    Thanks
    835
    Thanked
    842/474
    DL/UL
    129/0
    Mentioned
    355 times
    Time Online
    89d 14h 56m
    Avg. Time Online
    30m
    These are great, thanks!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •