Dominion Strategy Forum

Please login or register.

Login with username, password and session length
Pages: 1 2 3 ... 7 [All]

Author Topic: Chrome Extension for f.ds!  (Read 28219 times)

0 Members and 1 Guest are viewing this topic.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Chrome Extension for f.ds!
« on: June 03, 2015, 01:10:39 pm »
+35

Current version: 1.28

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

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

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

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

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

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

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

Version 1.1 update: Item #3 is done now!
Version 1.2 update: Added item #4.
Version 1.3 update: Added 0, *, and + cost symbols.
Version 1.4 update: Made rollover images smaller. Fixed position of rollover images (all images were at the left of the post even if the card link wasn't).
Version 1.5 update: Added 3*, 4*, 5*, and 6* icons. Fixed other icon sizes so that they are all the same.
Version 1.6 update: Fixed rollover image sizes for events.
Version 1.7 update: Added 2 new features/buttons! The "Card Image" button will insert the "cardImage" tag around your card. When you post this tag, your post will contain an image of the actual card from the wiki. Useful for asking a question about a card or writing an article about one. The other is a "Kingdom" button, which adds the "kingdom" tag. This will generate card images given a comma-delimited list of card and event names. Perfect for discussing a game.
Version 1.8 update: Just smaller card images.
Version 1.9 update: Fixed VP image link.
Version 1.10 update: Added image icons for debt costs. Added icon for . Added Landmarks and new events to the list of things that will be displayed landscape instead of portrait in the rollover.
Version 1.11 update: Added all new Landmarks and Events to the list of landscape rollover images. Added icons for and costs. Updated the behavior of the icon buttons! Now when you click a button, it will insert markup representing the cost. When you post, the markup will be replaced with the image links. Makes writing a post much cleaner. Also, you can insert costs without clicking the button, just by typing the correct markup. All markup includes "$", even VP and Potion, just to keep from any potential conflicts with existing markup.
Version 1.12 update: Added "Autolink" feature.
Version 1.13 update: Fixed "Autolink" feature - works on all cards now, and doesn't break when used on pages with existing links.
Version 1.14 update: Added new second edition cards and promo card. Made everything case insensitive so that you can link cards with the wrong capitalization.
Version 1.15 update: Added Nocturne support for auto-link. Also updated the way auto-link gets the list of cards so that in the future, adding new cards won't require a new update to the extension. Fixed bugs with rollover images for cards such as Horn of Plenty, Salt the Earth, etc. Made it so that "Inherited" auto-links to "Inheritance" just for fun.
Version 1.16 update: Fixed bug where rollovers were not working on regular linked (not auto-linked) cards.
Version 1.17 update: Behind-the-scenes updates to work with Firefox approval.
Version 1.18 update: Behind-the-scenes updates to work with Firefox approval.
Version 1.19 update: Add local storage for the "Autolink cards" setting, so that it will default to what you last selected.
Version 1.20 update: Fixed bug introduced in last version where new post features were missing.
Version 1.21 update: Fixed bug introduced in 1.17 where Autolink broke the ability to view post voters.
Version 1.22 update: Use case-sensitive matching for Autolink to reduce the number of false positives.
Version 1.23 update: Fixed a bug introduced in a recent update where cardImage and kingdom tags were not working.
Version 1.24 update: Fixed minor bug introduced in 1.23.
Version 1.25 update: Added rollover link for certain "shortcut" card names.
Version 1.26 update: Fixed bug where Boons wouldn't link if the full name was used.
Version 1.27 update: Fixed bug with Ill-Gotten Gains, and added BoM.
Version 1.28 update: Made autolink work with plurals.
« Last Edit: November 06, 2018, 10:38:52 am by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #1 on: June 03, 2015, 01:18:04 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #2 on: June 03, 2015, 01:28:38 pm »
0

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #3 on: June 03, 2015, 01:41:47 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #4 on: June 03, 2015, 01:58:54 pm »
0

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #5 on: June 03, 2015, 02:18:41 pm »
0

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

Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Voltaire

  • Jester
  • *****
  • Offline Offline
  • Posts: 957
  • flavor text
  • Respect: +1093
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #6 on: June 03, 2015, 02:24:08 pm »
0

Looks like it's from the Fairytale fan expansion listed on BGG. Why it gets special status, no idea.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #7 on: June 03, 2015, 02:27:13 pm »
+1

I need a post with a bunch of card links to test out the ability to do rollover links. So this is it.

Market, Grand Market, Rats, Fishing Village, Island, Fool's Gold, Band of Misfits.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

michaeljb

  • Saboteur
  • *****
  • Online Online
  • Posts: 1395
  • Shuffle iT Username: michaeljb
  • Respect: +2039
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #8 on: June 03, 2015, 02:40:24 pm »
+2

This page 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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #9 on: June 03, 2015, 03:05:10 pm »
+1


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!
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #10 on: June 03, 2015, 03:11:25 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #11 on: June 03, 2015, 03:12:15 pm »
0

I've got the "card" button in the reply box, but no rollover image.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #12 on: June 03, 2015, 03:15:27 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Kirian

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7085
  • Shuffle iT Username: Kirian
  • An Unbalanced Equation
  • Respect: +9334
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #13 on: June 03, 2015, 03:17:15 pm »
+1

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.
Logged
Kirian's Law of f.DS jokes:  Any sufficiently unexplained joke is indistinguishable from serious conversation.

liopoil

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2586
  • Respect: +2475
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #14 on: June 03, 2015, 03:17:33 pm »
+1

Feature request: Coin icons like the ones Gherald has.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #15 on: June 03, 2015, 03:25:23 pm »
+2

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

michaeljb

  • Saboteur
  • *****
  • Online Online
  • Posts: 1395
  • Shuffle iT Username: michaeljb
  • Respect: +2039
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #16 on: June 03, 2015, 03:27:22 pm »
0


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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #17 on: June 03, 2015, 03:56:19 pm »
+1


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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #18 on: June 03, 2015, 04:42:29 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #19 on: June 03, 2015, 04:46:46 pm »
0

Is it a good idea to automatically transform card names into wiki links with image rollovers? Or would that just be annoying?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Donald X.

  • Dominion Designer
  • *****
  • Offline Offline
  • Posts: 5101
  • Respect: +20939
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #20 on: June 03, 2015, 05:57:42 pm »
0

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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #21 on: June 03, 2015, 07:25:46 pm »
+2

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Jimmmmm

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1717
  • Shuffle iT Username: Jimmmmm
  • Respect: +1912
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #22 on: June 03, 2015, 07:36:18 pm »
+1

King's Court




Seems to work. This is great, thanks!
Logged

liopoil

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2586
  • Respect: +2475
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #23 on: June 03, 2015, 07:37:55 pm »
+1

Watchtower - Action -

AWESOME!
Logged

belugawhale

  • Moneylender
  • ****
  • Offline Offline
  • Posts: 154
  • Something.
  • Respect: +201
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #24 on: June 03, 2015, 07:51:31 pm »
+1

Testing
Logged
removed by user

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #25 on: June 03, 2015, 08:16:53 pm »
0

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #26 on: June 03, 2015, 08:48:25 pm »
+2

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #27 on: June 03, 2015, 08:54:31 pm »
+2

There is clear winner this entire forum, we must give offerings political purposes. There will be many celebrations,  and we will Feast for days!

But there will be an uprising. Soon, will defeat you, Gendo....

So yeah, extension seems cool.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #28 on: June 03, 2015, 08:59:02 pm »
0

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #29 on: June 03, 2015, 09:16:14 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #30 on: June 03, 2015, 09:42:12 pm »
0

NOTE: If you aren't seeing the update, close and restart Google Chrome.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #31 on: June 03, 2015, 09:45:54 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #32 on: June 03, 2015, 11:10:09 pm »
0

Psst.  You might want to make a separate thing for Events.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Kirian

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7085
  • Shuffle iT Username: Kirian
  • An Unbalanced Equation
  • Respect: +9334
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #33 on: June 03, 2015, 11:13:23 pm »
0

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.
Logged
Kirian's Law of f.DS jokes:  Any sufficiently unexplained joke is indistinguishable from serious conversation.

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #34 on: June 03, 2015, 11:14:40 pm »
+2

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.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #35 on: June 03, 2015, 11:23:28 pm »
0

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.
« Last Edit: June 03, 2015, 11:24:34 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #36 on: June 06, 2015, 08:35:16 am »
0

The $0 icon is a different shape than the rest:
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #37 on: June 06, 2015, 09:58:46 am »
0

The $0 icon is a different shape than the rest:

Why let different sizes get in the way of a good thing?
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #38 on: June 06, 2015, 11:15:18 am »
0

The $0 icon is a different shape than the rest:

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Schneau

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1170
  • Shuffle iT Username: Schneau
  • Respect: +1446
    • View Profile
    • Rainwave
Re: Chrome Extension for f.ds!
« Reply #39 on: June 07, 2015, 12:49:32 pm »
+4

Alright, I've uploaded the 3* through 6* coin images.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #40 on: June 07, 2015, 01:16:10 pm »
0

Alright, I've uploaded the 3* through 6* coin images.

Great! Will do an update to the extension tomorrow.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #41 on: June 07, 2015, 04:27:59 pm »
0

Alright, I've uploaded the 3* through 6* coin images.

Updated the {{Cost}} template.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #42 on: June 07, 2015, 06:28:30 pm »
+1

Alright, I've uploaded the 3* through 6* coin images.

Updated the {{Cost}} template.

Happy 5000 posts!
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

belugawhale

  • Moneylender
  • ****
  • Offline Offline
  • Posts: 154
  • Something.
  • Respect: +201
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #43 on: June 07, 2015, 08:39:58 pm »
0

Alright, I've uploaded the 3* through 6* coin images.

Updated the {{Cost}} template.

You're going adventuring now!
Logged
removed by user

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #44 on: June 08, 2015, 10:19:38 pm »
+2



Works! Version 1.5 was just published, with the new icons and updates sizes so all icons are the same.
« Last Edit: June 08, 2015, 10:22:17 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #45 on: June 08, 2015, 10:25:01 pm »
0

Testing event rollover images:

Ball, Scouting Party, Inheritance.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

liopoil

  • Margrave
  • *****
  • Offline Offline
  • Posts: 2586
  • Respect: +2475
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #46 on: June 08, 2015, 10:28:37 pm »
0

Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #47 on: June 08, 2015, 10:43:35 pm »
+1

Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #48 on: June 11, 2015, 02:35:45 pm »
0

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.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #49 on: June 11, 2015, 04:17:07 pm »
+2

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.
« Last Edit: September 28, 2016, 05:18:40 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

faust

  • Mountebank
  • *****
  • Offline Offline
  • Posts: 2245
  • Shuffle iT Username: faust
  • Respect: +3145
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #50 on: June 22, 2015, 07:44:52 am »
0

This extension does not provide nearly enough features for playing forum games!
Logged
Since the number of points is within a constant factor of the number of city quarters, in the long run we can get (4 - ε) ↑↑ n points in n turns for any ε > 0.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #51 on: June 23, 2015, 03:09:34 am »
+6

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?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Asper

  • Governor
  • *****
  • Offline Offline
  • Posts: 4750
  • Respect: +5088
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #52 on: June 30, 2015, 02:09:33 pm »
+3

This is amazing and the first reason i can imagine to switching my browser to Chrome.

RelzeriZynx

  • Swindler
  • ***
  • Offline Offline
  • Posts: 16
  • Respect: +15
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #53 on: September 27, 2015, 06:23:52 am »
+3

....
Cool!
Logged

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #54 on: September 27, 2015, 04:15:33 pm »
+1

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).

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #55 on: September 28, 2015, 12:21:14 am »
+2

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.
« Last Edit: September 28, 2016, 05:19:23 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

