Greasemonkey Scripts no longer compatible with new Firefox...

« Back

636 days, 11 hours, 1 minutes ago
Profile Image
megalomaniac
Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Greasemonkey Scripts no longer compatible with new Firefox update

Firefox just updated and has a new look. Unfortunately, the update broke all scripts for planets in Greasemonkey. I have a new game about to start and now would be a bad time to lose all the scripts. The announcement below does mention some scripts may break because of backwards incompatibility.

Has anyone has updated to Greasemonkey 4 to see if the scripts still work?

I am considering trying to downgrade firefox (it seemed to auto update and might do so again and break scripts).

https://www.greasespot.net/2017/09/greasemonkey-4-announcement.html

https://www.greasespot.net/2017/09/greasemonkey-4-for-users.html


Cheers,

MEGA
636 days, 10 hours, 49 minutes ago
Profile Image
frostriese
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
there is an update for Greasemonkey

https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/

try it
636 days, 8 hours, 56 minutes ago
Profile Image
frostriese
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
There is no way to "migrate" userscripts from Greasemonkey to Tampermonkey ... except the Copy and Past style as in 90ies ^^

Here some hints how to find the scripts :)

https://forum.tampermonkey.net/viewtopic.php?t=793

https://github.com/Tampermonkey/tampermonkey/issues/306
636 days, 6 hours, 58 minutes ago
Profile Image
mcnimble
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
subscribing.

(no luck with GreaseMonkey on a brand new firefox 57 install, so far)
636 days, 6 hours, 50 minutes ago
Profile Image
mcnimble
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Tried TamperMonkey, that still works.
636 days, 5 hours, 51 minutes ago
Profile Image
mcnimble
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
For users:

It seems likely that most scripts should still work, but mine certainly do not (exception: HideMapTip).

Suggestion 1: disable my plugins,

Suggestion 2: switch to TamperMonkey.

Suggestion 3: wait a couple of days until I either update my plugins, or settle definitively on suggestion 2.

----------------------

For plugin developers:

My HideMapTip still works. The reason: it still has the so-called 'wrapper construct' when loading the plugin.

FWIW: GreaseMonkey also introduced a backwards incompatibility (which those announcements speak of) related to the plugin header. If you use GM_info or anything like it, that is now GM.info. No idea whether TamperMonkey will follow or not.

636 days, 3 hours, 31 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Hail,

Thanks for the assist @Frostreise and @McNimble.

1. Greasemonkey automatically updated with firefox so I am am already up to date with Firefox Quantam 57 and Greasemonkey 4.0
I see I had about 21 scripts and NONE of them work. I can highlight each one and have the option to enable, disable, edit or uninstall. Disabling and re-enabling a few didn't work.
It looks like this https://imgur.com/DWNBzaW

2. Edit - I presume this means I can edit the script locally without affecting the main script that has been uploaded. If there were a simple few lines I could change and then cut and paste into every script, I could try that but I wouldn't know where to make the changes and of course this doesn't fix the scripts for others.

3. Tampermonkey --> I just installed Tampermonkey and manually found each js file and zipped them. When I attempt to import into Tampermonkey I get "Unable to parse this!

It was a rar file so I renamed to .zip and got the same error. I then removed the space so the zip file was greasemonkeyscripts.zip and still got the same error message. I tried to manually import one file and got the same message.

What am I doing wrong with importing from Greasemonkey to Tampermonkey?

Thanks in advance

MEGA
636 days, 2 hours, 19 minutes ago
Profile Image
frostriese
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
For using Tampermonkey you have to copy the user.js content (from the Greasemonkey profile directory) into a new script in Tampermonkey ... no worries ... the code contains all metadata like name, include and so on.
636 days, 2 hours, 16 minutes ago
Profile Image
blackpooldragon
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Bookmarking
636 days, 1 hours, 36 minutes ago
Profile Image
mcnimble
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
What I noticed when I disabled TamperMonkey to try things again in GreaseMonkey, and tried to install scripts with the latter, is that Firefox still passed them to the former.

So I suggest removing GreaseMonkey altogether, if you have not done so.

