It is currently Sat Nov 30, 2024 11:44 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next
Author Message
 Post subject: Greasemonkey scripts
PostPosted: Sun Jun 08, 2014 5:31 pm 
Offline
Member
User avatar

Joined: Sep 23, 2013
Posts: 515
As some of you may remember back on the Wizards forums I wrote a few Greasemonkey userscripts to make them slightly more usable. They broke with the Great Forum Update, and then most everybody left, so I never bothered updating them, and forgot about the whole affair entirely.

Then it was recently pointed out to me [1] that they might be handy over here at NGA, so I've started porting them to work here. I'm planning on using this thread to link to possibly-useful scripts.

Scripts
Better Autocards


Notes
FAQ


If you run into any issues with these, please let me know!
Also, if you have any ideas for things to write, suggest away!

[1] Huge thanks to Shazzeh here -- he reminded me that BetterAutocards existed, had a copy of the script on hand [2], and even started porting it to work at NGA!
[2] The scripts were all hosted on userscripts.org, which apparently went down in May and never came back up. Welp. Now I am using Github.

_________________
ego-sig


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Sun Jun 08, 2014 9:58 pm 
Offline
Member

Joined: Sep 22, 2013
Posts: 4859
Identity: genderqueer
Preferred Pronoun Set: zie/zin/zir/zirs/zinself
So... is there any particular reason not to just weld these into the forum's software itself? I mean... the Better Autocards are just pretty much straight up objectively better Autocards, so wouldn't it makes sense to just make that an inherent part of the forum?


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Mon Jun 09, 2014 7:28 am 
Offline
Former Staff
User avatar

Joined: Sep 19, 2013
Posts: 3426
Location: Elemental Plane of Fire
Identity: Male
Preferred Pronoun Set: He/Him or by name
Indeed. That makes sense to me, too.

_________________
Burn it with fire! If it still moves, you didn't use enough fire.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Mon Jun 09, 2014 12:06 pm 
Offline
Former Staff
User avatar

Joined: Sep 19, 2013
Posts: 908
Only thing is that for people with lower resolution screens having a larger autocard image would be a problem.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Mon Jun 09, 2014 8:37 pm 
Offline
Member
User avatar

Joined: Sep 22, 2013
Posts: 5700
Location: Inside my own head
Identity: Human
Only thing is that for people with lower resolution screens having a larger autocard image would be a problem.

Any way that it could be implemented in a user-enabled option, then? Off by default (Gatherer), with the option to turn it on (magiccards.info)?

Would that be a major headache to implement, or perhaps cause issues with the forum software? If it doesn't cause too many issues now nor would it cause any foreseeable problems in the future, I'd say that's the way to go.

Of course, I know approximately zilch about coding and software, so I won't push too hard for something I don't know how to work into the system.

_________________
Bow before my King!
The King of the Warm Fuzzies
Feel the Warm Fuzzies!


Quoth the Raven, for truth.
Know your roots.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Mon Jun 09, 2014 9:56 pm 
Offline
Development Lead
User avatar

Joined: Sep 19, 2013
Posts: 1542
I'm hesitant to add this as-is; the script makes autocards three times as much work for the client (it has to load the normal page, find all the autocard links, load a magiccards.info search page to find out where the image lives, before it can rewrite the autocard URLs). Also, as mentioned, the images are much bigger, which might be problematic for some people.

That said, I definitely want to move to magiccards.info scans for autocarding. Looking at their link structure, all that's really needed for that is a server-side database that can translate between card names and set/collector number, I suppose. I'll poke at it when I have time tomorrow.

A per-user setting should also not be hard. It will probably default to magiccards.info, as they really are much prettier, but it'll allow people to switch if they prefer the smaller versions.

:hattip:

_________________
"In the beginning, there was nothing, which exploded." — Terry Pratchett


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Tue Jun 10, 2014 1:19 am 
Offline
Member
User avatar

Joined: Sep 25, 2013
Posts: 1399
Preferred Pronoun Set: he/him
Thanks so much for updating this, it's fantastic! I didn't want to bother you with it but my Javascript is not strong and I didn't have the courage to wade through the ridiculous one-liner in the page source that seemed to control the tooltips. At least this way everyone can benefit.

