This is a Opera extension / user javascript I wrote that lets you view a card's image when you mouseover a link in Magic related sites, including wizards.com and their boards, mtgsalvation, crystalkeep, etc.
As userScript autocard_mtg.user.js
For Opera, save this script in userjs folder.
For Firefox, install Greasemonkey add-on. Click the link and install the script.
i'd love the script, but i personally dont trust anyone or any programs that i'm not sure about to be 10000% Clean, and i currently dont have an internet based scanner to check the file, or it doesn't allow me to check the file, is there a guarentee that this scipt wont cause issues with IE or with computers? i'd greatly appreciate it if you can show me something because i would love to see this work..
Also, any instructions to install it to work with Internet Explorer. I'm not sure how to install it on my own.
Private Mod Note
():
Rollback Post to RevisionRollBack
Ravarshi Kashaku, Ancient Dragon of the Darkened Realms;
The Merciless Lord of Torture, Permanently Bound To: ">[THE PACK] 11/5/63 - 11/25/09 Goodbye mom, i'll always love you...
it's plain javascript. if you have doubts, read over the code yourself or get someone to proofread it.
as heroicraptor has stated, a browser needs to allow custom javascript to be run for every page at the included sites. only browsers that i know would work right now are Opera and mozilla via greasemonkey.
Most importantly, i'm not touching IE with a ten foot pole. it's hard enough to get code to work in two browsers. i've worked with IE before and all it does is give me headaches.
ironic though, you say you care about security, yet still use IE. my first rule of the internet: use a safe, standards compliant, efficient browser. (my choice would be Opera, naturally. after all, it was what inspired to make a script like this.)
i only use IE because i dont like firefox, and i've never heard of Opera. I've used firefox before and it just feels strained
Private Mod Note
():
Rollback Post to RevisionRollBack
Ravarshi Kashaku, Ancient Dragon of the Darkened Realms;
The Merciless Lord of Torture, Permanently Bound To: ">[THE PACK] 11/5/63 - 11/25/09 Goodbye mom, i'll always love you...
Now if only you could make it pop windows for cards that are not linked =)
I have instructions for Opera on how to add an option to the right-click menu that will convert the selected text into a link. You can see in the video when I visited the GameFAQs site, that I highlight and select the card name, right-click, click Autocard Link, and it turns the card into a link which then allows me to hover over it and see the card popup. Maybe I should annotate this into the video.
One could do a similar thing for Firefox, but I'm not that into FF to do deep research. There was something about using JavaScript to modify the user's right-click menu. But in the tutorials I read on it, all I saw was spaghetti code which would probably double the file size of the script. Another option is use a plugin or addon. I bet there are existing plugins that let you add custom options to the right-click menu. Then you can use the instructions I wrote for Opera for an example of how to call the JavaScript function that will convert normal text into a link.
starting with 1.12, you can see preview cards for upcoming sets. i will upload the images to my own host server, so not all previews are available immediately. someone, ie myself, will have to manually upload every new card. when WotC officially puts up their own images for the entire set under the regular path, usually around the day on or before the release date, then I will take down the images on my host.
after you download the new version of this script, you can test it with the M10 cards (note the set symbols on these cards):
v1.34 of user.js now uses code from Opera extension for better performance and compatibility with newer browser versions (namely Opera 11 and Firefox 4)
I'm seeing some issues with this and mtgvault.com. If I install the script, enable it and navigate to mtgvault and view decks there in the deck pages(not forums), the browser works fine with hover images. If I then shut down firefox and fire it back up and navigate to www.mtgvault.com, the broswer freezes. If I kill firefox, remove the script - reinstall the script and navigate to www.mtgvault.com again, it works fine. For some reason this only works for me if I visit www.mtgvault.com just after installing the script. Something hiccups for me if I restart firefox. I've disabled all plugins and cleared all files minus greasemonkey and this single unaltered script.
might be all the ads on that page. this script goes through every link to see if it points to a magic card. probably some of those advertising links look funny and firefox's javascript engine doesn't like it. or maybe fx just likes to crash.
Download Links:
As Opera Extension
I've submitted this as an official extension to Opera
Official Autocard_MTG Opera Extension
To install it, you need Opera 11.
As userScript
autocard_mtg.user.js
For Opera, save this script in userjs folder.
For Firefox, install Greasemonkey add-on. Click the link and install the script.
More instructions click here
Test the script on the following card links by moving your mouse over them:
Lord of Atlantis
Mesa Pegasus
Demonfire
Fire/Ice
Bound
Ludevic's Test Subject
Ludevic's Abomination
Gaea's Skyfolk
Pang Tong, "Young Phoenix"
Video demonstration of the script in action
........................
Also, any instructions to install it to work with Internet Explorer. I'm not sure how to install it on my own.
The Merciless Lord of Torture, Permanently Bound To: ">[THE PACK] 11/5/63 - 11/25/09 Goodbye mom, i'll always love you...
Tibalt & His Devils vs. Avacyn's Inquisitors
My EDH decklists
Internet Explorer sucks too much ass to allow javascript plugins like this.
as heroicraptor has stated, a browser needs to allow custom javascript to be run for every page at the included sites. only browsers that i know would work right now are Opera and mozilla via greasemonkey.
Most importantly, i'm not touching IE with a ten foot pole. it's hard enough to get code to work in two browsers. i've worked with IE before and all it does is give me headaches.
ironic though, you say you care about security, yet still use IE. my first rule of the internet: use a safe, standards compliant, efficient browser. (my choice would be Opera, naturally. after all, it was what inspired to make a script like this.)
........................
The Merciless Lord of Torture, Permanently Bound To: ">[THE PACK] 11/5/63 - 11/25/09 Goodbye mom, i'll always love you...
Tibalt & His Devils vs. Avacyn's Inquisitors
My EDH decklists
ya something changed about the new FF builds. It used to work when it first came out.
edit: sorry about FF bug. i have fixed it. make sure the script version is 1.05 or greater.
........................
and a minor update to the script.
........................
Now if only you could make it pop windows for cards that are not linked =)
I have instructions for Opera on how to add an option to the right-click menu that will convert the selected text into a link. You can see in the video when I visited the GameFAQs site, that I highlight and select the card name, right-click, click Autocard Link, and it turns the card into a link which then allows me to hover over it and see the card popup. Maybe I should annotate this into the video.
One could do a similar thing for Firefox, but I'm not that into FF to do deep research. There was something about using JavaScript to modify the user's right-click menu. But in the tutorials I read on it, all I saw was spaghetti code which would probably double the file size of the script. Another option is use a plugin or addon. I bet there are existing plugins that let you add custom options to the right-click menu. Then you can use the instructions I wrote for Opera for an example of how to call the JavaScript function that will convert normal text into a link.
........................
after you download the new version of this script, you can test it with the M10 cards (note the set symbols on these cards):
1 Wall of Frost
1 Capricious Efreet
1 Serra Angel
1 Birds of Paradise
1 Jace Beleren
........................
........................
........................
Double-face cards show both faces
Changed replacement URL to http://magiccards.info/query?q=
........................
........................
Works great on mtgsalv and wizards' pages.
Running Firefox 7.0.1.
Thoughts?
somegeek
........................