market squire

  • Conspirator
  • ****
  • Offline Offline
  • Posts: 216
  • Respect: +193
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #56 on: September 28, 2015, 03:23:43 am »
0

+1 for Firefox!!  :)
Logged

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10844
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11423
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #57 on: September 28, 2015, 05:14:22 am »
0

An Opera port would be very appreciated.
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #58 on: October 11, 2015, 05:37:06 pm »
+5

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!
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #59 on: October 20, 2015, 02:27:34 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #60 on: November 06, 2015, 08:59:34 am »
0

Would it be possible to get buttons for Event Links and Event Images?  Since they're landscape instead of portrait.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #61 on: December 09, 2015, 03:01:07 pm »
0

Sorry for the delay; the VP image has been fixed in version 1.9.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #62 on: May 13, 2016, 12:29:37 pm »
+1

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).
- 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...
« Last Edit: May 18, 2016, 11:23:49 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #63 on: May 13, 2016, 01:55:04 pm »
0

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #64 on: May 13, 2016, 02:18:17 pm »
0

Well we only need images for the values that exist on real cards.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #65 on: May 18, 2016, 11:50:27 pm »
+1

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, Dominate, Battlefield, Windfall.

« Last Edit: May 18, 2016, 11:52:29 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #66 on: May 18, 2016, 11:53:50 pm »
0

