dithpri / rces Goto Github PK
View Code? Open in Web Editor NEWNationStates (user)scripts. Mainly for cards.
License: MIT License
NationStates (user)scripts. Mainly for cards.
License: MIT License
Main nations are added to S3 puppet cards but remain hidden/invisible due to default NS CSS
show_market=decks
asHtmlDataSetKey
doesn't convert apostrophes/other invalid chars: script errors out on "nation
's bids" page
nation
's bids/asks/etc." columns as a special casedefault_flag
/game_flag
boolean for use in expressionspuppet
value for use in expressions (body.dataset.nname
)Match
column)Row
classFor I followed your notes for creating containers in Firefox but I couldn't get any of these dilema scripts to run. Further investigation seems that '@run-at document-body' isn't a valid parameter for firefox see: greasemonkey/greasemonkey#3010 and https://wiki.greasespot.net/Metadata_Block#.40run-at
So I changed them all to '@run-at document-end' and NsIssueOpener and NsIssueCompactorRand seem to be working fine. However NsDilemmaAutoClose doesn't appear to do anything and the tab never closes.
I dug around a bit since my personal version (0.2) was still working, but other people reported it no longer working and tracked it down to this fix
If there are no previousChoices, totalChoices will be empty it seems, which breaks the script with the message
TypeError: reduce of empty array with no initial value
I replaced
const totalChoices = [...Object.entries(previousChoices)].map(([, x]) => x).reduce((acc, x) => acc + x);
with
const totalChoices = Object.values(previousChoices).reduce((acc, x) => acc + x, 0);
and tested it both for issues I did not encounter before, and issues I had values for, and this fixed it.
Very cool program but I want to know how do I start the NsIssueOpener, NsIssueCompactorRand and NsDilemmaAutoClose. Is there a certain tool I need to use? Like an extension? Or an app?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.