NATION

PASSWORD

LibreNS++ 0.1.2 | Secure NationStates++ Alternative

Bug reports, general help, ideas for improvements, and questions about how things are meant to work.

Advertisement

Remove ads

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sat Jul 12, 2014 6:06 am

the Imperial Crown wrote:
South Jarvis wrote:Tada! Version 0.0a4!

Now with puppet switching! (Don't blame me if your data gets stolen; maybe test with a less important puppet!)
Criticism and advice welcome!


That is traditionally, not a wise comment to make. People should never install any extension to their browsers if they aren't 100% sure that it does not facilitate data loss.

I don't foresee any possibility for data loss, however as with any in-development product, I can't guarantee that some overzealous hacker might find a way into the password database of some early adopter. I'll keep the message as a warning until I thoroughly review Greasemonkey and Tampermonkey's handling of data storage (which shouldn't be too long).

User avatar
A Colour Out of Space
Lobbyist
 
Posts: 12
Founded: Dec 26, 2013
Ex-Nation

Postby A Colour Out of Space » Sat Jul 12, 2014 10:04 am

Hi, Afforess speaking.

I love that new open source projects are being spun up. That is why open source is so great. My code is licensed MIT, so that means you can do whatever with it, as long as you: give me credit for the bits I wrote, and don't sue me if it blows up your computer.

That is all, good luck and carry on!
Last edited by A Colour Out of Space on Sat Jul 12, 2014 10:04 am, edited 1 time in total.

User avatar
The Leningrad Union
Chargé d'Affaires
 
Posts: 471
Founded: Apr 23, 2014
Ex-Nation

Postby The Leningrad Union » Sat Jul 12, 2014 10:58 am

You should have a way to transfer NS++ puppet data over to the new extension.

Anyways, I'm not going to install this because I'm a loyal NS++ user and I'll only switch over in the event that NS++ stops being developed.
I founded Madrigal and Confederacy of Allied States. However, I have given up my power in both. I reside in Iraq currently. Come join me!

Parody of typical NSG sig:

NSG's resident Liberal Gay Atheist because there's totally no other liberals, gays or atheists here!
Impeach GP, Legalize RP, NSG 2016!
Mallorea and Riva should resign
*Insert some uneducated statement about how I support a stupid ideology that I heard about in my middle school social studies class*
*Insert some typical liberal and/or edgy statement about Gaza and/or Ukraine*

some popular TETer wrote:Leningrad iz kewl

some dude that agreed with me on a debate wrote:Just listen to Leningrad!

User avatar
Hobbesistan
Minister
 
Posts: 2448
Founded: Jul 01, 2013
Ex-Nation

Postby Hobbesistan » Sat Jul 12, 2014 12:39 pm

South Jarvis wrote:
Glen-Rhodes wrote:I'm not sure you've really studied all of what NS++ does, if you're planning on writing a clone that doesn't call back to a third-party server. :\

There are far too many features for me to comprehensively analyse, but I believe that most of the (what I consider) important features of NS++ should be able to be implemented without using a third-party server. For example, NS++ implemented regional newspapers using third-party servers, while I intend to implement them using NationStates dispatches.


-Newspaper requires third party server
-Recruitment either requires third party server or a pesky on-computer app that requires you run it 24/7 to work.
-Regional Map/Designation/Ect/News require third party server

NS++ avoids being a huge addon in that a lot of it just calls for and pulls webpages from the server; you'll need to substitute this into the addon itself.


just whats off my head.
Last edited by Hobbesistan on Sat Jul 12, 2014 12:39 pm, edited 1 time in total.
Hobbes
ra, ra rasputin

(Ret.) Maintainer of the Nationstates FAQ and Deletiger (Ret.) of The East Pacific
russia's greatest

Hobbes is always winning, like Charlie Sheen. - Jurisdictions
love machine

Stop right there (hobbes), your rational thought and intellect will destroy the internet. - Sovreignry
it was a shame how

Giraffes think Hobbes regret a lot. A lot of giraffes do. - Rachel
he carried on.

User avatar
Ratateague
Ambassador
 
Posts: 1584
Founded: Dec 25, 2010
Liberal Democratic Socialists

Postby Ratateague » Sat Jul 12, 2014 2:07 pm

I've got some feedback if you're interested. It doesn't seem to be dark-theme compatible. When I posted a message on the rmb and tried to look at it, it did this strange transition where everything turned to grey for a couple seconds, and then finally white on white with some dark boxes scattered.
don't recreate what I did if you value your vision
http://i.imgur.com/POV9zL7.png
Last edited by Ratateague on Sat Jul 12, 2014 2:08 pm, edited 1 time in total.
Society prepares the crime, the criminal commits it. -Henry Thomas Buckle
When money speaks, the truth is silent. -Russian Proverb
'|

User avatar
Hobbesistan
Minister
 
Posts: 2448
Founded: Jul 01, 2013
Ex-Nation

Postby Hobbesistan » Sat Jul 12, 2014 4:36 pm

South Jarvis wrote:
the Imperial Crown wrote:
That is traditionally, not a wise comment to make. People should never install any extension to their browsers if they aren't 100% sure that it does not facilitate data loss.

I don't foresee any possibility for data loss, however as with any in-development product, I can't guarantee that some overzealous hacker might find a way into the password database of some early adopter. I'll keep the message as a warning until I thoroughly review Greasemonkey and Tampermonkey's handling of data storage (which shouldn't be too long).


Don't make comments on something if you aren't educated on it.

If a hacker can get into your computer, your local files, and access your puppet passwords, loosing your NS accounts should be the least of your concern.

Example:
Code: Select all
localStorage.getItem("last_puppet_email");


Your passwords and ect are stored on your local machine, not some external server, and, as a result, are as secure as your machine is.

edit: this is entirely presumptous on the assumption that you are using NS++'s puppet script, but either way Greasemonkey should use localStorage, too.
Last edited by Hobbesistan on Sat Jul 12, 2014 4:59 pm, edited 3 times in total.
Hobbes
ra, ra rasputin

(Ret.) Maintainer of the Nationstates FAQ and Deletiger (Ret.) of The East Pacific
russia's greatest

Hobbes is always winning, like Charlie Sheen. - Jurisdictions
love machine

Stop right there (hobbes), your rational thought and intellect will destroy the internet. - Sovreignry
it was a shame how

Giraffes think Hobbes regret a lot. A lot of giraffes do. - Rachel
he carried on.

User avatar
SquareDisc City
Senator
 
Posts: 3587
Founded: Jul 02, 2004
Inoffensive Centrist Democracy

Postby SquareDisc City » Sat Jul 12, 2014 5:07 pm

The best of luck to both these projects. Being mainly forum-side myself I've not felt much need for more than the stock site gives, but each to their own.
FT: The Confederation of the United Pokemon Types, led by Regent Mew.
Nuclear pulse propulsion is best propulsion.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sat Jul 12, 2014 5:18 pm

Ratateague wrote:I've got some feedback if you're interested. It doesn't seem to be dark-theme compatible. When I posted a message on the rmb and tried to look at it, it did this strange transition where everything turned to grey for a couple seconds, and then finally white on white with some dark boxes scattered.
don't recreate what I did if you value your vision
http://i.imgur.com/POV9zL7.png

That's… interesting. I don't use any themes other than the normal one personally, but I'll have to take a look at that.

Unfortunately, that means I have to recreate it… Wish me luck!

UPDATE: Issue has been fixed in 0.0a5.
Last edited by South Jarvis on Sat Jul 12, 2014 10:23 pm, edited 1 time in total.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sat Jul 12, 2014 11:18 pm

Unstable 0.0a6
Changes in this version
  • Added custom titles for regional founders and delegates

Instructions
(A user-friendly configuration interface is in the works, but not yet available.)
While the original NationStates++ used a database on the nationstatesplusplus.net website, LibreNS++ uses regional dispatches to store information. When on a region (RMB/WFE) page, LibreNS++ looks through the pinned regional dispatches. (The dispatch can be placed below the third dispatch to make it not visible by default) If the name of a dispatch is ‘LibreNS++’, it will open the dispatch and parse the second paragraph of content as Base64-encoded JSON data. Example JSON data is:
Code: Select all
{
  "titles": {
    "founder": "Overseer",
    "delegate" :"President"
  }
}

The content of the dispatch would thus be:
Code: Select all
This paragraph is ignored. Following empty line is required to start a new paragraph.

ew0KICAidGl0bGVzIjogew0KICAgICJmb3VuZGVyIjogIk92ZXJzZWVyIiwNCiAgICAiZGVsZWdhdGUiIDoiUHJlc2lkZW50Ig0KICB9DQp9

For a working example, see the LibreNSpp Test Region.
Last edited by South Jarvis on Sun Jul 13, 2014 5:04 pm, edited 2 times in total.

User avatar
A Colour Out of Space
Lobbyist
 
Posts: 12
Founded: Dec 26, 2013
Ex-Nation

Postby A Colour Out of Space » Sun Jul 13, 2014 3:53 pm

I have to say, the idea of using dispatches to store data is ingenious. I like it. The possibility of a totally decentralized extension has significant appeal.

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Sun Jul 13, 2014 3:57 pm

Why are you base64 encoding it, rather than just putting the raw json there?
The Blaatschapen should resign

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sun Jul 13, 2014 4:27 pm

The Blaatschapen wrote:Why are you base64 encoding it, rather than just putting the raw json there?

In case the stored data contains content that might be interpreted as BBCode, or other funky data that would be more difficult to put as text into a dispatch.
Last edited by South Jarvis on Sun Jul 13, 2014 4:33 pm, edited 1 time in total.

User avatar
The Blaatschapen
Technical Moderator
 
Posts: 63226
Founded: Antiquity
Anarchy

Postby The Blaatschapen » Sun Jul 13, 2014 4:30 pm

South Jarvis wrote:
The Blaatschapen wrote:Why are you base64 encoding it, rather than just putting the raw json there?

In case the stored data contains content that might be interpreted as BBCode.


Ah, gotcha :)
The Blaatschapen should resign

User avatar
Planeia
Ambassador
 
Posts: 1873
Founded: Jan 06, 2013
Ex-Nation

Postby Planeia » Sun Jul 13, 2014 4:34 pm

Does it tell you when you get telegrams, like NS++ does?
Paradise has Fallen

User avatar
New Mushroom Kingdom
Minister
 
Posts: 3454
Founded: Jul 16, 2010
Father Knows Best State

Postby New Mushroom Kingdom » Sun Jul 13, 2014 4:39 pm

I'm not a an of this method. It looks spammy and unlike NS++, does not appear invisible to non-users. To them this is a wasted dispatch covering space. It also could be a form of unblockable advert.
Last edited by New Mushroom Kingdom on Sun Jul 13, 2014 4:42 pm, edited 1 time in total.
NationStates Belongs to All, Gameplay, Roleplay, and Nonplay Alike
Every NationStates Community Member, from Raider Kings to Brony Queens Make Us Awesome.

Embassy Request Thread NS section of my wiki-thing Questions?
DEFCON 5. Never forget Z-Day. 1/4/13. 'Corporate Police State' fits just as well as the actual WA category.
There are no magic mushrooms in this nation. Seriously.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sun Jul 13, 2014 4:45 pm

New Mushroom Kingdom wrote:I'm not a an of this method. It looks spammy and unlike NS++, does not appear invisible to non-users. To them this is a wasted dispatch covering space. It also could be a form of unblockable advert.

This is unfortunately true, though I will be sticking with it (unless I can find another way to easily store region-based information in a decentralized manner). I'll see if I can make it look for the relevant dispatch in any slot, so it can be placed below the third pinned dispatch and thus not visible by default.

EDIT: Done! See LibreNSpp Test Region for how it looks.
Last edited by South Jarvis on Sun Jul 13, 2014 5:03 pm, edited 1 time in total.

User avatar
A Colour Out of Space
Lobbyist
 
Posts: 12
Founded: Dec 26, 2013
Ex-Nation

Postby A Colour Out of Space » Sun Jul 13, 2014 5:53 pm

Another idea, if a bit more cumbersome, would be to check the founder & delegate nation's list of dispatches instead of pinned dispatches. It would require a few more ajax calls to the site, but it would avoid the pinning requirement.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Version 0.0a9

Postby South Jarvis » Sun Jul 13, 2014 7:08 pm

Tada! A user-friend editor for regional settings!

Instructions
  1. Create a Dispatch and title it ‘LibreNS++’. The content of the dispatch is irrelevant.
  2. On the Dispatch page, go to the bottom right corner and click ‘Edit → as Regional Settings’. You should be presented with a slightly modified editor interface, with fields for ‘Founder Title’, ‘Delegate Title’ and so on.
  3. Edit these fields. The ‘Text’ field should automatically update as you type.
  4. Save the Dispatch.
  5. Pin the Dispatch to your region.
  6. Done!
Last edited by South Jarvis on Wed Jul 16, 2014 11:20 pm, edited 1 time in total.

User avatar
New Mushroom Kingdom
Minister
 
Posts: 3454
Founded: Jul 16, 2010
Father Knows Best State

Postby New Mushroom Kingdom » Sun Jul 13, 2014 8:45 pm

NationStates Belongs to All, Gameplay, Roleplay, and Nonplay Alike
Every NationStates Community Member, from Raider Kings to Brony Queens Make Us Awesome.

Embassy Request Thread NS section of my wiki-thing Questions?
DEFCON 5. Never forget Z-Day. 1/4/13. 'Corporate Police State' fits just as well as the actual WA category.
There are no magic mushrooms in this nation. Seriously.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Sun Jul 13, 2014 10:38 pm

New Mushroom Kingdom wrote:You seem to lack confidence.

I do indeed seem to lack confidence. A more obvious example might be the large block of ‘ABSOLUTELY NO WARRANTY’ text at the bottom of the post.

After looking through my code, and looking into Greasemonkey and Tampermonkey's implementations of local storage, however, I am confident in my implementation and as such have downgraded my ‘there could be serious security issues’ stance that was in place at the time of that comment, to a standard, more moderate ‘be wary around alpha software’ recommendation, and have edited my form post accordingly.
Last edited by South Jarvis on Sun Jul 13, 2014 10:39 pm, edited 1 time in total.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Version 0.0a10

Postby South Jarvis » Tue Jul 15, 2014 1:15 am

Tada! Regional IRC!
Image
Configured using the regional dispatches method.

User avatar
Elessar Telcontar
Political Columnist
 
Posts: 5
Founded: Jul 26, 2013
Ex-Nation

Postby Elessar Telcontar » Tue Jul 15, 2014 10:46 am

Will recruitment be available through this alternative??

User avatar
North Jarvis
Civilian
 
Posts: 1
Founded: Jun 18, 2014
Ex-Nation

Postby North Jarvis » Tue Jul 15, 2014 5:03 pm

Elessar Telcontar wrote:Will recruitment be available through this alternative??

I certainly would like to implement recruitment, however there are some other features I'd like to implement before that.

User avatar
Islamic Mujahideen
Attaché
 
Posts: 92
Founded: Jul 15, 2014
Ex-Nation

Postby Islamic Mujahideen » Tue Jul 15, 2014 10:46 pm

I got tapermonkey + the link for github but i have no idea how to enable it.
Please help.
F*cking. Epic.
Nation has changed. We are now a "secular democracy" which are blatant lies. I am not a fundamentalist/jihadist any more. I am a Usooli Twelver Shi'ite and Sistani is my Marja.
Yes, I am a real-life Afghan, no I am not a Taliban member.

User avatar
South Jarvis
Bureaucrat
 
Posts: 53
Founded: Oct 15, 2013
Ex-Nation

Postby South Jarvis » Tue Jul 15, 2014 11:28 pm

Islamic Mujahideen wrote:I got tapermonkey + the link for github but i have no idea how to enable it.
Please help.

First, make sure you've got ‘Tampermonkey’. I wouldn't trust installing a ‘Tapermonkey’ in my browser. ;​)

You should just be able to (once you've installed Tampermonkey) browse to the GitHub link. Tampermonkey should ask you if you want to install the userscript.

PreviousNext

Advertisement

Remove ads

Return to Technical

Who is online

Users browsing this forum: Eremocyma, Fleetariland, Great Joy, Grishahakkaverchynot, Iujhj, New Verodania, Prion-Cirus Imperium, Rusolveq, Sao-Paulo, Sarzonia, Seskeisau, The French National Workers State

Advertisement

Remove ads