My extension does not seem to be automatically updating.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #67 on: May 18, 2016, 11:53:54 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #68 on: May 18, 2016, 11:55:18 pm »
0

My extension does not seem to be automatically updating.

It takes many hours for autoupdates to get pushed through.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #69 on: May 19, 2016, 10:10:13 am »
+1

SHortened Google links should be okay with the image url length, right?
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #70 on: May 19, 2016, 12:12:49 pm »
+2

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #71 on: May 25, 2016, 02:27:10 pm »
0

?
« Last Edit: May 25, 2016, 02:28:20 pm by Seprix »
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #72 on: May 25, 2016, 05:29:16 pm »
0

?

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #73 on: May 25, 2016, 05:31:59 pm »
0

Sorry for bothering you anyways.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #74 on: June 08, 2016, 11:16:09 pm »
+1

« Last Edit: June 08, 2016, 11:22:35 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #75 on: June 08, 2016, 11:30:09 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #76 on: June 08, 2016, 11:47:18 pm »
+1

I'm getting a hover image for Wild Hunt, but not Salt the Earth.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #77 on: June 08, 2016, 11:56:51 pm »
0

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..
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #78 on: June 09, 2016, 12:00:11 am »
0

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?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #79 on: June 09, 2016, 12:18:51 am »
0

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.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #80 on: June 09, 2016, 12:31:56 am »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #81 on: June 09, 2016, 09:22:24 am »
0

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?
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #82 on: June 09, 2016, 10:42:36 am »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #83 on: June 09, 2016, 10:51:13 am »
+1

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. :)
« Last Edit: June 09, 2016, 10:53:46 am by Seprix »
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #84 on: June 15, 2016, 01:07:16 am »
+2

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #85 on: June 15, 2016, 01:22:15 am »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #86 on: June 15, 2016, 04:42:11 pm »
0

