Page 1 of 45

NationStates++ | Extension for NationStates

PostPosted: Mon May 27, 2013 2:00 pm
by Afforess
NationStates++ (often shortened to 'NS++') is a tiny, light-weight, and open-source browser extension for NationStates. Focused on an easy-user experience, it is designed to simplify the NationStates game, provide players with more data and information to make educated decisions, and provide more powerful tools to interact with other players.

ImageImageImageImage
(Chrome Install)(Firefox Install)(Opera Install)(Safari Install)

Image
(Report Bugs)


Image
(Suggest Features)


Image
(Open Source)


What Is A Browser Extension?
Browser extensions are tiny programs or apps designed to "extend" and add onto the existing features of your internet browser. All modern browsers support browser extensions, including Safari, Chrome, Firefox, and Opera.

Why No Internet Explorer Support?
Internet Explorer is not an open web browser and frequently does not support official web standards. In addition, it does not support browser extensions, and it frequently a target for malware and viruses. I suggest all Internet Explorer users upgrade to a free, modern browser, listed above.

How Do I Know This Is Safe?
You don't. While NationStates++ is an open-source browser extension, and so any developer with Javascript experience can inspect the code, that is not a guarantee of safety. Browser extensions do have an additional layer of safety, as the browser prevents addons or extensions from installing malware or harmful viruses. This layer security does not protect you from extensions that steal personal information or login information. Every program you install carries risk and relies on a certain level of trust. If you have specific concerns about safety or user security, you can telegram me or email me at Afforess [at] gmail.com for additional information.

Additional Security Notes
The Nation Puppet Switcher only stores nations & password information locally in your browser local storage. This information is never transmitted anywhere, and never leaves your computer. In addition, I do not collect or monitor sensitive personal information, not limited to but including, IP Addresses, personal names, or other identifying information.

Features
  • World Assembly Details in Nation Pages
  • Nation Challenge Link on Nation Pages
  • Regional Newspapers
  • Gameplay News
  • Roleplay News
  • Puppet Nation Switcher
  • Scrolling Embassy Flags next to region World Factbook Entry
  • Regional Message Board Searching
  • Ignore Regional Message Board Posts
  • Infinite Scroll/Pagination for Regional Message Board
  • Real Time Panel Alerts & RMB Post Updates
  • Reply-To-All in Multi-Nation telegrams
  • Block Sender on Telegrams
  • Linkify Telegram & RMB Post URLs
  • Hidden NS Advertisements
  • Scrolling World Census Lists
  • Fancy Dossier
  • Regional Reporting
  • Forum Post Ids
  • Forum Ego-Search customization
  • Embedded Regional IRC Pages
  • Puppet Nation Import/Export
  • Remember Past Issue Choices
  • Infinite Nation Happenings
  • Infinite Region Happenings

Features Coming Soon
  • Infinite Telegram Folders
  • Alerts for Gameside Actions
  • Newspaper Improvements

Version History:
Version 2.1.0
  • NS++ Users see a special trophy on theirs and other NS++ user pages
  • New settings option for "Auto-unsuppress RMB"
  • Fix egosearch & sidebar bugs with Firefox
  • Early work on NationStatesPlusPlus.com
Version 2.0.9
  • Brand new settings & user-data backend and syncing
  • Option to disable floating sidepanel
Version 2.0.8
  • Fix low-res flags for some nations on the sidebar
Version 2.0.7
  • Sidepanel area floats on left
  • Internal reorganization, reduced latency when loading
  • Disabled Firebase - Settings will not sync (Temporary)
  • Infinite Region Happenings
  • Minor improvements
Version 2.0.2
  • Add region update times
Version 2.0.0
  • Gameplay Newspaper
  • Roleplay Newspaper
  • Overhauled Settings Menu
  • Ability to Import/Export puppets
  • Regional Newspapers (Founders/Delegates can turn this on in their regional controls)
  • Antiquity/Century Theme warn users that NS++ does not support them
  • Tons of bug fixes
Version 1.91
  • Clickable Formatting Buttons for RMB
  • Various bug fixes
  • Region flags show up in census listing
