Skip to content
TORNLIFE More

[script] War Base Filters

Started by tos [1976582] on in Tutorials & Guides.

51 replies · 1.73k views · thread synced · 4 days ago · View on torn.com
About this thread

Posts archived: 52 / 52 posts (100%) · the total is Torn's reply count + the opening post at the last fetch

Counted by TornLife from the archived posts.

Archived posts
52
Discussion span
→
Authority score
55 / 100
Historical score
33 / 100
Story score
42 / 100
Engagement score
73 / 100

People posting, likes and official posts are not counted for this thread yet: on threads longer than one page they come from a periodic pass over the archive, which has not covered it.

Most-liked replies

tos [1976582]

[image: i.imgur.com]

Torn no longer loads faction data when you navigate to your war base. It is instead loaded when you click on each faction's tab. This means that rather than refresh the page to reload faction data in your war base you will need to click on each tab to refresh that faction. Looking on the bright side this means you can now refresh factions by simply reopening their tab rather than reloading the whole page.

On click the faction name will turn purple as if a visited link, this fades over 5 minutes back to blue and the totals info in the filter container is updated. Should you want to adjust the fade out time or disable animations altogether this can be done in lines 11& 12 of the code.

Color blind mode keeps the old animations for those that need it [:wink:]

[image: i.imgur.com]

Link: https://greasyfork.org/en/scripts/30922-warbase-filters
TheoZ [1161882]

did you mention that whoever installs it we as 39th family get immunity from launching wars against us? :P



well done tos! :)
tos [1976582]

Heh I wish. Afraid that would be illegal... unless admin wants to come here and say explicitly that it would be okay.
tos [1976582]

I'm not sure if/why it was ever scrapped, there have still been working copies floating around up until very recently. Somewhere around the start of this month (or was it last?) there was a change in the way data is loaded on the faction pages.

Before all of the data for enemy factions came at once on page load. That means that while it may have been hidden from view you got the info of every player in the warbase at page load, which is why the full count was possible before. Now when you click to expand a faction's tab it sends a request to Torn and Torn responds with the info for only that faction. That is what broke the count and the old script altogether.
tos [1976582]

Apparently have a few problems with Firefox/GreaseMonkey. Should work fine on Chrome/Tampermonkey. Working on fix.
Neopolitan [276835]

It is working fine on chrome, but settings changes you make are only applied when you refresh the page entirely, Turns out that instead you can just close and re-open the faction in question to update, which is less than optimal. Otherwise, great work you're doing, just get Mauk and others to help you pretty it up.



+sub +rate +install
tos [1976582]

Update to make filters live and give an option for an extended war base. Hope I didn't break it ;p