If someone is going on a camping trip and mentions that he is packing his gear, will it highlight?
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #87 on: June 15, 2016, 04:58:08 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

ThetaSigma12

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1623
  • Shuffle iT Username: ThetaSigma12
  • Respect: +1680
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #88 on: June 15, 2016, 05:56:14 pm »
+1

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.
« Last Edit: June 15, 2016, 05:57:39 pm by ThetaSigma12 »
Logged
If you have a fan card you want to be created, just post about it here! I'd love to take a look at it.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #89 on: June 15, 2016, 06:19:27 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1742
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #90 on: June 15, 2016, 08:26:30 pm »
+1

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>';
    }

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #91 on: June 15, 2016, 08:49:31 pm »
0

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?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #92 on: June 15, 2016, 09:04:09 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Deadlock39

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1722
  • Respect: +1742
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #93 on: June 15, 2016, 09:07:48 pm »
+1

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. 

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #94 on: June 15, 2016, 10:03:37 pm »
+1

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!
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #95 on: June 16, 2016, 12:40:57 am »
+1

Fixed the Dave Goldthorpe / LibraryAdventurer issue by using \b word matches (their names were showing up as cards)...
my name is made of cards.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #96 on: June 16, 2016, 12:00:59 pm »
0

Fixed the Dave Goldthorpe / LibraryAdventurer 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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #97 on: June 16, 2016, 09:06:21 pm »
0

