Project page. If you'd like to help out with development just contact me. The code is almost entirely javascript with few Firefox/Chrome specific bits. Mozilla Jetpack is leveraged to make Firefox development so much easier.
The Firefox extension is excellent, and it's a lot less finicky than the Firefox 3.x Greasemonkey script. I have a suggestion: when a card link is towards the bottom of the page, the current behavior is to display the image so that it's cut off along the bottom. I think the card should be displayed so it lies above the link. For example, try right-clicking in the middle and at the bottom of a page and watch where the menu is displayed.
EDIT: Don't forget to update your sig
Private Mod Note
():
Rollback Post to RevisionRollBack
Divide & Conquer Card Shuffler
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the paranoid thorough 40/60-card player. Check it out!
so far so good, i prefer this over the other code you wrote, but good job on it. I appreciate it, as do many others. Keep up the good work.
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...
The problem I'm having with this beside the white on white text is I can't really mouse over the pop-up like you could with the older script. Using FF.
The problem I'm having with this beside the white on white text is I can't really mouse over the pop-up like you could with the older script. Using FF.
Same, no mouseover, which is disheartening, because often the popup gets cut off by my monitor or because the card image is too large. Using the Dark Theme on GC, the white on white oracle text is impossible to highlight due to the lack of mouseover. But i'm aware that it's still in it's first stages, and i know you wont disappoint.
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...
However, is there any chance of being able to:
1) Disable/shrink/resize the right hand rules box.
I plan on having an options page where you can turn off the expansion. Now that the edition links are rolled up in their own box I can mess around with changing the size of the expanded popup.
2) Change the colour of the background and text of said rules box. I use the GNOME Desktop environment and a dark theme with white text, which results in the box being white on white for me.
Interesting. I'll fix the CSS so the text is always black to begin with. I'm trying to think of a way to add customizable colors; the old way that the userscript used was clunky and prone to issues.
The Firefox extension is excellent, and it's a lot less finicky than the Firefox 3.x Greasemonkey script. I have a suggestion: when a card link is towards the bottom of the page, the current behavior is to display the image so that it's cut off along the bottom. I think the card should be displayed so it lies above the link. For example, try right-clicking in the middle and at the bottom of a page and watch where the menu is displayed.
Known issue. I spent a lot of time trying to fix that one but couldn't come up with anything at the moment. Basically a weird quirk of Firefox prevents my dynamic popup location code from functioning properly. It's definitely something that's on the todo list.
The issue boils down to a simple bit of jQuery code. To determine the top of the popup I use the following in Chrome:
$(window).scrollTop()
In Firefox this call throws an exception with the version of jQuery I'm using (1.3.2 with some slight tweaks for those that are interested). Why such an old version of jQuery? That version doesn't strip out script tags when evaluating a block of HTML text. The prices URL is contained in a script tag so I have to be able to find it.
Fortunately this method of finding the prices URL might be unnecessary in the near future. If so hopefully I can update jQuery to a newer version where the above code will actually work.
You know my question, any chance at a Safari version?
Possibly. Safari does support extensions now so it is definitely a possibility. A cursory glance at the Safari developer page shows that extensions are written in HTML, JavaScript, and CSS (the same technologies as Chrome extensions) so writing a Safari extension wouldn't be imposing. This is something I'd really love to have help with.
Known issue. I spent a lot of time trying to fix that one but couldn't come up with anything at the moment. Basically a weird quirk of Firefox prevents my dynamic popup location code from functioning properly. It's definitely something that's on the todo list.
The issue boils down to a simple bit of jQuery code. To determine the top of the popup I use the following in Chrome:
$(window).scrollTop()
In Firefox this call throws an exception with the version of jQuery I'm using (1.3.2 with some slight tweaks for those that are interested). Why such an old version of jQuery? That version doesn't strip out script tags when evaluating a block of HTML text. The prices URL is contained in a script tag so I have to be able to find it.
Fortunately this method of finding the prices URL might be unnecessary in the near future. If so hopefully I can update jQuery to a newer version where the above code will actually work.
IANAWD (I am not a web developer), so please forgive my ignorance.
I took a look at the prices script. For those interested, here's the Javascript for M11 Fog. Ugh. There has to be a better way for tcgplayer.com to return the prices. Any. Way. XML. JSON. Freaking CSV. Unfortunately it's unlikely that they'll change this because it's in their interest to have the links always displayed.
In the interest of upgrading to the newest version of jQuery: Can you get the script URL or at least construct it reasonably? If so, is it possible to get the plaintext Javascript from the link then eval() it? Or perform some regex-fu on the string and recombine the parts into a price list?
I wish you the best of luck
Private Mod Note
():
Rollback Post to RevisionRollBack
Divide & Conquer Card Shuffler
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the paranoid thorough 40/60-card player. Check it out!
Hmm...so I've waited all night, just about 12 hours or so...and it's still giving the same message. Problem is, though, last night it said it was downloaded 10 times...now it says downloaded 24 times.
edit: I even created a mozilla add-ons account and it still is giving me the same message. Grr.
Update:
I'm trying to get preferences working. Chrome has given me no problems but Firefox is turning out to be a huge headache. You wouldn't believe the hoops I've had to jump through just to get values from one part of the extension to another.
Chrome has options support built-in for extensions. You basically create a separate page and mark it as the options page. It has more privileges than a content script so saving things to local storage works with no issues.
Jetpack, however, has no such niceties. The only thing that can access local storage is main.js. Also since there is no built-in support for options pages you must basically throw either a widget or panel into your extension and then pass around messages containing intent and data. It's a big mess of spaghetti and I still haven't gotten actual options UI to work yet. I'm so close and once I get this part figured out the actual options will be simple to do.
Version 1.1 is now released! Configuration of popup expansion (and delay) and visible prices are now available.
To access options in Firefox right-click on a matched page (like this one for example) and select 'Scry Options'. Options in both Chrome and Firefox are saved automatically.
Fyi, when I try to put items into my cart at SCG I get an error message as long as this extension is on (using FF).
That's definitely an odd one. It looks like there's some sort of incompatibility between the jQuery Scry is injecting into the page and the jQuery SCG is using. I'm not sure why it's appearing to make an entire function disappear in Firefox and not in Chrome but I'm looking into what I can do.
I really did like this on Firefox, but sadly I had to stop using this as I couldn't stand Firefox 4.0's layout(the tabs on top of the browser, and 4.0 made me lag pretty regularly). Is there a way you could design a variant of this for like Firefox 3.5?
I really did like this on Firefox, but sadly I had to stop using this as I couldn't stand Firefox 4.0's layout(the tabs on top of the browser, and 4.0 made me lag pretty regularly). Is there a way you could design a variant of this for like Firefox 3.5?
Sadly no. Jetpack, which is used for the Firefox version, works only in Firefox 4 (and some of its betas). I've done some extension development for Firefox 3.X before and it's something I never want to do again. XUL should die a horrible death.
ever get it to hover? it still seems that it doesn't want to hover when i drag my mouse over the popup.
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...
There are Wizards pages that don't have onmouseover events for card links, and thus don't get processed for card popups.
Private Mod Note
():
Rollback Post to RevisionRollBack
Divide & Conquer Card Shuffler
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the paranoid thorough 40/60-card player. Check it out!
Google Chrome extension
Mozilla Firefox extension
Project page. If you'd like to help out with development just contact me. The code is almost entirely javascript with few Firefox/Chrome specific bits. Mozilla Jetpack is leveraged to make Firefox development so much easier.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
EDIT: Don't forget to update your sig
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the
paranoidthorough 40/60-card player. Check it out!You know my question, any chance at a Safari version?
Both FF and Chrome have small things that make me unable to switch from Safari.
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
Same, no mouseover, which is disheartening, because often the popup gets cut off by my monitor or because the card image is too large. Using the Dark Theme on GC, the white on white oracle text is impossible to highlight due to the lack of mouseover. But i'm aware that it's still in it's first stages, and i know you wont disappoint.
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
I plan on having an options page where you can turn off the expansion. Now that the edition links are rolled up in their own box I can mess around with changing the size of the expanded popup.
Interesting. I'll fix the CSS so the text is always black to begin with. I'm trying to think of a way to add customizable colors; the old way that the userscript used was clunky and prone to issues.
Another one of the options page. Shouldn't be difficult at all.
Known issue. I spent a lot of time trying to fix that one but couldn't come up with anything at the moment. Basically a weird quirk of Firefox prevents my dynamic popup location code from functioning properly. It's definitely something that's on the todo list.
The issue boils down to a simple bit of jQuery code. To determine the top of the popup I use the following in Chrome:
In Firefox this call throws an exception with the version of jQuery I'm using (1.3.2 with some slight tweaks for those that are interested). Why such an old version of jQuery? That version doesn't strip out script tags when evaluating a block of HTML text. The prices URL is contained in a script tag so I have to be able to find it.
Fortunately this method of finding the prices URL might be unnecessary in the near future. If so hopefully I can update jQuery to a newer version where the above code will actually work.
Thank you. I thought I forgot something.
Possibly. Safari does support extensions now so it is definitely a possibility. A cursory glance at the Safari developer page shows that extensions are written in HTML, JavaScript, and CSS (the same technologies as Chrome extensions) so writing a Safari extension wouldn't be imposing. This is something I'd really love to have help with.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
http://developer.apple.com/library/safari/#documentation/UserExperience/Conceptual/SafariExtensionsConversionGuide/Chapters/Chrome.html
I wish I had a better knowledge of this stuff as I'd like to help. But it's way beyond me I think.
IANAWD (I am not a web developer), so please forgive my ignorance.
I took a look at the prices script. For those interested, here's the Javascript for M11 Fog. Ugh. There has to be a better way for tcgplayer.com to return the prices. Any. Way. XML. JSON. Freaking CSV. Unfortunately it's unlikely that they'll change this because it's in their interest to have the links always displayed.
In the interest of upgrading to the newest version of jQuery: Can you get the script URL or at least construct it reasonably? If so, is it possible to get the plaintext Javascript from the link then eval() it? Or perform some regex-fu on the string and recombine the parts into a price list?
I wish you the best of luck
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the
paranoidthorough 40/60-card player. Check it out!Any suggestions on how to DL this? I want this so I can just move my mouse over the card link to view it without using a separate tab.
Steel Sabotage'ng Orbs of Mellowness since 2011.
Steel Sabotage'ng Orbs of Mellowness since 2011.
edit: I even created a mozilla add-ons account and it still is giving me the same message. Grr.
Steel Sabotage'ng Orbs of Mellowness since 2011.
Steel Sabotage'ng Orbs of Mellowness since 2011.
Steel Sabotage'ng Orbs of Mellowness since 2011.
I'm trying to get preferences working. Chrome has given me no problems but Firefox is turning out to be a huge headache. You wouldn't believe the hoops I've had to jump through just to get values from one part of the extension to another.
Chrome has options support built-in for extensions. You basically create a separate page and mark it as the options page. It has more privileges than a content script so saving things to local storage works with no issues.
Jetpack, however, has no such niceties. The only thing that can access local storage is main.js. Also since there is no built-in support for options pages you must basically throw either a widget or panel into your extension and then pass around messages containing intent and data. It's a big mess of spaghetti and I still haven't gotten actual options UI to work yet. I'm so close and once I get this part figured out the actual options will be simple to do.
Thank you Google for making things "Just Work."
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
To access options in Firefox right-click on a matched page (like this one for example) and select 'Scry Options'. Options in both Chrome and Firefox are saved automatically.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
That's definitely an odd one. It looks like there's some sort of incompatibility between the jQuery Scry is injecting into the page and the jQuery SCG is using. I'm not sure why it's appearing to make an entire function disappear in Firefox and not in Chrome but I'm looking into what I can do.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
Steel Sabotage'ng Orbs of Mellowness since 2011.
Sadly no. Jetpack, which is used for the Firefox version, works only in Firefox 4 (and some of its betas). I've done some extension development for Firefox 3.X before and it's something I never want to do again. XUL should die a horrible death.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.
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
Divide & Conquer is an Android app that completely shuffles your real deck of cards. It's great for unwieldy decks (Battle of Wits, Commander, etc.) and the
paranoidthorough 40/60-card player. Check it out!I'm not sure what you mean. Is the plugin working at all in the browser you're using? Do you have any other extensions in use?
Thanks for the heads up. I'll take a look at this page and see what Scry can look for.
[card=Jace Beleren]Jace[/card] = Jace
Magic CompRules
Scry Rollover Popups for Google Chrome
The first rule of Cursecatcher is, You do not talk about Cursecatcher.