Enquirer Home Page | Twitter | Back to Improbable Island

 Forum Index > Off-Topic > Out-of-Game New Topic Post Reply
 A Greasemonkey Script: Truancy Meter
 |  Printable Version
Maniak
 Tuesday, April 05 2011 @ 03:05 PM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 10/11/10
Posts: 298

Try fiddling with the @include part of the script. Mine is changed from

PHP Formatted Code
// ==UserScript==
// @name           Improbable Island Bar Limiter
// @description    Bar Limiter. Credit to bl0b, modified by Tahvohck
// @include        http://*.improbableisland.com/inventory.php?*
// @exclude        http://enquirer.improbableisland.com/*
// @exclude        http://labs.improbableisland.com/*
// ==/UserScript==


to
PHP Formatted Code
// ==UserScript==
// @name           Improbable Island Bar Limiter
// @description    Bar Limiter. Credit to bl0b, modified by Tahvohck
// @include        http://*improbableisland.com/inventory.php?*
// @exclude        http://enquirer.improbableisland.com/*
// @exclude        http://labs.improbableisland.com/*
// ==/UserScript==


I basically removed the dot in the 3rd line.

Abandoned Factory: I'd rather not spend 5 hours coding something that's a 5 minute fix for CMJ.


http://maniak.cu.cc/
 
Profile Email Website
Quote
Beeps
 Thursday, April 07 2011 @ 03:36 AM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 10/03/10
Posts: 400

I'm with Maniak on this one. Unless CMJ's uncovered deeper issues that he's just keeping quiet about, the cause has been known since November.


Goat Collector
 
Profile Email
Quote
Tahvohck
 Thursday, April 07 2011 @ 04:24 AM UTC  
Forum Contender
Contender

Status: offline

Registered: 10/15/10
Posts: 65

Actually, (unless I'm lost) the problem with the bar limiter is that it was designed for Greasemonkey, and therefore has GM-specific code that doesn't work in Opera.


 
Profile Email
Quote
bl0b
 Thursday, April 07 2011 @ 03:09 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 06/19/10
Posts: 66

Well, actually, the ones that are FF-only commands are the ones that start with GM_ with a few added to the bunch. So barely any script in this thread should work for Opera.
Using the script I posted earlier in the thread, it should fix most of the issues with opera. With this script added, I managed to run everything posted in this thread.
But from what I understand, Buddleia is using Chrome.

I'm guessing that Chrome should be better at supporting GM, but might still have some kinks. My guess is that it must be GM_registerMenuCommand function causing some problems.
Buddleia, try using the older version (page 2 in this thread). I don't run chrome though, so I can't really tell what's going on.

Ok, threw together another script. Activates when viewing inventory and when on a map square. What it will do is it will add a new window with a map in it under the donations button. Change the address to a map or any other web address of your choice.
Be careful though, you will reload the windowed webpage everytime you load the main page.

PHP Formatted Code

// ==UserScript==
// @name           map
// @include        http://*improbableisland.com/runmodule.php?module=worldmapen&*
// @include        http://*improbableisland.com/inventory.php?items_*
// @exclude        http://enquirer.improbableisland.com/*
// @exclude        http://labs.improbableisland.com/*
// ==/UserScript==


var getRef = document.getElementById("donator");

var makeIframe = document.createElement("iframe");

makeIframe.setAttribute("height", "350px");
makeIframe.setAttribute("width", "200px");
makeIframe.setAttribute("src", "http://fc02.deviantart.net/fs70/f/2009/342/a/4/Full_Improbable_Island_Map_by_betterwatchit.png");

var parentDiv = getRef.parentNode;
parentDiv.insertBefore(makeIframe, getRef);




Map was the first pic I found on google. If you want it to only pop up when you are doing a request stop, then you'll have to fiddle about with it (Change @include lines, as I don't know the address). If you really want a map, it's probably also easier to view it in another tab instead of in a small window, but hey, if nothing else, change the address, and you can send emails WHILE you play the game.


 
Profile Email
Quote
Count Sessine
 Thursday, April 07 2011 @ 03:48 PM UTC  
Forum Moderator
Moderator

Status: offline

Registered: 08/16/08
Posts: 1402

I don't use Greasemonkey, so possibly I'm missing the point, but... isn't this overthinking it?