Fixed the Dave Goldthorpe / LibraryAdventurer 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.
but I like my name to link to the cards

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #98 on: June 16, 2016, 09:10:49 pm »
+2

Now we need a Chrome extension to access f.ds when it is down.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #99 on: July 25, 2016, 01:54:37 am »
0

I posted a kingdom here, 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?
« Last Edit: July 25, 2016, 02:00:13 am by LibraryAdventurer »
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #100 on: July 25, 2016, 12:44:09 pm »
+1

I posted a kingdom here, 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]
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

ThetaSigma12

  • Torturer
  • *****
  • Offline Offline
  • Posts: 1623
  • Shuffle iT Username: ThetaSigma12
  • Respect: +1680
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #101 on: September 25, 2016, 05:00:09 pm »
+1

I'd like if this could be updated ASAP for the new cards!  :)
Logged
If you have a fan card you want to be created, just post about it here! I'd love to take a look at it.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #102 on: September 27, 2016, 09:54:12 am »
+3

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #103 on: September 27, 2016, 10:26:53 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Kirian

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7085
  • Shuffle iT Username: Kirian
  • An Unbalanced Equation
  • Respect: +9334
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #104 on: September 27, 2016, 10:56:35 pm »
+1

Aw man, still wanting this for FF :(
Logged
Kirian's Law of f.DS jokes:  Any sufficiently unexplained joke is indistinguishable from serious conversation.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #105 on: September 27, 2016, 11:28:43 pm »
+1

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.  ;)
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Doom_Shark

  • Explorer
  • *****
  • Offline Offline
  • Posts: 312
  • Shuffle iT Username: Doom_Shark
  • Respect: +252
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #106 on: October 02, 2016, 05:17:16 pm »
0

So will the new cards for the 2nd editions work already, or do you have to wait to be able to implement them?
Logged
"I swear to drunk I'm not officer, God."
Generation 33 The first time you see this, copy it, add 1 to the generation number, and add it to your signature. (On any forum) Social experiment.

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #107 on: October 02, 2016, 05:54:36 pm »
0

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.  ;)

Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

heron

  • Jester
  • *****
  • Offline Offline
  • Posts: 995
  • Shuffle iT Username: heron
  • Respect: +1117
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #108 on: October 02, 2016, 06:40:06 pm »
+1

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
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #109 on: October 03, 2016, 10:47:00 am »
0

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.
« Last Edit: October 03, 2016, 12:08:18 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Seprix

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 5528
  • Shuffle iT Username: Seprix
  • Respect: +3471
    • View Profile
    • The Border Village
Re: Chrome Extension for f.ds!
« Reply #110 on: October 03, 2016, 01:32:57 pm »
+3

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.
Logged
Don't let this one slip, or you could be going to military school.

Join Dominion Discord

Doom_Shark

  • Explorer
  • *****
  • Offline Offline
  • Posts: 312
  • Shuffle iT Username: Doom_Shark
  • Respect: +252
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #111 on: October 03, 2016, 07:46:39 pm »
0

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.
Logged
"I swear to drunk I'm not officer, God."
Generation 33 The first time you see this, copy it, add 1 to the generation number, and add it to your signature. (On any forum) Social experiment.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #112 on: October 28, 2017, 12:37:26 pm »
0

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.
« Last Edit: October 28, 2017, 12:38:39 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #113 on: December 06, 2017, 12:25:07 am »
+1

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.
« Last Edit: December 06, 2017, 12:53:14 am by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #114 on: December 06, 2017, 01:07:18 am »
+3

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).
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #115 on: September 25, 2018, 09:11:11 pm »
0

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 also.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #116 on: September 25, 2018, 09:12:36 pm »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

sudgy

  • Cartographer
  • *****
  • Offline Offline
  • Posts: 3314
  • Shuffle iT Username: sudgy
  • It's pronounced "SOO-jee"
  • Respect: +2548
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #117 on: September 25, 2018, 09:34:36 pm »
+1

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.
Logged
If you're wondering what my avatar is, watch this.

