 // @require https://ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js
 //
 // @match *://fireflowergames.com/my-lists/*
-// @match *://flyingbundle.com/users/account
-// @match *://www.flyingbundle.com/users/account
+// @match *://flyingbundle.com/users/account*
+// @match *://www.flyingbundle.com/users/account*
 // @match *://www.gog.com/account*
 // @match *://www.gog.com/order/status/*
 // @match *://groupees.com/purchases*

  .append(label)
  .append(a)

humble_parse = -> { title: x.textContent.trim(), sources: ['humblestore']
  } for x in $('div.row').has(
  # Humble Library has no easy way to list only games
  ' .downloads.windows .download,
    .downloads.linux .download,
    .downloads.mac .download,
    .downloads.android .download'
  ).find('div.title')

# Scrapers are looked up first by domain (lightweight) and then by
# a regex check on the URL (accurate).

      'is_wishlist': true

  'flyingbundle.com':
    'https?://(www\\.)?flyingbundle\\.com/users/account#?':
      'source_id': 'flying_bundle'
      'game_list': -> {
        version: "02",
        data: {
          title: $(x).text(),
          copies: [{
            type: 'Flying Bundle',
            status: 'redeemed',
            owned: 1,
            source: {
              type: "s",
              id: "other"
            }
          }]
        } for x in $(".div_btn_download[href^='/users/sources']"
        ).parents('li').find(':first')
      }
      'insert_button': ->
        li = $("<li></li>"
        ).appendTo('.legenda_points ul')