The discussion in this topic is also great. I forgot what using a forum with real admins was like. :)


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Tue Jun 10, 2014 2:08 am 
Offline
YMtC Idol Winner
User avatar

Joined: Sep 26, 2013
Posts: 1067
:hand:

Count me as someone who actually likes the Gatherer images better. I generally only need a quick glance to recognize a card, and as long as the text's readable in case I need a refresher, I'm fine. The magiccards.info images are indeed larger, but as far as I'm concerned that just means they take up more space than they need.

I fully admit I'm likely in the minority--my card-recognition abilities are freaky at times.

_________________
Level 2 Magic Judge
:w: ~ :u: ~ :b: ~ :r: ~ :g:
Knowledge knows no bounds.

And so people say to me, "How do I know if a word is real?" You know, anyone who's read a children's book knows that love makes things real. If you love a word, use it! That makes it real. Being in the dictionary is an artificial distinction; it doesn't make the word any more real than any other word. If you love a word, it becomes real.
--Erin McKean, Redefining the Dictionary


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 1:50 pm 
Offline
Former Staff
User avatar

Joined: Sep 20, 2013
Posts: 3240
*Back slowly away from Grifter*

_________________
No Goblins Allowed Code Of Conduct

D&D 5e Rules Q&A


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 2:57 pm 
Offline
YMtC Idol Winner
User avatar

Joined: Sep 26, 2013
Posts: 1067
Watch out--I might just be able to tell you the text of a random Urza's Legacy card!

With no warning whatsoever! :laugh:

_________________
Level 2 Magic Judge
:w: ~ :u: ~ :b: ~ :r: ~ :g:
Knowledge knows no bounds.

And so people say to me, "How do I know if a word is real?" You know, anyone who's read a children's book knows that love makes things real. If you love a word, use it! That makes it real. Being in the dictionary is an artificial distinction; it doesn't make the word any more real than any other word. If you love a word, it becomes real.
--Erin McKean, Redefining the Dictionary


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 3:11 pm 
Offline
YMtC Champ '14
YMTC Pro Tour Champion
User avatar

Joined: Jun 04, 2014
Posts: 15599
Location: Freedom
Preferred Pronoun Set: they
Thran Dynamo go

:duel:

_________________
I tend to agree with Razor.

Mown wrote:
I'll never again complain about raz's criteria.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 4:32 pm 
Offline
YMtC Champ '11
YMtC Pro Tour Champion
YMtC Idol Winner
User avatar

Joined: Sep 23, 2013
Posts: 10665
Preferred Pronoun Set: he/him/my/mine/himself
Why would you name an EDH and Cube mainstay? I actually thought you talked about Thran Turbine, which is several times more difficult to guess correctly.
Add me to the list of people who don't really have a need for bigger pictures.

_________________
[Warchief] Custom EDH Project
you're like the kind of person who would cast Necropotence irl


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:29 pm 
Offline
YMtC Idol Winner
User avatar

Joined: Sep 26, 2013
Posts: 1067
Thran Dynamo is a 4CC artifact that taps to produce . Thran Turbine is a 2CC artifact that produces during your upkeep that you can't use to cast spells. IIRC, its flavor text is something along the lines of "When Urza asked what it did, the Viashino told him 'It hums.'"

EDIT: Dang, got the CC of the Turbine wrong. Apparently it's only 1CC. And the flavor text is worded a bit differently. Ah, well, got the important part anyway.

_________________
Level 2 Magic Judge
:w: ~ :u: ~ :b: ~ :r: ~ :g:
Knowledge knows no bounds.

And so people say to me, "How do I know if a word is real?" You know, anyone who's read a children's book knows that love makes things real. If you love a word, use it! That makes it real. Being in the dictionary is an artificial distinction; it doesn't make the word any more real than any other word. If you love a word, it becomes real.
--Erin McKean, Redefining the Dictionary


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:31 pm 
Offline
YMtC Champ '14
YMTC Pro Tour Champion
User avatar

Joined: Jun 04, 2014
Posts: 15599
Location: Freedom
Preferred Pronoun Set: they
ha, it was a trap, neither of those cards was from Urza's Legacy, Dynamo was Destiny while Turbine was Saga, you lose, GOOD DAY SIR