Check out my logic puzzle blog!

   Quote from: sudgy on June 31, 2011, 11:47:46 pm

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #118 on: September 25, 2018, 10:18:35 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #119 on: September 25, 2018, 11:41:33 pm »
+3

Suggestion: Search for "haven't" and disable autolink for Haven.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #120 on: September 26, 2018, 10:23:42 am »
0

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!
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #121 on: September 26, 2018, 08:56:03 pm »
0

Or maybe just don't autolink anything that is not capitalized.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #122 on: September 26, 2018, 09:16:54 pm »
+1

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".
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #123 on: October 03, 2018, 01:02:03 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #124 on: October 03, 2018, 02:47:39 pm »
+1

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.

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10844
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11423
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #125 on: October 03, 2018, 03:18:18 pm »
+4

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.
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #126 on: October 03, 2018, 03:25:05 pm »
+1

Doesn't work with pluralization anyway.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #127 on: October 03, 2018, 03:27:10 pm »
+5

Doesn't work with pluralization anyway.
Rats!
Why not?
« Last Edit: October 03, 2018, 03:30:17 pm by LibraryAdventurer »
Logged

infangthief

  • Young Witch
  • ****
  • Offline Offline
  • Posts: 131
  • Shuffle iT Username: infangthief
  • Respect: +244
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #128 on: October 04, 2018, 05:38:21 am »
0

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.
Logged
infangthief is in the lower 50% of commonly used words in the Collins dictionary

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #129 on: October 04, 2018, 11:54:19 am »
0

Don't know why Card Image didn't work though.

[cardImage]Count[/cardImage]

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

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #130 on: October 04, 2018, 12:14:18 pm »
+1

Don't know why Card Image didn't work though.



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

Thanks for reposting.

Fixed, and new version should autoupdate within the hour.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #131 on: October 04, 2018, 12:16:44 pm »
0

Seems like a good place for me to make sure I know how to use this fancy Chrome Extension.

Butcher


 



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?
« Last Edit: October 04, 2018, 01:49:28 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #132 on: October 04, 2018, 01:38:50 pm »
0

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

Testing2:
« Last Edit: October 04, 2018, 01:50:27 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Chappy7

  • Explorer
  • *****
  • Offline Offline
  • Posts: 329
  • Shuffle iT Username: Chappy7
  • Respect: +402
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #133 on: October 04, 2018, 05:10:26 pm »
+1


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

That would be awesome!
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #134 on: October 18, 2018, 11:41:44 am »
0

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".
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #135 on: October 23, 2018, 05:15:02 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #136 on: October 23, 2018, 10:34:50 pm »
0

Mountain's Gift is the best boon
Logged

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #137 on: October 23, 2018, 10:36:16 pm »
0

Sea's Gift should be +10 cards
Logged

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #138 on: October 23, 2018, 10:37:01 pm »
0