Version 1.9
  • Infinite National Happenings
  • Can assign aliases to nations via Dossier
  • Redesigned Reports Page
  • Can view happenings on regions in your dossier via Reports Page
  • Fix rare bug with some RMB posts not loading correctly
  • Fixed unicode encoding with RMB post submission
  • Assorted bug fixes
Version 1.86
  • Added progress bar for telegram searches
  • Redesigned Dossier Page
  • Assorted bug fixes
Version 1.854
  • Added 'Reply to All' button for telegrams with multiple recipients
Version 1.853
  • Added telegram searching
Version 1.85
  • Fixed bugs syncing settings causing failed security checks
  • Added IRC widget for regions with official IRC channels
  • Regional Happenings now auto-update
  • Nation Challenge links appear in nation profiles
  • Stability fixes and reduced bandwidth usage
Version 1.82
  • Fixed bugs with telegrams & dark theme
  • Fixed bugs with NS++ settings pages and dark theme
  • Added option in NS++ settings to disable Puppet Switching
  • Minor css fixes
Version 1.8
  • Fixed GA/WA proposal tables appearing squished
  • Fixed Settings not working when forum sidebar is disabled
  • Settings/Issue choices sync across browsers & computers
  • Easy puppet-switcher added
Version 1.71
  • Fixed issue where header advertisement covered settings button in antiquity theme
  • Option to Hide Ads
Version 1.7
  • Settings Page for All features
  • Clickable Telegram Links
  • Search RMB by Author or Region
  • Factbooks Happenings have clickable urls (when you publish/update a factbook)
  • Getting Help Requests are saved and viewable
  • Issue responses are saved and shown when the issue is repeated
  • When scrolling census table in your home region, your name is kept at the bottom (for comparison)
  • Minor performance improvements
Version 1.661 (CHROME ONLY)
  • Fix issue where switching pages extremely rapidly causes the extension not to work until you refresh the page again
Version 1.66
  • BUGFIX: Do not show RMB controls in regional administration pages
  • IMPROVEMENT: All lists of pages in World/WA/Regional rankings now use page sliders
  • IMPROVEMENT: Move page sliders 1 page at a time by clicking on them, then using left/right arrow keys
  • FEATURE: Show Soft Power Distribution Rating next to Influence Ranking in nation pages
Version 1.63
  • BUGFIX: Slider nation list for each region renders and operates correctly
  • BUGFIX: Fixed infinite scrolling for Antiquity Theme
  • BUGFIX: Fixed quoting messages for Antiquity Theme
  • BUGFIX: Fixed searching for special characters (like '#')
  • IMPROVEMENT: Better performance with embassy flag scrolling
Version 1.6
  • Scrolling Embassy flags next to the World Factbook Entry of each region
  • Ignore any posts in the Regional Message Board that you don't want to see
  • Hide thread topics in the "view your posts" forum area
  • Shows post number on all nationstates.net forum posts
  • BUGFIX: When posting to the RMB fails, receive a message box notifying you
  • BUGFIX: When posting to the RMB fails, do not delete the message draft
Version 1.5
  • Posting on the RMB occurs instantly, without any redirects or any refreshing
  • Improved Search Feature: Search through the RMB post history of any region!
  • Slide and scroll through World Census Reportings - no more refreshing for each page!
Version 1.4
  • Search Feature: Search through the RMB post history of any region!
  • New posts on the Regional Message Board appear instantly - no more refreshing!
  • New telegrams update your telegram indicator next to your nation name - no more refreshing!
  • Urls in RMB posts are turned into clickable links, no more copy and paste!
Version 1.3
  • Ported Addon to Firefox!
Version 1.0
  • Infinite Scroll for the Regional Message Board.
  • Quote button next to Regional Message Board posts, for easy replies

PostPosted: Mon May 27, 2013 2:03 pm
by Arkolon
Not an artist, and I don't use Chrome, but in any case +10,000,000,000 from me. Well done. :clap: :lol:

PostPosted: Mon May 27, 2013 2:05 pm
by Maltropia
Very nice. I'm adapted to the current format by now, but might well consider switching to it in the future.

Bookmarking this thread either way for future reference. ;)

PostPosted: Mon May 27, 2013 2:05 pm
by TaQud
Yes! Now I can see deleted posts in the RMB! :twisted: Well done

PostPosted: Mon May 27, 2013 2:05 pm
by Arcturus Novus
Sweet :D how well does it work so far?

