Dominion Strategy Forum

Meta => Feedback => Topic started by: GendoIkari on June 03, 2015, 01:10:39 pm

Title: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 01:10:39 pm
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 (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 (http://wiki.dominionstrategy.com/images/thumb/0/02/Coin14.png/16px-Coin14.png). 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 (http://wiki.dominionstrategy.com/images/thumb/f/f5/Debt3.png/18px-Debt3.png) and (http://wiki.dominionstrategy.com/images/thumb/9/90/Debt4.png/18px-Debt4.png) 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 (http://wiki.dominionstrategy.com/images/thumb/f/fa/Coin7star.png/16px-Coin7star.png) button. Updated extension icons used in store and Chrome toolbar.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 01:18:04 pm
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.
Title: Re: Chrome Extension for f.ds!
Post by: 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.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 01:41:47 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.

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.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 03, 2015, 01:58:54 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.

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.

Is there a way to just link to the file page on the wiki?  That's what the wiki itself does.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 02:18:41 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.

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.

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

If you look at the markup for the rollover links; they actually link to  the image itself; not the file page. Linking to the file page wouldn't show just the card image itself. Though I might be able to datamine the file page to find the actual image link.

Hey, sort of related, what is this? http://wiki.dominionstrategy.com/images/thumb/0/0c/Storybook.jpg/155px-Storybook.jpg

(http://wiki.dominionstrategy.com/images/thumb/0/0c/Storybook.jpg/155px-Storybook.jpg)
Title: Re: Chrome Extension for f.ds!
Post by: Voltaire on June 03, 2015, 02:24:08 pm
Looks like it's from the Fairytale fan expansion listed on BGG. Why it gets special status, no idea.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 02:27:13 pm
I need a post with a bunch of card links to test out the ability to do rollover links. So this is it.

Market (http://wiki.dominionstrategy.com/index.php/Market), Grand Market (http://wiki.dominionstrategy.com/index.php/Grand_Market), Rats (http://wiki.dominionstrategy.com/index.php/Rats), Fishing Village (http://wiki.dominionstrategy.com/index.php/Fishing_Village), Island (http://wiki.dominionstrategy.com/index.php/Island), Fool's Gold (http://wiki.dominionstrategy.com/index.php/Fool's_Gold), Band of Misfits (http://wiki.dominionstrategy.com/index.php/Band_of Misfits).
Title: Re: Chrome Extension for f.ds!
Post by: michaeljb on June 03, 2015, 02:40:24 pm
This page (http://wiki.dominionstrategy.com/index.php/Special:FilePath) lets you enter a file name, then it redirects you to the full path.

It makes a request to a URL that looks like this:

http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg

Maybe you could script something to hit that URL for each card name and save the map of card names to URLs? Or the extension could make the request behind the scenes to get the URL whenever a user hovers. My gut reaction is that it'd be better to just generate the map of URLs needed.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 03:05:10 pm

http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg


This link alone is perfect! Thanks a bunch! Ok, new version has been uploaded, fully works now!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 03:11:25 pm
If anyone wants to make a Firefox version, just let me know and I'll give you the code. I don't feel like actually learning how to do that.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 03, 2015, 03:12:15 pm
I've got the "card" button in the reply box, but no rollover image.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 03:15:27 pm
I've got the "card" button in the reply box, but no rollover image.

Yeah, version 1.1, which includes the rollovers, is publishing now; Google says it can take up to an hour. You'll just need to update whenever it's available.
Title: Re: Chrome Extension for f.ds!
Post by: Kirian on June 03, 2015, 03:17:15 pm
If anyone wants to make a Firefox version, just let me know and I'll give you the code. I don't feel like actually learning how to do that.

Alas, I use FF but I also have no idea how to do that.
Title: Re: Chrome Extension for f.ds!
Post by: liopoil on June 03, 2015, 03:17:33 pm
Feature request: Coin icons like the ones Gherald has.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 03:25:23 pm
Feature request: Coin icons like the ones Gherald has.

Should be simple enough. Will be super easy if I can get the script from Gherald.
Title: Re: Chrome Extension for f.ds!
Post by: michaeljb on June 03, 2015, 03:27:22 pm

http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg


This link alone is perfect! Thanks a bunch! Ok, new version has been uploaded, fully works now!

Sweet! I was worried you'd have to work around the fact that it's a redirect or something.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 03:56:19 pm

http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Artificer.jpg


This link alone is perfect! Thanks a bunch! Ok, new version has been uploaded, fully works now!

Sweet! I was worried you'd have to work around the fact that it's a redirect or something.

So was I! At first I thought that the request to that URL would return the proper URL, so I was doing an AJAX call to get the data from that URL, thinking that data would be the actual URL I needed. Finally I realized that even though it redirects to the other URL, the actual data returned when you request that first URL is still the image I was looking for, so I could just set the src of my image to that URL directly.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 04:42:29 pm
Ok, Gherald sent me his script. Version 1.2 is being published now. It includes a better UI for the "Card" button, and Gherald's buttons for the Dominion icons.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 04:46:46 pm
Is it a good idea to automatically transform card names into wiki links with image rollovers? Or would that just be annoying?
Title: Re: Chrome Extension for f.ds!
Post by: Donald X. on June 03, 2015, 05:57:42 pm
2. When you post a reply, the [card] markup will be automatically replaced with the [url ] markup, linking to the appropriate wiki page.
This could probably be done for everyone via the forum software - use the auto-filter. the opening tag you want turns into the url beginning; then there's the card name; then you auto-filter the closing tag into the file type and closing url tag.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 07:25:46 pm
2. When you post a reply, the [card] markup will be automatically replaced with the [url ] markup, linking to the appropriate wiki page.
This could probably be done for everyone via the forum software - use the auto-filter. the opening tag you want turns into the url beginning; then there's the card name; then you auto-filter the closing tag into the file type and closing url tag.

Oh I know. You can also customize the forum software pretty easily to add custom buttons like what #1 and #4 do. But probably only Theory can do those things; this was just a quick way I could help out.
Title: Re: Chrome Extension for f.ds!
Post by: Jimmmmm on June 03, 2015, 07:36:18 pm
King's Court (http://wiki.dominionstrategy.com/index.php/King's_Court)

(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/14px-Coin.png)(http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/14px-Coin3.png)(http://wiki.dominionstrategy.com/images/thumb/2/2a/Coin4.png/14px-Coin4.png)(http://wiki.dominionstrategy.com/images/thumb/7/7d/Coin5.png/14px-Coin5.png)(http://wiki.dominionstrategy.com/images/thumb/6/6f/Coin6.png/14px-Coin6.png)(http://wiki.dominionstrategy.com/images/thumb/b/bc/Coin7.png/14px-Coin7.png)(http://wiki.dominionstrategy.com/images/thumb/4/47/Coin8.png/14px-Coin8.png)(http://wiki.dominionstrategy.com/images/thumb/9/9d/Coin9.png/14px-Coin9.png)(http://wiki.dominionstrategy.com/images/thumb/c/cc/Coin10.png/14px-Coin10.png)(http://wiki.dominionstrategy.com/images/thumb/d/df/Coin11.png/14px-Coin11.png)(http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png)(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/12px-VP.png)


Seems to work. This is great, thanks!
Title: Re: Chrome Extension for f.ds!
Post by: liopoil on June 03, 2015, 07:37:55 pm
Watchtower (http://wiki.dominionstrategy.com/index.php/Watchtower) - Action - (http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/14px-Coin3.png)

AWESOME!
Title: Re: Chrome Extension for f.ds!
Post by: belugawhale on June 03, 2015, 07:51:31 pm
Testing (http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/14px-Coin3.png)
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 03, 2015, 08:16:53 pm
I'm uploading higher quality Intrigue imagery as we speak.

Also, why no asterisked or be-plus-signed coin symbols?  There's also no $0 symbol.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 08:48:25 pm
I'm uploading higher quality Intrigue imagery as we speak.

Also, why no asterisked or be-plus-signed coin symbols?  There's also no $0 symbol.

Looks like the Wiki is missing images for the new star costs (3*, 4*, 5*, 6*). I've added 0, 0*, 8*, 2+, 3+, and 4+. Version 1.3 should be available in a few minutes.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 03, 2015, 08:54:31 pm
There is (http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png) clear winner (http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png) this entire forum, we must give (http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/14px-Coin3.png) offerings (http://wiki.dominionstrategy.com/images/thumb/2/2a/Coin4.png/14px-Coin4.png) political purposes. There will be many celebrations,  and we will Feast (http://wiki.dominionstrategy.com/index.php/Feast) for days!

But there will be an uprising. Soon, (http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/12px-VP.png) will defeat you, Gendo....

So yeah, extension seems cool.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 03, 2015, 08:59:02 pm
I'm uploading higher quality Intrigue imagery as we speak.

Also, why no asterisked or be-plus-signed coin symbols?  There's also no $0 symbol.

Looks like the Wiki is missing images for the new star costs (3*, 4*, 5*, 6*). I've added 0, 0*, 8*, 2+, 3+, and 4+. Version 1.3 should be available in a few minutes.

Still waiting on Schneau for those.  Or anyone who cares to venture forth with PaintShop.

By the way, can you make the mouseover images smaller?  They're rather bulky at the moment.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 09:16:14 pm
I'm uploading higher quality Intrigue imagery as we speak.

Also, why no asterisked or be-plus-signed coin symbols?  There's also no $0 symbol.

Looks like the Wiki is missing images for the new star costs (3*, 4*, 5*, 6*). I've added 0, 0*, 8*, 2+, 3+, and 4+. Version 1.3 should be available in a few minutes.

Still waiting on Schneau for those.  Or anyone who cares to venture forth with PaintShop.

I could, but out of time now; will be gone for the next few days.
Quote
By the way, can you make the mouseover images smaller?  They're rather bulky at the moment.
Done. Also fixed the image alignment so they're always immediately below the link. Future version may make it so that if the link is near the bottom of the current scroll position so there's not room, the image will appear above instead of below.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 03, 2015, 09:42:12 pm
NOTE: If you aren't seeing the update, close and restart Google Chrome.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 09:45:54 pm
NOTE: If you aren't seeing the update, close and restart Google Chrome.

That could have something to do with it; but when I publish it, a note from Google says that it can take up to an hour before it is actually published.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 03, 2015, 11:10:09 pm
Psst.  You might want to make a separate thing for Events.
Title: Re: Chrome Extension for f.ds!
Post by: Kirian on June 03, 2015, 11:13:23 pm
Is it a good idea to automatically transform card names into wiki links with image rollovers? Or would that just be annoying?

Bad idea, as there are some common words that would end up as links in non-Dominion threads.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 03, 2015, 11:14:40 pm
Is it a good idea to automatically transform card names into wiki links with image rollovers? Or would that just be annoying?

Bad idea, as there are some common words that would end up as links in non-Dominion threads.

Sometimes, you just have to call someone a Sea Hag.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 03, 2015, 11:23:28 pm
Psst.  You might want to make a separate thing for Events.

Ah, I guess the image size is messed up? The rest of it should work. Fun fact, you can use it for the names of expansions currently also, though the image gets distorted some.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 06, 2015, 08:35:16 am
The $0 icon is a different shape than the rest: (http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/5/5d/Coin0.png/16px-Coin0.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png)
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 06, 2015, 09:58:46 am
The $0 icon is a different shape than the rest: (http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/5/5d/Coin0.png/16px-Coin0.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png)

Why let different sizes get in the way of a good thing?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 06, 2015, 11:15:18 am
The $0 icon is a different shape than the rest: (http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/14px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/5/5d/Coin0.png/16px-Coin0.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/14px-Coin2.png)

That's a job for the wiki maintainers... All icons are simply links to the images stored there. I can change where the link points to if a different sized icon is out on the wiki.
Title: Re: Chrome Extension for f.ds!
Post by: Schneau on June 07, 2015, 12:49:32 pm
Alright, I've uploaded (http://wiki.dominionstrategy.com/index.php/Special:NewFiles) the 3* through 6* coin images.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 07, 2015, 01:16:10 pm
Alright, I've uploaded (http://wiki.dominionstrategy.com/index.php/Special:NewFiles) the 3* through 6* coin images.

Great! Will do an update to the extension tomorrow.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 07, 2015, 04:27:59 pm
Alright, I've uploaded (http://wiki.dominionstrategy.com/index.php/Special:NewFiles) the 3* through 6* coin images.

Updated the {{Cost}} template.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 07, 2015, 06:28:30 pm
Alright, I've uploaded (http://wiki.dominionstrategy.com/index.php/Special:NewFiles) the 3* through 6* coin images.

Updated the {{Cost}} template.

Happy 5000 posts!
Title: Re: Chrome Extension for f.ds!
Post by: belugawhale on June 07, 2015, 08:39:58 pm
Alright, I've uploaded (http://wiki.dominionstrategy.com/index.php/Special:NewFiles) the 3* through 6* coin images.

Updated the {{Cost}} template.

You're going adventuring now!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2015, 10:19:38 pm
(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png)(http://wiki.dominionstrategy.com/images/thumb/5/5d/Coin0.png/16px-Coin0.png)(http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/16px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/16px-Coin2.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png)(http://wiki.dominionstrategy.com/images/thumb/2/2a/Coin4.png/16px-Coin4.png)(http://wiki.dominionstrategy.com/images/thumb/7/7d/Coin5.png/16px-Coin5.png)(http://wiki.dominionstrategy.com/images/thumb/6/6f/Coin6.png/16px-Coin6.png)(http://wiki.dominionstrategy.com/images/thumb/b/bc/Coin7.png/16px-Coin7.png)(http://wiki.dominionstrategy.com/images/thumb/4/47/Coin8.png/16px-Coin8.png)(http://wiki.dominionstrategy.com/images/thumb/9/9d/Coin9.png/16px-Coin9.png)(http://wiki.dominionstrategy.com/images/thumb/c/cc/Coin10.png/16px-Coin10.png)(http://wiki.dominionstrategy.com/images/thumb/d/df/Coin11.png/16px-Coin11.png)(http://wiki.dominionstrategy.com/images/thumb/a/ae/Coin0star.png/16px-Coin0star.png)(http://wiki.dominionstrategy.com/images/thumb/a/a9/Coin3star.png/16px-Coin3star.png)(http://wiki.dominionstrategy.com/images/thumb/5/54/Coin4star.png/16px-Coin4star.png)(http://wiki.dominionstrategy.com/images/thumb/8/86/Coin5star.png/16px-Coin5star.png)(http://wiki.dominionstrategy.com/images/thumb/6/60/Coin6star.png/16px-Coin6star.png)(http://wiki.dominionstrategy.com/images/thumb/5/55/Coin8star.png/16px-Coin8star.png)(http://wiki.dominionstrategy.com/images/thumb/7/79/Coin2plus.png/16px-Coin2plus.png)(http://wiki.dominionstrategy.com/images/thumb/1/16/Coin3plus.png/16px-Coin3plus.png)(http://wiki.dominionstrategy.com/images/thumb/5/54/Coin4plus.png/16px-Coin4plus.png)

Works! Version 1.5 was just published, with the new icons and updates sizes so all icons are the same.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2015, 10:25:01 pm
Testing event rollover images:

Ball (http://wiki.dominionstrategy.com/index.php/Ball), Scouting Party (http://wiki.dominionstrategy.com/index.php/Scouting_Party), Inheritance (http://wiki.dominionstrategy.com/index.php/Inheritance).
Title: Re: Chrome Extension for f.ds!
Post by: liopoil on June 08, 2015, 10:28:37 pm
Testing event rollover images:

Ball (http://wiki.dominionstrategy.com/index.php/Ball), Scouting Party (http://wiki.dominionstrategy.com/index.php/Scouting_Party), Inheritance (http://wiki.dominionstrategy.com/index.php/Inheritance).
Uh-oh....
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2015, 10:43:35 pm
Testing event rollover images:

Ball (http://wiki.dominionstrategy.com/index.php/Ball), Scouting Party (http://wiki.dominionstrategy.com/index.php/Scouting_Party), Inheritance (http://wiki.dominionstrategy.com/index.php/Inheritance).
Uh-oh....

I knew it would do that. Fixed in 1.6!
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 11, 2015, 02:35:45 pm
I have recently made the switch from Chrome to Firefox. Like holy cow, Firefox is just way faster now. So sadly, I cannot participate in this Chrome extension unless I switch between Chrome and Firefox.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 11, 2015, 04:17:07 pm
I have recently made the switch from Chrome to Firefox. Like holy cow, Firefox is just way faster now. So sadly, I cannot participate in this Chrome extension unless I switch between Chrome and Firefox.

I hope to port the extension to Firefox soon if it's not hard to do. I started using Firefox for certain things, because Chrome seems to have been getting worse lately. But when I tried using Firefox for everything, I just found it to be not nearly as good in certain ways; possibly just because of what I'm used to. So I'm now running both at once; Chrome for most things and Firefox for a couple games I play.
Title: Re: Chrome Extension for f.ds!
Post by: faust on June 22, 2015, 07:44:52 am
This extension does not provide nearly enough features for playing forum games!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 23, 2015, 03:09:34 am
This extension does not provide nearly enough features for playing forum games!

Next version will hack into the PM system and list everyone's Mafia role next to their username?
Title: Re: Chrome Extension for f.ds!
Post by: Asper on June 30, 2015, 02:09:33 pm
This is amazing and the first reason i can imagine to switching my browser to Chrome.
Title: Re: Chrome Extension for f.ds!
Post by: RelzeriZynx on September 27, 2015, 06:23:52 am
(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png).(http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/16px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/2/2a/Coin4.png/16px-Coin4.png)(http://wiki.dominionstrategy.com/images/thumb/f/f7/Coin1.png/16px-Coin1.png)(http://wiki.dominionstrategy.com/images/thumb/7/7d/Coin5.png/16px-Coin5.png)(http://wiki.dominionstrategy.com/images/thumb/9/9d/Coin9.png/16px-Coin9.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/16px-Coin2.png)(http://wiki.dominionstrategy.com/images/thumb/6/6f/Coin6.png/16px-Coin6.png)(http://wiki.dominionstrategy.com/images/thumb/7/7d/Coin5.png/16px-Coin5.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png)(http://wiki.dominionstrategy.com/images/thumb/7/7d/Coin5.png/16px-Coin5.png)(http://wiki.dominionstrategy.com/images/thumb/4/47/Coin8.png/16px-Coin8.png)(http://wiki.dominionstrategy.com/images/thumb/9/9d/Coin9.png/16px-Coin9.png)(http://wiki.dominionstrategy.com/images/thumb/b/bc/Coin7.png/16px-Coin7.png)(http://wiki.dominionstrategy.com/images/thumb/9/9d/Coin9.png/16px-Coin9.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png)(http://wiki.dominionstrategy.com/images/thumb/3/3d/Coin2.png/16px-Coin2.png)(http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png)...
Cool!
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on September 27, 2015, 04:15:33 pm
I actually miss the fds extension because I've been using a borrowed computer while mine gets fixed and it doesn't have Chrome on it (and I can't install it without their password).
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 28, 2015, 12:21:14 am
Makes me happy to hear the feedback. I wonder if there's enough interest for me to try a Firefox port.

I have the same missing it issue when posting from my iPad or iPhone.
Title: Re: Chrome Extension for f.ds!
Post by: market squire on September 28, 2015, 03:23:43 am
+1 for Firefox!!  :)
Title: Re: Chrome Extension for f.ds!
Post by: Awaclus on September 28, 2015, 05:14:22 am
An Opera port would be very appreciated.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 11, 2015, 05:37:06 pm
Updated! There's now a button for inserting a card image instead of a link, and another for generating a visualized Kingdom based on a list of card names!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 20, 2015, 02:27:34 pm
I tried and failed at making a Firefox version. Is there anyone out there who has made Firefox add-ins that can help? From my various Google searches, it just seems to require a lot of extra setup compared to the Chrome extensions. I tried copying the basic folder structure that my searches said I need, but just couldn't get anything to work. It's just a .js file and a .css file, so it should be straightforward.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on November 06, 2015, 08:59:34 am
Would it be possible to get buttons for Event Links and Event Images?  Since they're landscape instead of portrait.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 09, 2015, 03:01:07 pm
Sorry for the delay; the VP image has been fixed in version 1.9.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 13, 2016, 12:29:37 pm
ToDo list for Empires:

- Add new events and landmarks to list of things to display landscape in rollover images (I think I still also need to add Summon (http://wiki.dominionstrategy.com/index.php/Summon)).
- Add Debt icons of various denominations to the icon buttons.
- Add a $14 coin icon.

Am I missing anything?

I also think I'd like to make it so that clicking the buttons for coin images doesn't insert the full URL right then, but instead if more like the "Card Link" button that puts in a placeholder. This will make writing posts cleaner/easier.

Of course I still don't have my computer, but hopefully within a week.

Still want to do a Firefox port also...
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on May 13, 2016, 01:55:04 pm
Does Schneau still post here?  He apparently put up the Coin cost images.  I can get better resolution Debt images once I scan in the physical cards, but if there aren't Debt images for each amount, I won't be able to create them.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 13, 2016, 02:18:17 pm
Well we only need images for the values that exist on real cards.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 18, 2016, 11:50:27 pm
Version 1.10 released! New icons and such. Should also fix display issues for Landmarks and new events (it keeps a special list of images to display as landscape in the rollover).

Will plan on updating the icons to not insert the full URL while typing your post later. Also of course will need to add the rest of events and landmarks whenever those are revealed.

Testing... Wolf Den (http://wiki.dominionstrategy.com/index.php/Wolf_Den), Dominate (http://wiki.dominionstrategy.com/index.php/Dominate), Battlefield (http://wiki.dominionstrategy.com/index.php/Battlefield), Windfall (http://wiki.dominionstrategy.com/index.php/Windfall).

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Battlefield.jpg)
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on May 18, 2016, 11:53:50 pm
My extension does not seem to be automatically updating.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 18, 2016, 11:53:54 pm
Would it be possible to get buttons for Event Links and Event Images?  Since they're landscape instead of portrait.

If I saw this back when you posted it, I don't remember. Can you explain? I'm pretty sure that by the time you posted this, Events were already set to properly display in the correct ratio/size. Except for Summon.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 18, 2016, 11:55:18 pm
My extension does not seem to be automatically updating.

It takes many hours for autoupdates to get pushed through.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on May 19, 2016, 10:10:13 am
SHortened Google links should be okay with the image url length, right?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 19, 2016, 12:12:49 pm
SHortened Google links should be okay with the image url length, right?

That's a good idea.... but I'd rather see it use tags the way it does for things like [Card]. That way, you could also do things like type [$5] instead of hitting the button for it, which could be easier sometimes. Then when you go to post, it will automatically replace the tag with the correct link.

Of course, I could do both ideas at once; replace the tag with the shortened link. That way editing and replying to posts look nicer.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on May 25, 2016, 02:27:10 pm
(https://www.mozilla.org/media/img/styleguide/identity/firefox/guidelines-logo.7ea045a4e288.png)?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 25, 2016, 05:29:16 pm
(https://www.mozilla.org/media/img/styleguide/identity/firefox/guidelines-logo.7ea045a4e288.png)?

I keep asking for help from people who know how without any luck. But I'll try my hand at it again in the next couple weeks.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on May 25, 2016, 05:31:59 pm
Sorry for bothering you anyways.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2016, 11:16:09 pm
Salt the Earth (http://wiki.dominionstrategy.com/index.php/Salt_the_Earth). Salt the Earth (http://wiki.dominionstrategy.com/index.php/Salt_the_Earth). Wild Hunt (http://wiki.dominionstrategy.com/index.php/Wild_Hunt).

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Salt_the_Earth.jpg)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2016, 11:30:09 pm
It works! Version 1.11 is done; should auto-updated within the next day. Aside from the rest of the Empires icons and cards; this improves the way that inserting costs and icons works. No more does it stick a big ugly URL in; instead it just inserts markup which is auto-replaced. This means you can also just type the markup. Coin costs are in the form [] with a $ and a number inside. Debt is the same except with <> instead of []. You can just click a button or just hover over it to see the proper markup.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on June 08, 2016, 11:47:18 pm
I'm getting a hover image for Wild Hunt, but not Salt the Earth.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 08, 2016, 11:56:51 pm
I'm getting a hover image for Wild Hunt, but not Salt the Earth.

That's fixed in 1.11; 1.10 isn't showing the image. It's because Salt the Earth is the first event to have more than 2 words in the name. Turns out that I was only replacing spaces with underscores for the first space... which as it turns out is fine as far as the wiki is concerned; it works fine with spaces or underscores in the card names. But it was breaking the landscape code; so I found and fixed it; so that now it properly uses underscores in the card name when posting. So because I posted those links with 1.11; they have underscores. But 1.10 is incorrectly expecting 1 underscore and 1 space..
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 09, 2016, 12:00:11 am
Still digging around trying to figure out Firefox addons. Found this: https://addons.mozilla.org/en-US/firefox/addon/dominion-full-card-display/?src=search. So awesome... I wonder if the guy who made that posts here?
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 09, 2016, 12:18:51 am
Still digging around trying to figure out Firefox addons. Found this: https://addons.mozilla.org/en-US/firefox/addon/dominion-full-card-display/?src=search. So awesome... I wonder if the guy who made that posts here?

He has jakebuck.net, apparently. I don't know if that exists or not, I cannot tell because of ISP blocking.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 09, 2016, 12:31:56 am
Still digging around trying to figure out Firefox addons. Found this: https://addons.mozilla.org/en-US/firefox/addon/dominion-full-card-display/?src=search. So awesome... I wonder if the guy who made that posts here?

He has jakebuck.net, apparently. I don't know if that exists or not, I cannot tell because of ISP blocking.

It's doesn't (anymore), but jakebuck.com does; I sent him a message through that.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 09, 2016, 09:22:24 am
Still digging around trying to figure out Firefox addons. Found this: https://addons.mozilla.org/en-US/firefox/addon/dominion-full-card-display/?src=search. So awesome... I wonder if the guy who made that posts here?

He has jakebuck.net, apparently. I don't know if that exists or not, I cannot tell because of ISP blocking.

It's doesn't (anymore), but jakebuck.com does; I sent him a message through that.

Yes, I can visit that site!!! Did you try that link randomly, by accident, or did you have some prior knowledge I did not in your Google Quest?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 09, 2016, 10:42:36 am
Still digging around trying to figure out Firefox addons. Found this: https://addons.mozilla.org/en-US/firefox/addon/dominion-full-card-display/?src=search. So awesome... I wonder if the guy who made that posts here?

He has jakebuck.net, apparently. I don't know if that exists or not, I cannot tell because of ISP blocking.

It's doesn't (anymore), but jakebuck.com does; I sent him a message through that.

Yes, I can visit that site!!! Did you try that link randomly, by accident, or did you have some prior knowledge I did not in your Google Quest?

I think I Googled "Jake Buck Dominion" or something.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 09, 2016, 10:51:13 am
I think I Googled "Jake Buck Dominion" or something.

Hmm. I got too meta for my own good. I googled "Jake Buck forum.dominionstrategy" yesterday and found nothing. He hasn't posted anything since 2012, so it's likely he either died or got lazy/busy, and thus it is more likely than not that if he was a forum member on here, he would have not logged in since 2012. Good luck with your e-mail, you stalker. :)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 01:07:16 am
So I went to read the Secret History of Empires, but realized that it was problematic that it didn't have hover-links for the cards; considering that I don't know almost any of the card effects by name yet. So, I went about adding an "auto-link" feature, which would (optionally) add the hover-links to all card names used in a post, even if the person who posted it doesn't have the extension, or chose not to add the card link markup.

So I got basic functionality working fine; but cards that use the names of other cards turns out to be a bigger problem than I thought. I give the markup to City Quarter; it then becomes surprisingly hard to not mess it up as it tries to then give that same text the markup for City.

So, the solution is to take the easy way out, at least for now... cards that are a smaller part of other card names are simply excluded. City won't get the markup; City Quarter works fine. All the Villages work except Village, and sadly Villa. It doesn't affect very many Empires cards anyway; I think just Villa and Triumph. So enjoy reading the secret history with card links!

And in an effort to get this out before everyone has read the secret history anyway, only enabling the links works for now. Unchecking the box does nothing. Checking it again messes stuff up by adding in the links a second time. But refreshing the page always starts clean.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 01:22:15 am
2 more things:

1. It turns out doing the "unlink" thing is really easy; so you can now both check and uncheck the checkbox.

2. I don't recommend using it on any page that already has card links, it messes up. But it should be good on secret histories, or card rankings, etc.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 15, 2016, 04:42:11 pm
If someone is going on a camping trip and mentions that he is packing his gear, will it highlight?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 04:58:08 pm
If someone is going on a camping trip and mentions that he is packing his gear, will it highlight?

Actually no, because it's case sensitive, at least for now. This has the drawback that saying "I bought a grand market" won't highlight either. But other than the casing, yes.
Title: Re: Chrome Extension for f.ds!
Post by: ThetaSigma12 on June 15, 2016, 05:56:14 pm
The extension is great! I wonder if you could have the thing check for spaces on the end, i.e " Villa " instead of "Villa". That would also fix the Count, Counting House problem, words like "Taxing", and words that might appear in images.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 06:19:27 pm
The extension is great! I wonder if you could have the thing check for spaces on the end, i.e " Villa " instead of "Villa". That would also fix the Count, Counting House problem, words like "Taxing", and words that might appear in images.

Thanks!

I thought about that, but I was concerned about things like other tags, like bold fonts which are actually used in the secret histories. But I think I just need to up my regex game; I think word boundaries might actually handle non-letters correctly. I'll play with it some more; I got a couple other ideas for how to fix it for all card names.
Title: Re: Chrome Extension for f.ds!
Post by: Deadlock39 on June 15, 2016, 08:26:30 pm
I don't know if this works because of the JavaScript replace function, or if it is applicable here, but the replacement regex that the log prettifier uses captures all the card names by joining them with "|" (i.e. "Counting House|Count|Fishing Village|Village|Villa").  It sorts them by length so that the regex picks the longer words first and only falls to the shorter ones after.  It uses this regex to replace the card names with themselves wrapped with the appropriate css to display them with their card color.

The code looks like this:

Code: [Select]
var keys = Object.keys(colorClassDict); //This dictionary maps all the card names to their css class
var regExp = new RegExp( keys.sort(function(a,b){return b.length-a.length}).join('|'), 'g' );

function colorCards(str)
    {
    return str.replace(regExp, replace);
    }

function replace(key)
    {
    var value = colorClassDict[key];
    return '<p class="'+value+'">'+key+'</p>';
    }
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 08:49:31 pm
I don't know if this works because of the JavaScript replace function, or if it is applicable here, but the replacement regex that the log prettifier uses captures all the card names by joining them with "|" (i.e. "Counting House|Count|Fishing Village|Village|Villa").  It sorts them by length so that the regex picks the longer words first and only falls to the shorter ones after.  It uses this regex to replace the card names with themselves wrapped with the appropriate css to display them with their card color.

The code looks like this:

Code: [Select]
var keys = Object.keys(colorClassDict); //This dictionary maps all the card names to their css class
var regExp = new RegExp( keys.sort(function(a,b){return b.length-a.length}).join('|'), 'g' );

function colorCards(str)
    {
    return str.replace(regExp, replace);
    }

function replace(key)
    {
    var value = colorClassDict[key];
    return '<p class="'+value+'">'+key+'</p>';
    }

Thanks! I'm doing a similar thing actually with sorting the cards by longest first; but I was looping through all cards and doing the replacements for each one. Joining them all in a regex like that sounds like a good idea. But.. where is the "replace" coming from in the call to str.replace()? It would be the card name basically, but how do you extract the card name from the regex match?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 09:04:09 pm
I don't know if this works because of the JavaScript replace function, or if it is applicable here, but the replacement regex that the log prettifier uses captures all the card names by joining them with "|" (i.e. "Counting House|Count|Fishing Village|Village|Villa").  It sorts them by length so that the regex picks the longer words first and only falls to the shorter ones after.  It uses this regex to replace the card names with themselves wrapped with the appropriate css to display them with their card color.

The code looks like this:

Code: [Select]
var keys = Object.keys(colorClassDict); //This dictionary maps all the card names to their css class
var regExp = new RegExp( keys.sort(function(a,b){return b.length-a.length}).join('|'), 'g' );

function colorCards(str)
    {
    return str.replace(regExp, replace);
    }

function replace(key)
    {
    var value = colorClassDict[key];
    return '<p class="'+value+'">'+key+'</p>';
    }

Never mind that question, I got it with the str.replace that takes a regex and a function call. The function is passed in the word that matched, which in this case is the card name. Using that, I was able to do it perfectly in a few lines of code!

So right before I saw your post, I had just finished my other solution, which I spent the last couple of hours implementing... I had been looping through all text nodes on the page, and replacing them one at a time, as long as they weren't children of a link. It was super inefficient both in coding and runtime execution. Your suggestion is awesome; wish I'd thought of it before! I had thought of a giant regex that would incorporate all cards at once, but I didn't know how I could use that to replace each match with the right thing.
Title: Re: Chrome Extension for f.ds!
Post by: Deadlock39 on June 15, 2016, 09:07:48 pm
PPE: Awesome, glad it worked!  I'll post my comments below in case it is helpful to anyone looking through here at a later time.




Well, the replace is a reference to the function below the colorCards function.  The code I posted is hacked up a bit from code I have that I stole from the randomizer. It is part of a class, so I ripped out a few instances of "this."

I can't honestly say I understand it 100% since I stole it from the log prettifier, but here is my best attempt at an explaination:
With JS, if you call String.replace( <regex>, <function> ), it takes the match from the regex and passes it to the function. and then replaces the match with the value the function returns.  The 'g' in the regex makes it grab all the matches, so the regex itself prevents you from reparsing things that were already matched. 
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 15, 2016, 10:03:37 pm
Fixed the Dave Goldthorpe / LibraryAdventurer issue by using \b word matches (their names were showing up as cards). I tried matching case-insensitive, but it was bad; way too many false positives. Version 1.13 is published. Thanks again Deadlock!
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on June 16, 2016, 12:40:57 am
Fixed the Dave Goldthorpe / Library (http://wiki.dominionstrategy.com/index.php/Library)Adventurer (http://wiki.dominionstrategy.com/index.php/Adventurer) issue by using \b word matches (their names were showing up as cards)...
my name is made of cards.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 16, 2016, 12:00:59 pm
Fixed the Dave Goldthorpe / Library (http://wiki.dominionstrategy.com/index.php/Library)Adventurer (http://wiki.dominionstrategy.com/index.php/Adventurer) issue by using \b word matches (their names were showing up as cards)...
my name is made of cards.

Sure, but it seemed wrong to autolink them. Because if someone types "LibraryAdventurer", they are almost definitely talking about you, the forum poster, not talking about Dominion cards by that name.

The drawback of matching on words is that words like "Coppers" no longer link the "Copper" part.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on June 16, 2016, 09:06:21 pm
Fixed the Dave Goldthorpe / Library (http://wiki.dominionstrategy.com/index.php/Library)Adventurer (http://wiki.dominionstrategy.com/index.php/Adventurer) issue by using \b word matches (their names were showing up as cards)...
my name is made of cards.

Sure, but it seemed wrong to autolink them. Because if someone types "Library (http://wiki.dominionstrategy.com/index.php/Library)Adventurer (http://wiki.dominionstrategy.com/index.php/Adventurer)", they are almost definitely talking about you, the forum poster, not talking about Dominion cards by that name.

The drawback of matching on words is that words like "Coppers" no longer link the "Copper" part.
but I like my name to link to the cards
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on June 16, 2016, 09:10:49 pm
Now we need a Chrome extension to access f.ds when it is down.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on July 25, 2016, 01:54:37 am
I posted a kingdom here (http://forum.dominionstrategy.com/index.php?topic=15955.msg622085#msg622085), using the card image button to show images, and the images wouldn't show for any card that has a space in its name.
EDIT: I found a workaround which may help you to find the bug: When I capitalized Hunting_Party, Horn_of_Plenty, and Hunting_Grounds, then the images showed correctly. (It took me two tries for Horn of plenty because I tried 'Horn_Of_Plenty' first.)

Also, how do you use the kingdom button in the fds plugin?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on July 25, 2016, 12:44:09 pm
I posted a kingdom here (http://forum.dominionstrategy.com/index.php?topic=15955.msg622085#msg622085), using the card image button to show images, and the images wouldn't show for any card that has a space in its name.
EDIT: I found a workaround which may help you to find the bug: When I capitalized Hunting_Party, Horn_of_Plenty, and Hunting_Grounds, then the images showed correctly. (It took me two tries for Horn of plenty because I tried 'Horn_Of_Plenty' first.)

Also, how do you use the kingdom button in the fds plugin?

It's set up for capitalization to matter, though that's probably not ideal; because why should it? I think I can change that easily. Can't say why capitalization only mattered for multi-word cards; thought it would be the same for all.

For the Kingdom button, just list out all the cards with a comma (and a space after the comma) between each one. Like this (should stay as a list because the extension isn't installed where I'm posting from):

[kingdom]Hunting Party, Chapel, Scout, Laboratory[/kingdom]
Title: Re: Chrome Extension for f.ds!
Post by: ThetaSigma12 on September 25, 2016, 05:00:09 pm
I'd like if this could be updated ASAP for the new cards!  :)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 27, 2016, 09:54:12 am
I'd like if this could be updated ASAP for the new cards!  :)

Oh man I was just thinking about that yesterday at work, planning on doing it when I got home. Then by the time I got home, I forgot. Should be done tonight. I'll also update it so that capitalization doesn't matter for the auto-linking.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 27, 2016, 10:26:53 pm
I'd like if this could be updated ASAP for the new cards!  :)

Done! All 16 new cards have been added to auto-link. It will now auto-link cards that have incorrect casing, as well as allow you to use the link/image/kingdom tags on cards that have incorrect casing.
Title: Re: Chrome Extension for f.ds!
Post by: Kirian on September 27, 2016, 10:56:35 pm
Aw man, still wanting this for FF :(
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 27, 2016, 11:28:43 pm
Aw man, still wanting this for FF :(

Not to spoil anything, or raise false hopes in case things don't go as expected, but check back in a few days.  ;)
Title: Re: Chrome Extension for f.ds!
Post by: Doom_Shark on October 02, 2016, 05:17:16 pm
So will the new cards for the 2nd editions work already, or do you have to wait to be able to implement them?
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on October 02, 2016, 05:54:36 pm
Aw man, still wanting this for FF :(

Not to spoil anything, or raise false hopes in case things don't go as expected, but check back in a few days.  ;)

(https://media.tenor.co/images/6eb0f4f4549e3b37d3d8fd5b7af4c29d/raw)
Title: Re: Chrome Extension for f.ds!
Post by: heron on October 02, 2016, 06:40:06 pm
Aw man, still wanting this for FF :(

Not to spoil anything, or raise false hopes in case things don't go as expected, but check back in a few days.  ;)

[hopes deleted]

Uh maybe I am just confused about what this image means but Seprix have you seen this thread?
http://forum.dominionstrategy.com/index.php?topic=16305.0
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 03, 2016, 10:47:00 am
So will the new cards for the 2nd editions work already, or do you have to wait to be able to implement them?

I added them a few days ago in the 1.14 update.

As a general rule, whenever new cards are created, as soon as they are added to the Wiki, the [card ] and [cardImage ] and [kingdom ] tags will automatically work the same without me needing to update anything. But the "Autolink cards" feature requires me to update to add the new cards to the list of all cards.
Title: Re: Chrome Extension for f.ds!
Post by: Seprix on October 03, 2016, 01:32:57 pm
Aw man, still wanting this for FF :(

Not to spoil anything, or raise false hopes in case things don't go as expected, but check back in a few days.  ;)

[hopes deleted]

Uh maybe I am just confused about what this image means but Seprix have you seen this thread?
http://forum.dominionstrategy.com/index.php?topic=16305.0

Hopes reuploaded.
Title: Re: Chrome Extension for f.ds!
Post by: Doom_Shark on October 03, 2016, 07:46:39 pm
So will the new cards for the 2nd editions work already, or do you have to wait to be able to implement them?

I added them a few days ago in the 1.14 update.

As a general rule, whenever new cards are created, as soon as they are added to the Wiki, the [card ] and [cardImage ] and [kingdom ] tags will automatically work the same without me needing to update anything. But the "Autolink cards" feature requires me to update to add the new cards to the list of all cards.
I kinda thought it would work that way, but I wasn't sure, and didn't want to look stupid by using a card that doesn't work, so I thought I might as well ask.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 28, 2017, 12:37:26 pm
I'll try to get around to adding Nocturne cards (and other card-shaped things) to the list for auto-linking sometime within the next week. I know at least for me, it's when there's new cards that it helps the most.

*Edit* I really should find a way to have the list pull dynamically from some web service or something; so that I don't need an update every time there's a new card.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 06, 2017, 12:25:07 am
Testing my Nocturne update, don't mind me.

Miserable
Palace Skulk Will-o'-Wisp, Zombie Spy, Wish, Wishing Well

Horn of Plenty

Lost in the Woods
Salt the Earth

Inherited Baron.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 06, 2017, 01:07:18 am
Version 1.15 published! You can now read the Secret History of Nocturne, and use auto-link to actually see what card is being talked about! (For those of us who haven't memorized all the new cards yet).
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 25, 2018, 09:11:11 pm
Not a version update; but I'm adding Renaissance cards to the card list for Auto Link purposes as they're revealed. Finally added Dismantle (http://wiki.dominionstrategy.com/index.php/Dismantle) also.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 25, 2018, 09:12:36 pm
Is there interest in having "Auto-Link" be something that's saved in cookies, so that it remembers if you have it turned on? I find myself generally just clicking it every time a page is loaded.
Title: Re: Chrome Extension for f.ds!
Post by: sudgy on September 25, 2018, 09:34:36 pm
Is there interest in having "Auto-Link" be something that's saved in cookies, so that it remembers if you have it turned on? I find myself generally just clicking it every time a page is loaded.

Yes, please!  I always am having to scroll up to click that button.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 25, 2018, 10:18:35 pm
Done!

As always, could take a while until the update updates. For Chrome, at least. Firefox seems to have updated immediately and is working just the same.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on September 25, 2018, 11:41:33 pm
Suggestion: Search for "haven't" and disable autolink for Haven.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 26, 2018, 10:23:42 am
My last update broke the new post page; the buttons and icons aren't there anymore. New version should be available soon.

Yeah, I'll try to fix "haven't". I need to figure out my own regex; I'm not actually sure what it's doing anymore. Always comment your code!
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on September 26, 2018, 08:56:03 pm
Or maybe just don't autolink anything that is not capitalized.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 26, 2018, 09:16:54 pm
Or maybe just don't autolink anything that is not capitalized.

I think I went back and forth on capitalization before. Or maybe it was just spacing. But so many people mis-capitalize multi-word cards, or just don't bother capitalizing it. Yeah it would be nice if things like "page" weren't affected in the wrong context.

For haven't, I just need to figure out why I made my current regex as complex as I did before messing with it to exclude that one.

*Edit* And of course if I exclude haven followed by a single quote, we'd lose things like "haven's effect". So I need to be more specific to "haven't".
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 03, 2018, 01:02:03 pm
After reading through some more various threads that weren't actually talking about Dominion cards, I think the solution is to consider capitalization for matching card names. Way too many uses of words like "fair" and "page" and "haven't" that shouldn't be matched. Probably better to err on the side of a Dominion card being not matched than a non-Dominion card being matched.

Will update tonight probably.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on October 03, 2018, 02:47:39 pm
After reading through some more various threads that weren't actually talking about Dominion cards, I think the solution is to consider capitalization for matching card names. Way too many uses of words like "fair" and "page" and "haven't" that shouldn't be matched. Probably better to err on the side of a Dominion card being not matched than a non-Dominion card being matched.

Haven't we had enough of Dominion cards not being linked? Is this Fair to the card names we forget to capitalize? I say there's nothing nothing wrong with linking words to Dominion cards when they're not being used to name the cards. These Pages are on the Dominion forums, after all.
Title: Re: Chrome Extension for f.ds!
Post by: Awaclus on October 03, 2018, 03:18:18 pm
After reading through some more various threads that weren't actually talking about Dominion cards, I think the solution is to consider capitalization for matching card names. Way too many uses of words like "fair" and "page" and "haven't" that shouldn't be matched. Probably better to err on the side of a Dominion card being not matched than a non-Dominion card being matched.

Haven't we had enough of Dominion cards not being linked? Is this Fair to the card names we forget to capitalize? I say there's nothing nothing wrong with linking words to Dominion cards when they're not being used to name the cards. These Pages are on the Dominion forums, after all.

You mean the Dominion Forums.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 03, 2018, 03:25:05 pm
Doesn't work with pluralization anyway.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on October 03, 2018, 03:27:10 pm
Doesn't work with pluralization anyway.
Rats!
Why not?
Title: Re: Chrome Extension for f.ds!
Post by: infangthief on October 04, 2018, 05:38:21 am
After reading through some more various threads that weren't actually talking about Dominion cards, I think the solution is to consider capitalization for matching card names. Way too many uses of words like "fair" and "page" and "haven't" that shouldn't be matched. Probably better to err on the side of a Dominion card being not matched than a non-Dominion card being matched.

Haven't we had enough of Dominion cards not being linked? Is this Fair to the card names we forget to capitalize? I say there's nothing nothing wrong with linking words to Dominion cards when they're not being used to name the cards. These Pages are on the Dominion forums, after all.

You mean the Dominion Forums.

we Forget to Capitalize?
It might wear a bit thin if Minion gets picked out every time we mintion Domineon.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 04, 2018, 11:54:19 am
Don't know why Card Image didn't work though.

[cardImage]Count[/cardImage]

Edit: It appears to be broken, along with the Kingdom Viewer.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 04, 2018, 12:14:18 pm
Don't know why Card Image didn't work though.

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Count.jpg)

Edit: It appears to be broken, along with the Kingdom Viewer.

Thanks for reposting.

Fixed, and new version should autoupdate within the hour.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 04, 2018, 12:16:44 pm
Seems like a good place for me to make sure I know how to use this fancy Chrome Extension.

Butcher (http://wiki.dominionstrategy.com/index.php/Butcher)
(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg)
(http://wiki.dominionstrategy.com/images/thumb/2/21/Debt5.png/18px-Debt5.png)
 (http://wiki.dominionstrategy.com/images/thumb/3/32/Coin3.png/16px-Coin3.png)
(http://wiki.dominionstrategy.com/images/thumb/a/a9/Coin3star.png/16px-Coin3star.png)


All right, I guess I don't know what the kingdom button or the card image button do.

The kingdom button requires you to type each card name in the kingdom.

Would it be a wanted feature to be able to display a Kingdom using a game id?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 04, 2018, 01:38:50 pm
Ugh, fixing the cardImage bug introduced another bug; though it's more of an invisible one unless you are looking in the console. Should be fixable.

Testing: Moat (http://wiki.dominionstrategy.com/index.php/Moat)

Testing2: (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg)
Title: Re: Chrome Extension for f.ds!
Post by: Chappy7 on October 04, 2018, 05:10:26 pm

Would it be a wanted feature to be able to display a Kingdom using a game id?

That would be awesome!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 18, 2018, 11:41:44 am
Aside from the Kingdom thing, which I'm still looking for answers on how to do it, I want to add some stuff to autolink that doesn't work due to people using abbreviations or shortcuts. Similar to how I have "Inherited" autolink to "Inheritance".

For all Boons, I plan to make them work even if "The" is missing. So "Wind's Gift" will autolink.

JoaT, CotR, IGG are the other common ones I can think of. Of course a lot of cards are commonly abbreviated, but I don't want to try and go overboard here. Just ones that are written in short form more often than they're written out fully.

What other cards am I missing? I could do common mistakes too, like "Farmer's Market".
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 23, 2018, 05:15:02 pm
Having heard no extra suggestions; the newest version adds specifically the things mentioned in the above post. Should be good for Boons especially.

Note that until you get the latest update (v.1.25), those things will appear as card links, but will link to non-existent cards.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 23, 2018, 10:34:50 pm
Mountain's Gift is the best boon
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 23, 2018, 10:36:16 pm
Sea's Gift should be +10 cards
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 23, 2018, 10:37:01 pm
Nothing autolinks  :(
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 23, 2018, 10:54:01 pm
Nothing autolinks  :(

Do you have autolink checked at the top of the thread page?
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 24, 2018, 11:39:13 am
Yes...?

Had to uninstall and reinstall, it works now.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 24, 2018, 11:40:41 am
Mountain's Gift is the best boon

These still don't autolink
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 24, 2018, 11:46:21 am
Mountain's Gift is the best boon

These still don't autolink

Is it any of the boons? I'm seeing the link in your post, in the quoted text.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 24, 2018, 11:50:12 am
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 24, 2018, 12:03:35 pm
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."

The issue with the double-The is indeed a bug; I should have that fixed hopefully later today. Thanks for finding it!

But I have no idea why the other ones aren't working for you. Do me a favor and go to http://pittersplace.com/dominion/cardlist.txt (that's the page that lists everything it tries to autolink). If you scroll to the very bottom, do you see "Mountain's Gift" (with no "the"), etc?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 24, 2018, 12:54:25 pm
Fixed the double-the issue in 1.26.

Can anyone else confirm if the autolink for Boons is working for them?
Title: Re: Chrome Extension for f.ds!
Post by: Awaclus on October 24, 2018, 01:02:25 pm
The Mountain's Gift

Mountain's Gift
Title: Re: Chrome Extension for f.ds!
Post by: Awaclus on October 24, 2018, 01:03:57 pm
"The Mountain's Gift" tries (and fails) to link to "The The Mountain's Gift", just "Mountain's Gift" doesn't work.

EDIT: although the issue here seems to be that it hasn't updated for me.

EDIT 2: Now that it has, it works.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 24, 2018, 02:11:51 pm
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."

The issue with the double-The is indeed a bug; I should have that fixed hopefully later today. Thanks for finding it!

But I have no idea why the other ones aren't working for you. Do me a favor and go to http://pittersplace.com/dominion/cardlist.txt (that's the page that lists everything it tries to autolink). If you scroll to the very bottom, do you see "Mountain's Gift" (with no "the"), etc?

I see them, but there seems to be an unindented block before it. Maybe that's causing the problem? I updated to 1.26 and the double-the issue seems to be fixed but I don't see the other autolinks.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 24, 2018, 02:40:30 pm
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."

The issue with the double-The is indeed a bug; I should have that fixed hopefully later today. Thanks for finding it!

But I have no idea why the other ones aren't working for you. Do me a favor and go to http://pittersplace.com/dominion/cardlist.txt (that's the page that lists everything it tries to autolink). If you scroll to the very bottom, do you see "Mountain's Gift" (with no "the"), etc?

I see them, but there seems to be an unindented block before it. Maybe that's causing the problem? I updated to 1.26 and the double-the issue seems to be fixed but I don't see the other autolinks.

I see that... it shouldn't be causing any issues, but I updated the list to fix it anyway.

I wonder if this is a localization thing... what country are you in; is your browser set to show things in a language other than English? Could also possibly be a line-ending encoding thing; are you on Linux or Mac by any chance?
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on October 24, 2018, 03:00:39 pm
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."

The issue with the double-The is indeed a bug; I should have that fixed hopefully later today. Thanks for finding it!

But I have no idea why the other ones aren't working for you. Do me a favor and go to http://pittersplace.com/dominion/cardlist.txt (that's the page that lists everything it tries to autolink). If you scroll to the very bottom, do you see "Mountain's Gift" (with no "the"), etc?

I see them, but there seems to be an unindented block before it. Maybe that's causing the problem? I updated to 1.26 and the double-the issue seems to be fixed but I don't see the other autolinks.

I see that... it shouldn't be causing any issues, but I updated the list to fix it anyway.

I wonder if this is a localization thing... what country are you in; is your browser set to show things in a language other than English? Could also possibly be a line-ending encoding thing; are you on Linux or Mac by any chance?

English, Windows 10 and a chromebook. Doesn't work on either.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 24, 2018, 03:48:49 pm
Everything autolinks except the boons (possibly only the boons where the "The" is dropped)

The Mountain's Gift
the Mountain's Gift
Mountain's Gift

Only the first one autolinks...and it apparently tries to autolink to a page called "The The Mountain's Gift."

The issue with the double-The is indeed a bug; I should have that fixed hopefully later today. Thanks for finding it!

But I have no idea why the other ones aren't working for you. Do me a favor and go to http://pittersplace.com/dominion/cardlist.txt (that's the page that lists everything it tries to autolink). If you scroll to the very bottom, do you see "Mountain's Gift" (with no "the"), etc?

I see them, but there seems to be an unindented block before it. Maybe that's causing the problem? I updated to 1.26 and the double-the issue seems to be fixed but I don't see the other autolinks.

I see that... it shouldn't be causing any issues, but I updated the list to fix it anyway.

I wonder if this is a localization thing... what country are you in; is your browser set to show things in a language other than English? Could also possibly be a line-ending encoding thing; are you on Linux or Mac by any chance?

English, Windows 10 and a chromebook. Doesn't work on either.

Can you open the console (hitting F12) and see if there are any errors shown? To make sure this page has stuff to check:

Mountain's Gift
The Mountain's Gift

Also would be good to know if the other "shortcuts" are working:

IGG, Farmer's Market, JoaT, CotR, Inherited
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 01, 2018, 12:41:18 pm
Any update, vishwathg?

I'm going to add BoM to the shortcut list. Also, Ill-Gotten Gains currently is messed up, though IGG works. Will hopefully fix soon.
Title: Re: Chrome Extension for f.ds!
Post by: vishwathg on November 01, 2018, 01:37:22 pm
Oh, sorry. Everything works perfectly. Thanks!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 05, 2018, 04:45:07 pm
Version 1.27 posted. Fixes the Ill-Gotten Gains link, and adds BoM to the shortcuts for autolink.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on November 05, 2018, 11:41:42 pm
I just noticed that pluralized card names don't autolink (as in Grand Market but not Grand Markets). Why?
I still think lowercase card names should autolink too.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 09:24:29 am
There was a time that both of those would have worked; but plural was changed a long time ago, and capitalization was changed recently. Both because there were far too many false positives. People didn't like "haven't" auto linking, for example.

Fixed the Dave Goldthorpe / LibraryAdventurer issue by using \b word matches (their names were showing up as cards). I tried matching case-insensitive, but it was bad; way too many false positives. Version 1.13 is published. Thanks again Deadlock!

It might be possible to allow plurals to work without the Goldthorpe problem; if I just look for "s" specifically.
Title: Re: Chrome Extension for f.ds!
Post by: Asper on November 06, 2018, 09:38:06 am
I demand "Pot" to autolink to either the Wikipedia page on cannabis, or a Rickrolling video.
Title: Re: Chrome Extension for f.ds!
Post by: chipperMDW on November 06, 2018, 09:48:17 am
It might be possible to allow plurals to work without the Goldthorpe problem; if I just look for "s" specifically.

What's a Goldthorpe problem? Did you mean Scunthorpe problem? ('Cuz there's an easy way to remember how to spell that.)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 09:57:35 am
It might be possible to allow plurals to work without the Goldthorpe problem; if I just look for "s" specifically.

What's a Goldthorpe problem? Did you mean Scunthorpe problem? ('Cuz there's an easy way to remember how to spell that.)

The Goldthorpe problem was that the first half of that guy's name was getting autolinked to Gold, and it was annoying. I don't remember who he was; but people were posting about him back then.
Title: Re: Chrome Extension for f.ds!
Post by: chipperMDW on November 06, 2018, 10:24:03 am
It might be possible to allow plurals to work without the Goldthorpe problem; if I just look for "s" specifically.

What's a Goldthorpe problem? Did you mean Scunthorpe problem? ('Cuz there's an easy way to remember how to spell that.)

The Goldthorpe problem was that the first half of that guy's name was getting autolinked to Gold, and it was annoying. I don't remember who he was; but people were posting about him back then.

Oh, wow. I was going to guess that was a made-up name referencing the Scunthorpe Problem in a Dominion-specific context, but there's actually a playtester for Nocturne (mentioned in the secret history but not the credits) named David Goldthorpe. That's a little bit hilarious.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 10:28:34 am
I think I've fixed it, need to use this space to do some tests before I deploy.

Random card name time: Gold! Plural cards like Silvers and stuff too. Goldthorpe. Bold cards like Moat. Haven't seen an issue yet. (http://wiki.dominionstrategy.com/images/thumb/5/5d/Coin0.png/16px-Coin0.png)(http://wiki.dominionstrategy.com/images/thumb/6/6d/Coin.png/16px-Coin.png)(http://wiki.dominionstrategy.com/images/thumb/8/81/Debt.png/18px-Debt.png)(http://wiki.dominionstrategy.com/images/thumb/7/7a/Potion.png/9px-Potion.png)(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png). Buying lots of Raids could be a thing.

Non-autolink stuff: Moat (http://wiki.dominionstrategy.com/index.php/Moat), Gold (http://wiki.dominionstrategy.com/index.php/Gold), Capitalism (http://wiki.dominionstrategy.com/index.php/Capitalism).

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Capitalism.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg)

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Capitalism.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Coin of the Realm.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Raid.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Silver.jpg)
(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Copper.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Province.jpg)

Shortcuts: IGG, CotR, BoM. some people annoyingly write "Farmer's Market". It's "Farmers' Market", get it right!

Capitalism makes Inherited Estates also count as Treasures sometimes. Woah.

Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 10:39:42 am
Version 1.28 published. Plurals work now. Also fixed "Haven't" (annoyingly, by specifically looking for that word and excluding it).
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on November 06, 2018, 07:18:07 pm
I want my name to link to the cards!  That was never a problem for me (can't speak for Goldthorpe).
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 07:21:28 pm
I want my name to link to the cards!  That was never a problem.

I know, I know... and it wasn't a problem for your username. The problem was for other common words and names. False positives make the forum harder to read. Actually, I can't remember how it worked back when your username did auto-link... was not possible to click on your name to get to your user profile? That seems like an issue in general.

I mean, a possibly good solution would be to treat a capital letter as the start of a new word; so "LibraryAdventurer"  would act like 2 separate autolinked words, but "Libraryadventurer" wouldn't. But that's a lot of work for basically just this one specific use case.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on November 06, 2018, 07:29:03 pm
I wonder if the stuff I have to make it not break when card names are used inside links makes card names not work when they just happen to be between brackets... So like if I wanted to say that Duchy < Province, but Colony > Province...

*Edit* Apparently it still works, though I don't know why, lol.

*Edit2* Ah, the < and > are html encoded to show up properly; of course.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on November 06, 2018, 07:31:23 pm
I want my name to link to the cards!  That was never a problem.

I know, I know... and it wasn't a problem for your username. The problem was for other common words and names. False positives make the forum harder to read. Actually, I can't remember how it worked back when your username did auto-link... was not possible to click on your name to get to your user profile? That seems like an issue in general.
I don't remember.

I mean, a possibly good solution would be to treat a capital letter as the start of a new word; so "LibraryAdventurer"  would act like 2 separate autolinked words, but "Libraryadventurer" wouldn't. But that's a lot of work for basically just this one specific use case.
I'd only expect that kind of treatment if I donated to the cause, but I think I'd rather spend my money on ShIt.  (which I hope you don't take the wrong way...)
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on November 06, 2018, 10:01:54 pm
Capitalism makes Inherited Estates also count as Treasures sometimes. Woah.

An Inherited Capitalized Caravan Guard is an Action-Duration-Reaction-Treasure-Victory.  Seprix made a custom banner template for it, and a few other combinations.
Title: Re: Chrome Extension for f.ds!
Post by: sudgy on December 10, 2018, 11:14:48 pm
A really stupid feature request: don't autolink      Moat       .  The joke is never funny when I see the card name before I look at the spoiler.

(in before everybody says "the joke was never funny")
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 11, 2018, 01:49:40 pm
Latest version will not autolink anything inside spoiler tags. Moat jokes or not; having hyperlinks under spoilers looks bad. So it won't show things like Page after the update.

Just to test some more stuff too:

I played a game with a bunch of secret cards such as Moat, Champion, and Donate.
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on December 12, 2018, 07:53:03 am
What does the kingdom button do?
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on December 12, 2018, 07:56:01 am
I'm just going to type something random to see what it does [kingdom]Moat[/kingdom]
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on December 12, 2018, 07:56:37 am
It didn't work :'(
Title: Re: Chrome Extension for f.ds!
Post by: ThetaSigma12 on December 12, 2018, 08:41:28 am
(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Page.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Chapel.jpg)

I think it requires multiple cards.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 12, 2018, 10:57:58 am
Right, Kingdom button is for generated images of an entire kingdom. You write out the card names, separated by a comma. Surround the whole thing with the [kingdom ] tag. It will turn all cards into images, with a newline after every 5 cards.

I don't see why it wouldn't work with just a single card... but using it on just one card should be the same as using the [card ] tag.

(http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg)

*Edit* Yes, you can use it on just one card... LittleFish; not sure why your post didn't seem to work....
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 12, 2018, 10:59:47 am
I'm just going to type something random to see what it does (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg)

Quoting your post just to see if your exact markup works for me.

*Edit* It does.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 12, 2018, 11:03:22 am
I would like to add the ability to simply place a game id inside the kingdom tag to generate the images from that. But I need to figure out how to get data from Dominion Woodcutter. And to understand the difference between Woodcutter and Scavenger... both seem to offer logging services of games.
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on December 12, 2018, 04:02:33 pm
Trying again (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Moat.jpg) (http://wiki.dominionstrategy.com/index.php?title=Special%3AFilePath&file=Potion.jpg)
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on December 12, 2018, 04:03:02 pm
It worked :D whoever made this should be worth 100(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 12, 2018, 04:03:56 pm
It worked :D whoever made this should be worth 100(http://wiki.dominionstrategy.com/images/thumb/9/92/VP.png/16px-VP.png)

That would be me!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 19, 2018, 04:15:54 pm
For those of you who use this... related to this thread (http://forum.dominionstrategy.com/index.php?topic=19292), can you tell me if you have any issues clicking either the view votes; change post icon; or quick modify? Specifically when autolink is turned on.
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on December 20, 2018, 09:46:29 pm
I normally have autolink turned on and clicking on the view votes button does nothing.
EDIT: The modify button also does nothing now. In both cases, if I turn off autolink and refresh the page, it works again.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 21, 2018, 01:19:00 am
Thanks. Didn't have time to look at it tonight; but hopefully will tomorrow night.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 21, 2018, 10:58:59 pm
New version has been published. To fix the issue, I now replace only the text of the posts; not the container around all posts. This has a side-effect of no longer replacing poster ranking card names. I think this fine; it's up to 50 fewer images being loaded on each page; and the point of the autolink is to help people see the card that is being discussed in a post.

Also, to help prevent overloading the system on certain threads; only the first 500 cards in a thread will be autolinked now. For the vast majority of threads here, that should be more than enough. Fun fact, both the Dark Ages secret history and Nocturne secret history have exactly 315 card names mentioned in the post. Weird.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on January 21, 2019, 11:19:33 am
Ok, thanks to an idea from Chappy7, and much help from tailred's Woodcutter logging services, the new game-log-kingdom-visualizer-feature is done!

To use this new feature... type a game number, including a "#" at the start, like #21439056. Highlight the whole thing and hit the "Kingdom" button. It will replace the game number with the list of cards in the Kingdom. Upon posting, it will replace the [kingdom ] tag with the card images, just like before.

You can still use the Kingdom button and the [kingdom ] tag exactly like it used to work also. Just list out any number of card names, separated by commas, surrounded with the [kingdom ] tag, and it will post images for them when you post. The "Kingdom" button will only check the Woodcutter logs if the text starts with a "#".

Remember, your game log needs to be loaded into Woodcutter for this to work.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 29, 2019, 04:56:02 pm
Is this suddenly not working for anyone else? Specifically, the autolink and the link hovering. I'm getting an error in the Chrome console.
Title: Re: Chrome Extension for f.ds!
Post by: sudgy on March 29, 2019, 05:13:44 pm
Well, the "Woodcutter" links in the post above yours works for me.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 29, 2019, 05:16:08 pm
Is this suddenly not working for anyone else? Specifically, the autolink and the link hovering. I'm getting an error in the Chrome console.

Thanks. Are you on Chrome or Firefox?
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on March 29, 2019, 06:30:57 pm
It isn't working for me today (Chrome). I check autolink and refresh and when it refreshes, autolink isn't checked anymore.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 29, 2019, 06:39:49 pm
It isn't working for me today (Chrome). I check autolink and refresh and when it refreshes, autolink isn't checked anymore.

Thanks. I know high-level what the problem is; but no idea why it was never a problem before. Either Chrome updated something; or GoDaddy updated something.

It’s unable to load the list of cards that I keep at http://pittersplace.com/dominion/cardlist.txt, because of cross-site scripting protection.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 30, 2019, 12:31:57 am
Yeah looks like it broke in Chrome version 73 (https://www.chromium.org/Home/chromium-security/extension-content-script-fetches). I have my computer, and my browser, running so often that I didn't get the update until 2 weeks after it came out.

I'll have to make some changes to the way it gets the data. If I hosted it myself, I could just add a Content Security Policy header to the text file that allows it to be loaded as a public API; but I can't so that with GoDaddy. So instead I'll have to update the extension to work with the new version. Doesn't seem too complicated based on instructions I've found, but it's new stuff to me.

It will probably be sometime next week when I can fix it.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on April 08, 2019, 10:25:07 pm
Sorry this took so long. Version 1.32 is published, and should fix the issue.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on August 01, 2019, 02:23:28 pm
http://pittersplace.com/dominion/cardlist.txt has been updated to include Church and Captain, so they will autolink now. Just waiting for the Wiki to get the images.
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on August 02, 2019, 11:41:41 am
http://pittersplace.com/dominion/cardlist.txt has been updated to include Church and Captain, so they will autolink now. Just waiting for the Wiki to get the images.

The wiki is waiting for them to be available for purchase from BGG. :)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on August 02, 2019, 11:42:49 am
http://pittersplace.com/dominion/cardlist.txt has been updated to include Church and Captain, so they will autolink now. Just waiting for the Wiki to get the images.

The wiki is waiting for them to be available for purchase from BGG. :)

Someone uploaded the images; it's been working!
Title: Re: Chrome Extension for f.ds!
Post by: werothegreat on August 02, 2019, 11:54:46 am
http://pittersplace.com/dominion/cardlist.txt has been updated to include Church and Captain, so they will autolink now. Just waiting for the Wiki to get the images.

The wiki is waiting for them to be available for purchase from BGG. :)

Someone uploaded the images; it's been working!

They uploaded screengrabs from Dominion Online.  There are not yet physical scans.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 02, 2020, 03:18:34 pm
The 5 previewed Menagerie cards have been added to the list of cards that makes autolink work. Thanks to the people that added the images to the Wiki to make it work.

I'll keep the list up to date as new cards names are announced. If I add it to the list before someone adds it to the Wiki; the image will just be broken in the meantime.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 03, 2020, 10:33:58 am
If the newest cards aren't autolinking for you, it's because of caching stuff. To fix it, go here:

http://pittersplace.com/Dominion/cardList.txt

Note that casing matters for some reason. Do ctrl-f5 to reload the page. That will make the new cards show up in that list, which should make them work in the autolink.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 05, 2020, 10:06:54 am
So I'm guessing Ways are generally going to be called by simply their animal name. It's happening a lot in the preview thread already. So; should auto-link work with that, the same way it works with "Moon's Gift", or "JoaT"?
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 06, 2020, 08:31:16 am
So I'm guessing Ways are generally going to be called by simply their animal name. It's happening a lot in the preview thread already. So; should auto-link work with that, the same way it works with "Moon's Gift", or "JoaT"?

I'll take the upvotes as a vote for the change. Hopefully more than 2 people are getting use out of this! I'll try to get to it this weekend.. I'd like to change it so that the cardList.txt file actually contains this information, rather than having hard-coded shortcuts in the code. That way shortcuts could be added without a new version; plus it would stop the cardList.txt file from looking like both "IGG" and "Ill-Gotten Gains" are the names of cards.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 08, 2020, 03:45:39 pm
Test post!

Chameleon, IGG, CotR, JoaT, Moon's Gift, Sun's Gift, BoM, Inherited Rats, Smuggler Smugglers.

There is no card called Farmer's Market. It's Farmers' Market. But I link to both because people make that mistake too often.

Turtles all the way down!

Rat is a Way, Rats is not. Obviously, Horse will just link to Horse, not Way of the Horse.

Zombie Apprentice. Wedding. Coppers! .
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 08, 2020, 04:06:13 pm
Version 1.33 uploaded. Apparently Google has added a review process since my last update... so it's not immediately available. Hopefully it will be really soon.

The only change in this version is how it handles the "nickname" feature in auto-link. It's no longer hardcoded to look for things like "BoM" and replace them with "Band of Misfits". Instead, the http://pittersplace.com/Dominion/cardList2.txt file maintains a list of nicknames, separate from the main cards list. This makes it so that I can add new nicknames as well as new cards without needing to release new versions.

As always, please let me know if you see any issues.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 16, 2020, 05:03:59 pm
This was all working just fine for me while testing; but now autolink seems to be completely broken... probably after updating to the latest Chrome; though it's broken on Firefox also... is it working for anyone else?
Title: Re: Chrome Extension for f.ds!
Post by: LibraryAdventurer on March 16, 2020, 08:42:02 pm
not working today for me either.
(http://wiki.dominionstrategy.com/images/thumb/d/df/Coin11.png/16px-Coin11.png)
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 17, 2020, 10:26:29 am
Animal Fair, Barge, Black Cat, Bounty Hunter, Camel Train, Cardinal, Cavalry,
Coven, Destrier, Displace, Falconer, Fisherman, Gatekeeper, Goatherd, Groom,
Hostelry, Hunting Lodge, Kiln, Livery, Mastermind, Paddock, Sanctuary, Scrap,
Sheepdog, Sleigh, Snowy Village, Stockpile, Supplies, Village Green, Wayfarer

Way of the Butterfly
Way of the Camel
Way of the Chameleon
Way of the Frog
Way of the Goat
Way of the Horse
Way of the Mole
Way of the Monkey
Way of the Mouse
Way of the Mule
Way of the Otter
Way of the Owl
Way of the Ox
Way of the Pig
Way of the Rat
Way of the Seal
Way of the Sheep
Way of the Squirrel
Way of the Turtle
Way of the Worm

Alliance
Banish
Bargain
Commerce
Delay
Demand
Desperation
Enclave
Enhance
Gamble
Invest
March
Populate
Pursue
Reap
Ride
Seize the Day
Stampede
Toil
Transport
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 17, 2020, 10:32:45 am
Ok, version 1.34 is submitted for review; should be available hopefully some time today. Bug should be fixed... I understand what caused it now, but not why it wasn't an issue for me during testing.

I also removed the feature where you could load a Kingdom from a game number if it was in Woodcutter Logging services. Woodcutter seems to have had some update that was breaking it. And I assume no one was using that anyway since I never heard a complaint that it was broken. [Kingdom] feature still works normally by just listing several cards, comma separated.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 18, 2020, 12:07:58 am
Ugh, Google rejected the update, but their reasons given make no sense, so it could be a mistake... waiting to hear back from them.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 20, 2020, 10:41:05 am
Here's some updates that no one will care about unless they plan on developing a Chrome extension...

So Google recently updated their dashboard where you manage and update your extensions to a new version. In the old version, along with all the info about your extension, there was a place to upload an icon, which is used next to your extension name in the Chrome web store. In the new version, there's no longer a place to do that, and if you go to upload a new version of your extension and publish it; any icons that you had uploaded in the old dashboard will just not be there anymore.

So my extension was getting rejected from publishing because it didn't have an icon. But I hadn't even noticed that the icon that's always been there was suddenly getting removed by the new dashboard.

So without any help from Google (Google the search engine was helpful; Google the people who were reviewing and rejecting my extension were not), I found that in the new version of the dashboard, icons have to be included with the Extension itself; you bundle the icon files along with your extension and the dashboard will find them and use them in the store from there.

I discovered this immediately after I discovered how to switch back to the old version of the dashboard temporarily so that I could upload the icons like I had previously. So version 1.34 is once again being reviewed; this time with an icon; hopefully to be available soon.

But also I have version 1.35 ready to go, which is exactly the same except that the icons are bundled with the extension so it will work with the new dashboard. The icon in 1.35 also look nicer (taken from the Wiki's icon page), and it has other sizes of icons which will make an icon show up in the list of running extensions in the corner instead of just the letter "F" in a box like it was before.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 21, 2020, 03:22:17 am
Fixed! Update is now available; someone please confirm that autolink works again in 1.34.
Title: Re: Chrome Extension for f.ds!
Post by: sudgy on March 21, 2020, 11:38:31 am
Fixed! Update is now available; someone please confirm that autolink works again in 1.34.

It does!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 21, 2020, 08:03:43 pm
Fixed! Update is now available; someone please confirm that autolink works again in 1.34.

It does!

Thanks!

Version 1.35 published now (and somehow it went through immediately). The only difference is I added the new (http://wiki.dominionstrategy.com/images/thumb/f/fa/Coin7star.png/16px-Coin7star.png) icon; and the extension icon has been updated. I like how now the extension icon in the toolbar on Chrome shows clearly that it's active on F.DS and inactive on other sites by being grayed out.
Title: Re: Chrome Extension for f.ds!
Post by: hhelibebcnofnena on March 21, 2020, 10:04:51 pm
Fixed! Update is now available; someone please confirm that autolink works again in 1.34.

It does!

You probably don't need double confirmation, but you can have it anyway! Everything's working!
Title: Re: Chrome Extension for f.ds!
Post by: Barbarossa41 on March 22, 2020, 03:08:08 am
Working!
(Posting, really, to subscribe) ::)
Title: Re: Chrome Extension for f.ds!
Post by: LittleFish on April 02, 2020, 05:28:02 pm
Working!
(Posting, really, to subscribe) ::)
Yes, they all work
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 03, 2022, 10:35:20 am
Do any Chrome extension users see the new cards working for auto-link? They're working fine for me in Firefox but not in Chrome. I assume it's a caching thing, but I don't think it's my local browser cache, but a cache within the extension itself.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on March 04, 2022, 01:05:49 pm
Ok it turns out it is local cache. If you use auto-link and the new cards aren't linking for you, you need to clear your browser cache (just ctrl-f5 doesn't work like it does with most caching issues).
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on May 17, 2022, 11:58:57 am
As with Allies, new cards are being added to autolink pretty much as soon as they're posted. And with Seaside 2e, looks like someone's getting the images into the Wiki immediately as well, so thanks! Same as before, you'll need to actually clear cache on Chrome for the new links to work.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on June 01, 2022, 04:50:52 pm
The 9 new Prosperity cards have been added.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on December 12, 2022, 06:28:01 pm
All Plunder cards test (thanks Gherald)! As always, if you're on Chrome, remember to clear your cache to get the new cards to work.

$2 Cage, Grotto, Jewelled Egg, Search, Shaman
$3 Secluded Shrine, Siren, Stowaway, Taskmaster
$4 Abundance, Cabin Boy, Crucible, Flagship, Fortune Hunter, Gondola, Harbor Village, Landing Party, Mapmaker, Maroon, Rope, Swamp Shacks, Tools
$5 Buried Treasure, Crew, Cutthroat, Enlarge, Figurine, First Mate, Frigate, Longship, Mining Road, Pendant, Pickaxe, Pilgrim, Quartermaster, Silver Mine, Trickster, Wealthy Village
$6 Sack of Loot
$7 King's Cache


Traits (landscapes): Cheap, Cursed, Fated, Fawning, Friendly, Hasty, Inherited, Inspiring, Nearby, Patient, Pious, Reckless, Rich, Shy, Tireless,
Events (landscapes):
$1 Bury
$2 Avoid, Deliver, Peril, Rush
$3 Foray, Launch, Mirror, Prepare, Scrounge
$4 Journey, Maelstrom
At least $5: Looting
At least $6: Invasion, Prosper
Loots (probably 2 copies of each for 30 total cards): Amphora, Doubloons, Endless Chalice, Figurehead, Hammer, Insignia, Jewels, Orb, Prize Goat, Puzzle Box, Sextant, Shield, Spell Scroll, Staff, Sword
Title: Re: Chrome Extension for f.ds!
Post by: Honkeyfresh on December 23, 2022, 01:55:43 pm
Not sure how I have lived without this all my life.  Really neat!  Thanks for doing this.  Everyone who posts here should have this...
Title: Re: Chrome Extension for f.ds!
Post by: Ethan on September 26, 2023, 09:54:10 pm
It would be more perfect if you can add link for Townsfolk, Augurs, Clashes, Forts, Odysseys, Wizards.
Thank you for your work!
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 27, 2023, 10:51:15 am
It would be more perfect if you can add link for Townsfolk, Augurs, Clashes, Forts, Odysseys, Wizards.
Thank you for your work!

Done! As always, have to clear cache for it to show up.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on September 27, 2023, 12:09:31 pm
And Farm added now as well.
Title: Re: Chrome Extension for f.ds!
Post by: GendoIkari on October 13, 2023, 03:00:16 pm
What do people think about the possibility of this list of cards being moved to the wiki? I mean, the wiki already has a list of cards in some form, but I need a specific JSON format that separates portrait and landscape, and includes the card nicknames (BoM, etc). (Specifically this list: http://pittersplace.com/dominion/cardlist2.txt). I don't mind keeping it up to date for now, it's like 15 minutes of work whenever a new expansion is released. Though during preview week that has to be split up into a little bit of work every day... and if I don't get to it in time, people don't have the advantage of auto-link while reading through the preview threads (which is when I find auto-link most helpful; needing to easily see what these new cards are).

I don't even know if a wiki can host json data like this in a txt file (don't remember why; I had some issues when I had it as a json file originally. It could also probably just be an endpoint that returns the json data rather than being an actual file). But if there were such a wiki page, then the community as a whole could help out with adding new cards when necessary.