I would also suggest going to greasefork (and my site https://chmeee.org/project/planets.nu/ for my scripts) to (re)install, rather than copying and pasting JavaScript.

As for the specifics
(1) 21 and none work, seems my estimate was plain wrong :(
(2) It'd be adding lines and some search-and-replace, and hoping nothing else comes up.
(3) don't zip/rar/whatever, just copy+paste if you don't go with my recommendation above ;)
636 days, 1 hours, 24 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Hail,


Ok, I did the cut and paste thing and I think all 21 scripts may be working. At first I pasted below the line where it says your script starts here but that didn't work. I completely pasted into new user script overwriting the items there and the script got the correct name when I saved it.

I did get an error message saying I MineSweepReporter needs the latest Planets.nu Plugin Toolkit to be installed and clicked HERE but that goes to the userscripts.org site which times out and I seem to recall was defunct.

I will do some more testing later but a quick glance shows most scripts look ok. Will they automatically update as they did previously?

I seem to recall there were some scripts I disabled in Greasemonkey but I think they are all enabled in Tampermonkey. As I recall, one of the scripts to find games got broken when the interest section was started so I had to disable it but so far the game list and interest section looks fine. Greasemonkey is still active and they work for me but I will disable as I only use it for Planets anyway.

Thanks again,

MEGA
636 days, 1 hours, 21 minutes ago
Profile Image
frostriese
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
There are two Toolkit addons - they must be on first/second place. In *monkey you can drag n drop the scripts to order them
635 days, 22 hours, 59 minutes ago
Profile Image
mekusi
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
subscribe. Firefox 57 hasn't hit linux mint yet, but I'm sure it will eventually.
635 days, 18 hours, 22 minutes ago
View psydev's profile
psydev
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
To anyone installing Tampermonkey, be sure to install McNimble's toolkit first. Or else later you can re-arrange the script order.
If the toolkit doesn't run first, the other scripts won't work.

Question:
Given that I just installed Tampermonkey and re-installed the Enemy Ships Plugin, why is all my enemy ship data still there? Where did Tampermonkey get that data? Is that data stored on the web somewhere?
635 days, 17 hours, 10 minutes ago
Profile Image
glyn
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
@Psydev: It stores it in your browser local storage area.

FYI: You have to use the same prefix, if you normally use http://play.planets.nu and then use http://test.planets.nu for example, the plugins data won't be available.
635 days, 11 hours, 23 minutes ago
Profile Image
mcnimble
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
I declare my scripts incompatible with GreaseMonkey 4 and I strongly recommend to use TamperMonkey instead.

Seems to me that GreaseMonkey 4 is in an alpha state, at best. It is certainly incomplete, and the docs are suggesting workarounds 'for the short term'. Also, the specific thing claimed to be impossible(!) with Firefox 57, that breaks my scripts, is something that TamperMonkey still does smoothly.


635 days, 11 hours, 14 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Hail,

I just downloaded McNimble Toolbox and all the scripts save the keyboard and netbook one. I like the look so far. I have to make sure all the scripts play together nicely with the 21 I had before. Downloading from the site into Tampermonkey was easy.

The Dashboard screen in Tampermonkey has a sort column which is the next to last column and I moved McNimble toolkit into second place behind the planets plug in toolkit and so far it looks to work fine.

The first thing that really pops out is you have created chunnel direction with the line width. That was on my borg wishlist forever. It even makes ship direction easier to see. Nice job @McNimble

Cheers,

MEGA
635 days, 10 hours, 4 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Hail,

@McNimble

Is there a way to increase the font size of the notes and messages? I have to unzoom Firefox to 90% so I can see the quickeys script on ship screen and growth limit and happiness on planet screen (a tax script that I find useful for showing the growth limit on the planet screen). This means the font size is particularly small on the messages. I see I can change planet size and @glyn has his own larger planet size (Probably to stow all the ships his crystals capture). Zooming in makes the font larger but I find myself constantly zooming back and forth.

I do like the automatic HYP circles when selecting a HYP ship. The only thing I miss so far is the ability to give my planets their own color if they had a SB or special event but small sacrifice for all the benefits I now get. I am learning more features as I play around with a test game.


Thanks

MEGA
635 days, 3 hours, 4 minutes ago
Profile Image
glyn
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
I like big dots and I can not lie
You other brothers can't deny
That when a dot walks in with an itty bitty crosshair
And a round thing in your face
You get sprung, want to pull up tough
'Cause you notice that dot was stuffed
634 days, 4 hours, 9 minutes ago
View whisperer's profile
whisperer
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
A note on Firefox 57 from Stephen Northcutt of SANS (https://www.sans.org/):

> about 70% of the code was refactored, or at least touched, in the update. That makes security problems likely. Suggest you use it for general browsing and a different browser for banking and online commerce.
634 days, 2 hours, 46 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply

Hail,

@McNimble

OK, nice description on the 3 dots. It makes it easy to see your tow break point and more importantly your intercept break point which is not intuitive. I was using the spreadsheet created by MJS68508 showing the Escape points to make sure I could break an intercept but this is a really cool feature as you can do it right within the game map. I am glad you documented this because that alone makes the script extremely useful.


http://planets.nu/discussion/bug-with-intercept-movement-due-to-rounding-in-game-67726

For nostalgia sake, this old forum thread explains the intercept break pretty well and links to MJS excel sheet although I think that link is now broken as I got a AVG malware warning with it. I do have the excel sheet saved though if someone wanted it but with McNimble script you don't really need it.

I was aware of the intercept break going back to the 90s and thought VGAP had a hard limit on intercept movement of 81.5 LY while regular movement could exceed this in certain circumstances.

Normal_x = rnd(warp^2/(way_x^2 + way_y^2) * way_x) - .5
Normal_y = rnd(warp^2/(way_x^2 + way_y^2) * way_y) - .5

Finnw explains in the thread it is really the same movement and the quirk is because you can set certain waypoints that if you target them directly you cannot reach in 1 turn BUT can still serve as "half-way" points for another waypoint farther away. Essentially this is a rounding error that you are using to your OWN advantage.

As Emork commented in that thread:
"Big Beefer recently pointed to a very interesting site about movement created by streu:
http://www.phost.de/~stefan/movement.html

I haven't tested if this old wisdom is true for planets.nu. If it is and you can use it to escape an interceptor then this is HUGE."

Well, it definitely holds true for Nu. There are actually 48 intercept escape points for any spot on the map. This is really all based on Stefan/Streu work at http://www.phost.de/~stefan/movement.html#normal


Its interesting to see some of the old players I don't see as much posting there like Figak, MJS etc... I do miss the old forums.




******************************
TANASCIUS - It is working at the moment. I did restart the computer and the browser and it is working fine.. but for NOSTALGIA SAKE...



Interestingly enough, in that same thread I posted about Tanascius.

"Also, I use the tanascuis tool mostly for quick glance at ship costs for any races with any loadout and also when cloning where I simply double the megacredits. It does however have a movement function where you can input xy coordinates, warp and mass and predict the exact spot you will end up next turn. The Nu interface sometimes reports information that doesn't correspond exactly with what will happen that turn, and I call them quirks (like pba NOT being a PBP code despite the interface highlight coloring them like true pbp codes) rather then actual bug"

I had forgotten about using the xy coordinates in Tanascius as it is rare my cubes are running from an intercept.
It was a bit of work to find Tanascius_1.37 google search returned nothing and Tanascius returned info about the former player/programmer.

http://www.donovansvgap.com/utilities/tanascius.htm is the website mentioning the tool but the link for his homepage doesn't work anymore. The link from Stefans page is the same and doesn't work anymore. I did however find it stored here at http://www.rcworld.de/vgap/filedb/index.php?act=view&id=3

I see @Glyn found it archived as well.

It is the Tanascius.msi file. It looks to be the same file I saved when I got back into VGAP in March 2013 after chancing upon the Nu website. As I recall, I tried to install the original floppy disk game to practice but it wanted my security key and Tim W promptly answered his email and sent my key back to me so I installed it on an XP computer and even got to use echoview tool. I also used Tanacius as well as PCCV. I then started playing on Nu and installed Tanascius on a Win7 computer but it would not work because it expected to be in the Winplan directory and was looking for 8 old files folks might still remember like Race.nm, Hullspec.dat, TrueHull.dat, Beamspect.dat. Engspec.dat, Torpspec.dat, Plnhlp.dat and xyplan.dat. I popped these files into the install directory for Tanacius and it has worked fine in Win7 and Win10.

Here are some pics for those that remember using this tool back in the day.

I still use it primarily for ship cost in cash/minerals/tech and double the cash when cloning as in this picture:

https://imgur.com/a/615kL

I used it early on for simulating battles but then switched to PCCV and now I commend @Joshua and @Bigbeefer for the updated integrated battle sim where I can merely click the involved ships and simulate many different battles with different weapon specs for the unknown ones.

https://imgur.com/a/rK5vu


It also has some minefield/minesweep, ground combat utility but I use VGAPcalc for those. It has the EXACT movement prediction which is great but BigBeefer adding the dot and McNimble utility on map make it less likely I would use it:

https://imgur.com/a/aWKSu


The game and evolution screens don't work with Nu because they I believe they need your old .rst files from the Winplan game so ignore those


Cheers and thanks again

MEGA
633 days, 21 hours, 38 minutes ago
Profile Image
glyn
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
@Megalomanic: MJS68508 quit his last Sector just over a year ago because people wouldn't stop whining about Trump in the Activity Feed.
633 days, 21 hours, 16 minutes ago
Profile Image
megalomaniac
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
Hail,

#Glyn: Bummer, MJS was always quick to help on many a thread. But then again you are also quick to share knowledge. Good to hear from you again

Cheers,

MEGA
633 days, 21 hours, 5 minutes ago
Profile Image
glyn
RE: Greasemonkey Scripts no longer compatible with new Firefox...Write Reply
@Megalomaniac: Yeah MJS68508 dropped most of his Sectors a couple or so years ago over arguing in the forums over the infamous 'Confederate Flag thread', and withdrew from answering questions. Others and I did the best to pick up the slack (Martinr, Decius, Furey).

We lost Mule during the introduction of the Badge system because he wanted a Ladder system and lost faith it would ever occur, so he left.

Spacesquad very rarely pops in.

Mentar has an increased presence as of late.

I've read pretty much ever thread from before and after I joined, so there is a whole pile of people you knew that were gone before I got here, but I saw their contributions which helped with the answering of questions.