PostPosted: Mon May 27, 2013 2:06 pm
by Benomia
To these things only apply to the RMBs?

PostPosted: Mon May 27, 2013 2:07 pm
by TaQud
Afforess wrote: I would be happy to gift you the postmaster-general upgrade.

what if you already have it?

PostPosted: Mon May 27, 2013 2:10 pm
by Afforess
Benomia wrote:To these things only apply to the RMBs?

Correct. Don't take my word for it, see the code: https://github.com/Afforess/NationState ... t.json#L10

It only has permission to execute on pages with "http://www.nationstates.net/region=*"

I realize users might be worried about me stealing telegrams, etc. I kept the code open source to ensure that that sort of behavior is obviously not happening.

PostPosted: Mon May 27, 2013 2:13 pm
by Benomia
I would be very interested in something that allows you to see deleted forum posts, but great work nevertheless.

PostPosted: Mon May 27, 2013 2:14 pm
by Afforess
Benomia wrote:I would be very interested in something that allows you to see deleted forum posts, but great work nevertheless.

There only reason viewing deleted RMB posts works is because NationStates lets us (I think it's a hidden moderator feature), but the forums don't have that feature, so it's not possible.

PostPosted: Mon May 27, 2013 2:17 pm
by Benomia
Shit.

PostPosted: Mon May 27, 2013 2:19 pm
by Frisbeeteria
Afforess wrote:There only reason viewing deleted RMB posts works is because NationStates lets us (I think it's a hidden moderator feature)

Mods can view all suppressed posts, but it's supposed to be only us. I know there's a URL workaround, but that's a bug that ought to be closed. Don't be surprised if it suddenly stops working.

PostPosted: Mon May 27, 2013 2:41 pm
by Afforess
Frisbeeteria wrote:
Afforess wrote:There only reason viewing deleted RMB posts works is because NationStates lets us (I think it's a hidden moderator feature)

Mods can view all suppressed posts, but it's supposed to be only us. I know there's a URL workaround, but that's a bug that ought to be closed. Don't be surprised if it suddenly stops working.

Half of the reason I wrote this was to provide more "attention" to that feature. I'm sure plenty of nations are surprised to discover self-deleted posts are available to the public.

PostPosted: Mon May 27, 2013 2:46 pm
by Severisen
Afforess wrote:-snip-
Half of the reason I wrote this was to provide more "attention" to that feature. I'm sure plenty of nations are surprised to discover self-deleted posts are available to the public.


So that the loophole would be closed? :lol:

Anyway, nice work.

PostPosted: Mon May 27, 2013 3:38 pm
by Tlik
Notes/complaints/etc: (I only do this because what you've made is so awesome)

- Infinite scroll only seems to work for me when I'm in 100+% zoom. I like to spend my life peering short-sightedly at 90% zoom for most sites, so this causes an issue. I can work around it, but pretty please?

- Quoting a post should leave a single newline below the quote, and have the cursor placed there ready to type. Especially if I've infinite-scrolled down the page, clicking on the link doesn't actually appear to do anything - it's only when I go back up to the top that I realise I've got fifteen quotes from the same person because I clicked the link too many times.

- (screenshot) The placement of the "quote" link is slightly too low on my computer, and it looks slightly odd. Having said that, it looks horrible when mixed with a suppressed post. Does a suppressed post really need to have the quote link? I'm not really going to quote it until I've read it, maybe upon unsuppressing might be a better time to insert the link.

- Move the "switch to forum view" button to the top. I don't know if anyone would use it with NS++, but if they did it's currently impossible to get at because infinite scroll kicks in before you can get to it.

- Speaking of forum view, it would be nice if you could add quote and unsuppression links there as well. Again, I don't know if they'd be used, but it's a completeness thing, right?

I feel somewhat harsh, the fact remains that my knowledge of javascript essentially extends to knowing that it's the thing that makes websites do stuff and so I can scarcely criticise you for something I could never have done. Indeed, as it stands this is a fantastic extension that I will certainly be using, so thank you very much.

PostPosted: Mon May 27, 2013 4:29 pm
by Afforess
Tlik wrote:Notes/complaints/etc: (I only do this because what you've made is so awesome)


No, your post is the most useful in this thread. Don't feel bad!
Tlik wrote:- Infinite scroll only seems to work for me when I'm in 100+% zoom. I like to spend my life peering short-sightedly at 90% zoom for most sites, so this causes an issue. I can work around it, but pretty please?


Yep, should be fixed.

Tlik wrote:- Quoting a post should leave a single newline below the quote, and have the cursor placed there ready to type. Especially if I've infinite-scrolled down the page, clicking on the link doesn't actually appear to do anything - it's only when I go back up to the top that I realise I've got fifteen quotes from the same person because I clicked the link too many times.


Alright, I updated it to scroll up to the post form.

Tlik wrote:- (screenshot) The placement of the "quote" link is slightly too low on my computer, and it looks slightly odd. Having said that, it looks horrible when mixed with a suppressed post. Does a suppressed post really need to have the quote link? I'm not really going to quote it until I've read it, maybe upon unsuppressing might be a better time to insert the link.


I agree. I've made that change, "Quote" no longer shows for suppressed posts.

Tlik wrote:- Move the "switch to forum view" button to the top. I don't know if anyone would use it with NS++, but if they did it's currently impossible to get at because infinite scroll kicks in before you can get to it.


Alright done.

Tlik wrote:- Speaking of forum view, it would be nice if you could add quote and unsuppression links there as well. Again, I don't know if they'd be used, but it's a completeness thing, right?


I was actually inspired to add infinite scroll when I discovered the forum view (never noticed it until a few days ago). I want to add these features to it eventually, but it's different enough that it means another evening or two of work to do. Maybe next weekend? :)

Tlik wrote:I feel somewhat harsh, the fact remains that my knowledge of javascript essentially extends to knowing that it's the thing that makes websites do stuff and so I can scarcely criticise you for something I could never have done. Indeed, as it stands this is a fantastic extension that I will certainly be using, so thank you very much.


No, thank you for taking the time to test it out. My changes should appear automatically for you, there is no update process :)

PostPosted: Mon May 27, 2013 4:49 pm
by Tlik
Afforess wrote:
Tlik wrote:- Move the "switch to forum view" button to the top. I don't know if anyone would use it with NS++, but if they did it's currently impossible to get at because infinite scroll kicks in before you can get to it.


Alright done.

Not really. I think you've hardcoded Capitalist Paradise's link into the javascript file, at least that's what the GitHub files show. But otherwise, that's brilliant.

Tlik wrote:I feel somewhat harsh, the fact remains that my knowledge of javascript essentially extends to knowing that it's the thing that makes websites do stuff and so I can scarcely criticise you for something I could never have done. Indeed, as it stands this is a fantastic extension that I will certainly be using, so thank you very much.


No, thank you for taking the time to test it out. My changes should appear automatically for you, there is no update process :)

Everything else works perfectly, thank you so very much for this.

PostPosted: Mon May 27, 2013 5:10 pm
by Afforess
Tlik wrote:
Afforess wrote:
Alright done.

Not really. I think you've hardcoded Capitalist Paradise's link into the javascript file, at least that's what the GitHub files show. But otherwise, that's brilliant.


Ha! That'll teach me to test. Should be corrected.

PostPosted: Tue May 28, 2013 2:15 pm
by Singpu
That's me in the picture :D

PostPosted: Tue May 28, 2013 7:06 pm
by Afforess
FireFox users rejoice, I have ported the addon to FireFox as well!

PostPosted: Tue May 28, 2013 7:15 pm
by Singpu
Finally I can get it for my main browser as well.

PostPosted: Tue May 28, 2013 9:58 pm
by Afforess
New Feature:
  • New RMB posts appear in your page automatically. No more refreshing!

PostPosted: Wed May 29, 2013 8:54 am
by The Republic of Lanos
Unable to find the extension on Firefox using your link.

PostPosted: Wed May 29, 2013 9:01 am
by Afforess
The Republic of Lanos wrote:Unable to find the extension on Firefox using your link.

It got taken down from the Firefox store. Apparently they are much more strict than the Chrome web store, I will make needed changes later today and attempt to get it back. Until then, I replaced it with a temporary direct link.

PostPosted: Wed May 29, 2013 2:51 pm
by Singpu
What did they take it down for? Lemme guess, being a port?