:duel:

_________________
I tend to agree with Razor.

Mown wrote:
I'll never again complain about raz's criteria.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:32 pm 
Offline
NGA Owner
User avatar

Joined: Sep 19, 2013
Posts: 1966
Thran Turbine Rebels is my buddy.

Fake edit: lol, razor.

_________________
If you are interested in contributing content and have any questions, or if you are interested in contributing as a moderator, administrator, or editor, please feel free to send me a message via PM or to via email at [email protected] :teach:

No one ever pays me in cake. :(


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:35 pm 
Offline
YMtC Champ '11
YMtC Pro Tour Champion
YMtC Idol Winner
User avatar

Joined: Sep 23, 2013
Posts: 10665
Preferred Pronoun Set: he/him/my/mine/himself
Thran Turbine also lets you choose between adding or .
fwiw, I knew that it costed 1, but assumed it adding 2 on your main phase, and could only be spent on artifacts.

_________________
[Warchief] Custom EDH Project
you're like the kind of person who would cast Necropotence irl


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:36 pm 
Offline
YMtC Champ '14
YMTC Pro Tour Champion
User avatar

Joined: Jun 04, 2014
Posts: 15599
Location: Freedom
Preferred Pronoun Set: they
Mown wrote:
Thran Turbine also lets you choose between adding or .
fwiw, I knew that it costed 1, but assumed it adding 2 on your main phase, and could only be spent on artifacts.

I actually knew exactly what it did, because I used to run a deck based around it, kill switch, and mycosynth lattice. (not of my own design, I saw it in a MaGo article and liked it and tried it out.)

:duel:

_________________
I tend to agree with Razor.

Mown wrote:
I'll never again complain about raz's criteria.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:40 pm 
Offline
YMtC Idol Winner
User avatar

Joined: Sep 26, 2013
Posts: 1067
Whoever promised I wouldn't give you the text of non-Urza's Legacy cards? Huh, Razor? Nobody, that's who.

Oh, and Walking Sponge is a 1/1 that taps to make a creature lose flying, first strike, or trample until end of turn. Booyah!

Mown wrote:
Thran Turbine also lets you choose between adding or .
Or nothing at all, yeah, but you'd basically never do it now that mana burn's not a thing.

_________________
Level 2 Magic Judge
:w: ~ :u: ~ :b: ~ :r: ~ :g:
Knowledge knows no bounds.

And so people say to me, "How do I know if a word is real?" You know, anyone who's read a children's book knows that love makes things real. If you love a word, use it! That makes it real. Being in the dictionary is an artificial distinction; it doesn't make the word any more real than any other word. If you love a word, it becomes real.
--Erin McKean, Redefining the Dictionary


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:44 pm 
Offline
YMtC Champ '14
YMTC Pro Tour Champion
User avatar

Joined: Jun 04, 2014
Posts: 15599
Location: Freedom
Preferred Pronoun Set: they
Whoever promised I wouldn't give you the text of non-Urza's Legacy cards? Huh, Razor? Nobody, that's who.

I

SAID

GOOD

DAY


:duel:

_________________
I tend to agree with Razor.

Mown wrote:
I'll never again complain about raz's criteria.


Like this post
Top
 Profile  
 
 Post subject: Re: Greasemonkey scripts
PostPosted: Thu Jun 12, 2014 6:46 pm 
Offline
YMtC Idol Winner
User avatar

Joined: Sep 26, 2013
Posts: 1067
...Are you going to give me your magical chocolate factory now?

_________________
Level 2 Magic Judge
:w: ~ :u: ~ :b: ~ :r: ~ :g:
Knowledge knows no bounds.

And so people say to me, "How do I know if a word is real?" You know, anyone who's read a children's book knows that love makes things real. If you love a word, use it! That makes it real. Being in the dictionary is an artificial distinction; it doesn't make the word any more real than any other word. If you love a word, it becomes real.
--Erin McKean, Redefining the Dictionary


Like this post
Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 26 posts ]  Go to page 1, 2  Next

All times are UTC - 6 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group