Greasy Fork

来自缓存

Greasy Fork is available in English.

Torn War Stuff Enhanced

Show travel status and hospital time and sort by hospital time on war page. Fork of http://greasyfork.icu/en/scripts/448681-torn-war-stuff

这些是此脚本变更过代码的版本。 显示所有版本。

  • v1.12 2026-03-01

    Add cached status support

    That way we can populate the timers before we finish our API call. This is only for the time between script load and API response time.

    Bump version

  • v1.11 2026-01-26

    Bump version

  • v1.10 2026-01-26

    Make status differs sort in a consistent order

    That way there's a lot less jumping of the member list during pushes. Also starts to add support for a travel monitor, though error bars will have to be stored persistently.

  • v1.10 2026-01-21

    Bump version

  • v1.9.2 2026-01-21

    Highlight and sort to top anyone whose status disagrees with api

    This will hopefully highlight people medding out. Also tweak colours to work better in dark and light mode.

    Add a special case for natural hospital release

    They aren't considered status differing and don't deserve to be highlighted.

    Only mark traveling as status differ if they went to Okay

    They've just landed! That's exceptional!

    Use CSS style variables instead of data fields to update content

    Hopefully this doesn't trigger DOM mutations and get picked up by FF Scouter.

  • v1.9.2 2026-01-18

    Rework initial observers to catch more cases

    Make the #faction_war_list_id observer simpler too

    Bump version

  • v1.9.1 2026-01-15

    Move around observers and check for elements so we're more likely to instrument

    The pattern should be

    • set up observer
      • embed initialization code
      • disconnect observer
    • check if element already exists
      • do initialization code
      • disconnect observer

    Bump version

  • v1.9 2026-01-10

    Swap from innerText to textContent

    Remove another querySelector from watch function

    Try using WeakRef for member_lis and status_divs

    To allow the GC to clean them up in between refreshes. Hopefully contributes to reduced memory pressure.

    Only store the status of a member, not the entire response

    Swap back to using setInterval instead of requestAnimationFrame

    Fix bug if no sorted columns exist

    Create much more specific observers to find .faction-war

    Only run update_statuses every 10 seconds instead of running more frequently and checking last run time

    Only sort if something has changed in the sort order

    Readd the last_request check

    Because we also use it for delayed retrying

    Cache description replacements

    Reuse the same array object for each watch execution

    Remove the WeakRef objects, but still clean up elements in member_lis

    Skip watch function if page is not visible

    Bump version

  • v1.8 2026-01-10

    Defer all DOM updates

    So that we only modify the DOM at one time and all reads don't cause reevaluation.

    Use a document fragment when sorting

    So that DOM updates happen once instead of for each row

    Only query member lists when not doing watch function

    Only query status divs when updating member_lis

    Instead of on every watch

    Bump version

  • v1.7.3 2025-12-27

    Only mark a request as successful if the faction lists have finished loading

    Bump version

  • v1.7.2 2025-08-10

    Define faction_ids as a const

    Bump version

  • v1.7.1 2025-07-19 Imported from URL
  • v1.7.0 2025-07-18 Imported from URL
  • v1.7.0 2025-07-18 Imported from URL
  • v1.6.2 2025-07-18 Imported from URL
  • v1.6.1 2025-07-17 Imported from URL
  • v1.5.1 2025-05-25 Imported from URL
  • v1.5 2025-04-14 Imported from URL
  • v1.4.5 2025-04-13 Imported from URL
  • v1.4.5 2025-04-12 Imported from URL
  • v1.4.4 2025-04-07 Imported from URL
  • v1.4.3 2025-04-06 Imported from URL
  • v1.4.2 2025-04-06 Imported from URL
  • v1.4.1 2025-03-30 Imported from URL
  • v1.3.1 2025-03-28 Imported from URL
  • v1.3 2025-03-28 Imported from URL
  • v1.2 2025-03-23 Imported from URL
  • v1.1.2 2025-03-22 Imported from URL
  • v1.1.1 2025-03-16 Imported from URL
  • v1.1 2025-03-15 Imported from URL
  • v1.0.1 2025-03-14 Imported from URL
  • v1.0 2025-03-14 Imported from URL
  • v0.8.1 2025-03-10 Imported from URL
  • v0.8 2025-03-09 Imported from URL
  • v0.7.1 2025-03-09 Imported from URL
  • v0.7 2025-03-08 Imported from URL
  • v0.6a 2025-03-08 Imported from URL