Nothing autolinks  :(
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #139 on: October 23, 2018, 10:54:01 pm »
0

Nothing autolinks  :(

Do you have autolink checked at the top of the thread page?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #140 on: October 24, 2018, 11:39:13 am »
0

Yes...?

Had to uninstall and reinstall, it works now.
Logged

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #141 on: October 24, 2018, 11:40:41 am »
0

Mountain's Gift is the best boon

These still don't autolink
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #142 on: October 24, 2018, 11:46:21 am »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #143 on: October 24, 2018, 11:50:12 am »
+1

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."
« Last Edit: October 24, 2018, 11:51:36 am by vishwathg »
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #144 on: October 24, 2018, 12:03:35 pm »
0

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?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #145 on: October 24, 2018, 12:54:25 pm »
0

Fixed the double-the issue in 1.26.

Can anyone else confirm if the autolink for Boons is working for them?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10844
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11423
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #146 on: October 24, 2018, 01:02:25 pm »
0

The Mountain's Gift

Mountain's Gift
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

Awaclus

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 10844
  • Shuffle iT Username: Awaclus
  • (。 ω 。`)
  • Respect: +11423
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #147 on: October 24, 2018, 01:03:57 pm »
+1

"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.
« Last Edit: October 24, 2018, 01:09:39 pm by Awaclus »
Logged
Bomb, Cannon, and many of the Gunpowder cards can strongly effect gameplay, particularly in a destructive way

The Twitch channel where I stream DominionThe YouTube channel where I make musicDownload my band's albums for free

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #148 on: October 24, 2018, 02:11:51 pm »
0

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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #149 on: October 24, 2018, 02:40:30 pm »
0

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?
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #150 on: October 24, 2018, 03:00:39 pm »
0

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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #151 on: October 24, 2018, 03:48:49 pm »
0

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
« Last Edit: October 24, 2018, 03:52:50 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #152 on: November 01, 2018, 12:41:18 pm »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

vishwathg

  • Salvager
  • ****
  • Offline Offline
  • Posts: 68
  • Respect: +85
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #153 on: November 01, 2018, 01:37:22 pm »
+1

Oh, sorry. Everything works perfectly. Thanks!
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #154 on: November 05, 2018, 04:45:07 pm »
0

Version 1.27 posted. Fixes the Ill-Gotten Gains link, and adds BoM to the shortcuts for autolink.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #155 on: November 05, 2018, 11:41:42 pm »
0

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.

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #156 on: November 06, 2018, 09:24:29 am »
0

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

Asper

  • Governor
  • *****
  • Offline Offline
  • Posts: 4750
  • Respect: +5088
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #157 on: November 06, 2018, 09:38:06 am »
+3

I demand "Pot" to autolink to either the Wikipedia page on cannabis, or a Rickrolling video.

chipperMDW

  • Apprentice
  • *****
  • Offline Offline
  • Posts: 251
  • Respect: +535
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #158 on: November 06, 2018, 09:48:17 am »
0

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.)
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #159 on: November 06, 2018, 09:57:35 am »
+1

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.
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

chipperMDW

  • Apprentice
  • *****
  • Offline Offline
  • Posts: 251
  • Respect: +535
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #160 on: November 06, 2018, 10:24:03 am »
+1

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.
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #161 on: November 06, 2018, 10:28:34 am »
+1

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. . Buying lots of Raids could be a thing.

Non-autolink stuff: Moat, Gold, Capitalism.






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.

Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #162 on: November 06, 2018, 10:39:42 am »
+2

Version 1.28 published. Plurals work now. Also fixed "Haven't" (annoyingly, by specifically looking for that word and excluding it).
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #163 on: November 06, 2018, 07:18:07 pm »
0

I want my name to link to the cards!  That was never a problem for me (can't speak for Goldthorpe).
« Last Edit: November 06, 2018, 07:20:03 pm by LibraryAdventurer »
Logged

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #164 on: November 06, 2018, 07:21:28 pm »
+1

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.
« Last Edit: November 06, 2018, 07:22:37 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

GendoIkari

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 7298
  • Respect: +8120
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #165 on: November 06, 2018, 07:29:03 pm »
0

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.
« Last Edit: November 06, 2018, 07:38:32 pm by GendoIkari »
Logged
Check out my F.DS extension for Chrome! Card links; Dominion icons, and maybe more! http://forum.dominionstrategy.com/index.php?topic=13363.0

Thread for Firefox version:
http://forum.dominionstrategy.com/index.php?topic=16305.0

LibraryAdventurer

  • Saboteur
  • *****
  • Offline Offline
  • Posts: 1160
  • Shuffle iT Username: LibraryAdventurer
  • Respect: +890
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #166 on: November 06, 2018, 07:31:23 pm »
0

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...)

werothegreat

  • Adventurer
  • ******
  • Offline Offline
  • Posts: 8075
  • Shuffle iT Username: werothegreat
  • Prepare to be boarded!
  • Respect: +9400
    • View Profile
Re: Chrome Extension for f.ds!
« Reply #167 on: November 06, 2018, 10:01:54 pm »
+1

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.
Logged
Contrary to popular belief, I do not run the wiki all on my own.  There are plenty of other people who are actively editing.  Go bother them!

Check out this fantasy epic adventure novel I wrote, the Broken Globe!  http://www.amazon.com/Broken-Globe-Tyr-Chronicles-Book-ebook/dp/B00LR1SZAS/

Pages: 1 2 3 ... 7 [All]
 

Page created in 0.245 seconds with 21 queries.