Meta > Feedback

Chrome Extension for f.ds!

(1/45) > >>

GendoIkari:
Current version: 1.35

Not sure if this is the right place to put this, but here it is. Based on a suggestion by Kirian, I created a Chrome extension. This extension does 3 things:

1. Adds a "Card" button next to the other markup buttons when writing a post. This inserts the [card ] markup.

2. When you post a reply, the [card] markup will be automatically replaced with the [url ] markup, linking to the appropriate wiki page.

3. When you are viewing a post, URLs that link to a wiki card page will include an image popup when you hover over the link.

4. Adds buttons to insert various Dominion icons to your post. Courtesy of Gherald.

5. Adds an "Autolink cards" checkbox, which will change all card in a post to hover links.

You can install the extension here: https://chrome.google.com/webstore/detail/fds-extension/meaipheckolpooacmilbpnilakniolgi.

Version 1.1 update: Item #3 is done now!
Version 1.2 update: Added item #4.
Version 1.3 update: Added 0, *, and + cost symbols.
Version 1.4 update: Made rollover images smaller. Fixed position of rollover images (all images were at the left of the post even if the card link wasn't).
Version 1.5 update: Added 3*, 4*, 5*, and 6* icons. Fixed other icon sizes so that they are all the same.
Version 1.6 update: Fixed rollover image sizes for events.
Version 1.7 update: Added 2 new features/buttons! The "Card Image" button will insert the "cardImage" tag around your card. When you post this tag, your post will contain an image of the actual card from the wiki. Useful for asking a question about a card or writing an article about one. The other is a "Kingdom" button, which adds the "kingdom" tag. This will generate card images given a comma-delimited list of card and event names. Perfect for discussing a game.
Version 1.8 update: Just smaller card images.
Version 1.9 update: Fixed VP image link.
Version 1.10 update: Added image icons for debt costs. Added icon for . Added Landmarks and new events to the list of things that will be displayed landscape instead of portrait in the rollover.
Version 1.11 update: Added all new Landmarks and Events to the list of landscape rollover images. Added icons for and costs. Updated the behavior of the icon buttons! Now when you click a button, it will insert markup representing the cost. When you post, the markup will be replaced with the image links. Makes writing a post much cleaner. Also, you can insert costs without clicking the button, just by typing the correct markup. All markup includes "$", even VP and Potion, just to keep from any potential conflicts with existing markup.
Version 1.12 update: Added "Autolink" feature.
Version 1.13 update: Fixed "Autolink" feature - works on all cards now, and doesn't break when used on pages with existing links.
Version 1.14 update: Added new second edition cards and promo card. Made everything case insensitive so that you can link cards with the wrong capitalization.
Version 1.15 update: Added Nocturne support for auto-link. Also updated the way auto-link gets the list of cards so that in the future, adding new cards won't require a new update to the extension. Fixed bugs with rollover images for cards such as Horn of Plenty, Salt the Earth, etc. Made it so that "Inherited" auto-links to "Inheritance" just for fun.
Version 1.16 update: Fixed bug where rollovers were not working on regular linked (not auto-linked) cards.
Version 1.17 update: Behind-the-scenes updates to work with Firefox approval.
Version 1.18 update: Behind-the-scenes updates to work with Firefox approval.
Version 1.19 update: Add local storage for the "Autolink cards" setting, so that it will default to what you last selected.
Version 1.20 update: Fixed bug introduced in last version where new post features were missing.
Version 1.21 update: Fixed bug introduced in 1.17 where Autolink broke the ability to view post voters.
Version 1.22 update: Use case-sensitive matching for Autolink to reduce the number of false positives.
Version 1.23 update: Fixed a bug introduced in a recent update where cardImage and kingdom tags were not working.
Version 1.24 update: Fixed minor bug introduced in 1.23.
Version 1.25 update: Added rollover link for certain "shortcut" card names.
Version 1.26 update: Fixed bug where Boons wouldn't link if the full name was used.
Version 1.27 update: Fixed bug with Ill-Gotten Gains, and added BoM.
Version 1.28 update: Made autolink work with plurals.
Version 1.29 update: Made autolink ignore text inside spoiler tags.
Version 1.30 update: Fixes bug where autolink breaks post voting. Also now only autolinks up to 500 cards.
Version 1.31 update: Kingdom button now loads the Kingdom list from Woodcutter Logging Services if the text starts with a "#".
Version 1.32 update: Fixed bug caused by latest Chrome update.
Version 1.33 update: Updated nickname system to not rely on hard-coded names.
Version 1.34 update: Fixed autolink bug caused by permissions update. Removed Kingdom loading from Woodcutter logging.
Version 1.35 update: Added new button. Updated extension icons used in store and Chrome toolbar.

GendoIkari:
Now I need some help from the wiki experts (Wero?). It looks like the actual card images are stored in various subfolders. Is there a way that I can actually know the URL of a given card, based just on the card name? Basically I want to add the same thing the wiki currently has; the image rollovers for card names. But I don't see how I can do that unless I can know the exact URL of an image.

werothegreat:
The image is stored on the wiki as 'Card_Name.jpg', which the wiki is able to use to find the proper address for it.  The images themselves are listed under more complicated addresses, so outside of the wiki, I'm not sure if this is possible.

GendoIkari:

--- Quote from: werothegreat on June 03, 2015, 01:28:38 pm ---The image is stored on the wiki as 'Card_Name.jpg', which the wiki is able to use to find the proper address for it.  The images themselves are listed under more complicated addresses, so outside of the wiki, I'm not sure if this is possible.

--- End quote ---

Yeah that's what I was worried about. I could technically copy and host all the images somewhere else; all in the same directory, but that's a lot of work.

werothegreat:

--- Quote from: GendoIkari on June 03, 2015, 01:41:47 pm ---
--- Quote from: werothegreat on June 03, 2015, 01:28:38 pm ---The image is stored on the wiki as 'Card_Name.jpg', which the wiki is able to use to find the proper address for it.  The images themselves are listed under more complicated addresses, so outside of the wiki, I'm not sure if this is possible.

--- End quote ---

Yeah that's what I was worried about. I could technically copy and host all the images somewhere else; all in the same directory, but that's a lot of work.

--- End quote ---

Is there a way to just link to the file page on the wiki?  That's what the wiki itself does.

Navigation

[0] Message Index

[#] Next page

Go to full version