Activates when viewing inventory and when on a map square. What it will do is it will add a new window with a map in it under the donations button. ... If you want it to only pop up when you are doing a request stop, then you'll have to fiddle about with it...
Why use the browser for this? The Island's map is a static graphic that hasn't changed since ... well, I was going to say, since the game began -- but at least since I started playing.

Is there any advantage to using a script, rather than doing a simple screen capture of the map and saving the file on your hard drive -- where you can look at it any time you want no matter what you're doing on the Island?


 
Profile Email
Quote
bl0b
 Thursday, April 07 2011 @ 04:30 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 06/19/10
Posts: 66

Yeah, it's a big overkill. Problem is, I'm a bit lazy. That's also the reason it's under the donator button. It's the only 'div' with and 'id' on the page, if that makes any sense.
It's possible to add static images, but I'd need to play with it a bit.
Here's how you could do it
You'd need to convert the image first and stick it in the script itself. Might sit down in a few days and try and do it.
The difference between having it in the same window and having it open with a different program or in a different tab while requesting a stop is that it saves a second or so of looking back and forth between game and map. No real advantage there. Mainly I just wanted an excuse to have a script with an iframe for other potential scripts.


 
Profile Email
Quote
Tahvohck
 Thursday, April 07 2011 @ 09:36 PM UTC  
Forum Contender
Contender

Status: offline

Registered: 10/15/10
Posts: 65

Quote by: bl0b

Well, actually, the ones that are FF-only commands are the ones that start with GM_ with a few added to the bunch. So barely any script in this thread should work for Opera.



Yeah, that's what I was getting at. Guess I put it poorly.


 
Profile Email
Quote
Anonymous: fledermaus
 Tuesday, November 15 2011 @ 02:39 AM UTC  


Timed fighting turns the X seconds label into a countdown
The butchery guide remembers the food values of everything
you carve up, and adds a tooltip of (C, H, T) to every
"Clean the carcass of X" link it knows the values for.

The butchery info is stored in the DOM local storage cache,
so it's tied to the URL - it won't carry over from www.ii to
ii, but it should be shared just fine between your alts
(assuming you get to ii via the same URL for your alts).

If you want to copy the data you can grab it from the
store (in firefox/iceweasel et al) by grabbing it
from the SQLite table in webappsstore.sqlite.

select * from main.webappsstore2 where key like 'ii/food/%'


 
Quote
sre
 Thursday, November 17 2011 @ 04:43 PM UTC  
Forum Newbie
Newbie


Status: offline

Registered: 11/17/11
Posts: 2

sweet jumping chili beans...
Eek!

i...uh...yes, pencil and pad of paper for me it looks like


Gooder than grits.
 
Profile Email
Quote
Buddleia
 Saturday, May 12 2012 @ 11:31 PM UTC  
Forum Improbable Badass
Improbable Badass

Status: offline

Registered: 04/23/10
Posts: 343

There is now a wiki page for Greasemonkey scripts. Hopefully it's got all the details correct. Please post/update the wiki and/or this thread when new scripts are made!

Current list of scripts:

  • Truancy Meter - extra XP bars for when you can level up twice at once
  • Quest Tracker - remind you what/where on the Damnquest
  • Bar Limiter - destretch an overloaded inventory
  • Mail Check - a flashing red alert for Distractions
  • Newday Tracker - record your Joker/etc daily changes
  • Duct Tape - constant hotkeys
  • Factory Mapper (in beta) - help you map the Abandoned Factory
  • Council Offices - send threat levels data to the people tracking it
  • Rally Mapper - updates your in-game map for the 100-Pint Rally
  • Meat - caches the meat values for carcass cleaning
  • Island Map - click-to-view game map from anywhere Islandy, not just while travelling
  • Less Useful Island Map - a different version of the game map
  • HUD Resorter - move Global Banter down and Buffs up the right hand info bar


Many thanks to all who have written these pieces of magic! You guys are awesome. I enjoy the Island more for having some of these.


Improbable Reference Links - goo.gl/MRBnb -------------- Land Registry (map of Places) ---- goo.gl/bpkRR
 
Profile Email Website
Quote
Content generated in: 0.79 seconds
New Topic Post Reply



 All times are UTC. The time is now 11:15 AM.

Normal Topic Normal Topic
Locked Topic Locked Topic
Sticky Topic Sticky Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Anonymous users can post 
Filtered HTML Allowed 
Censored Content