Install these programs:
Download the code:
$ git remote add upstream https://github.com/WPAFC/afch-rewrite.gitWhen you want to update your copy, run
$ git fetch upstream && git checkout master && git merge upstream/master
Run the script:
npm start
and follow the instructions. As the instructions say, you will need to go to https://test.wikipedia.orghttps://demo.azizisearch.com/lite/wikipedia/page/Main_Page?withJS=MediaWiki:Setup-afch-dev.js. Make sure you're logged in. It should show a link to a personal draft for your testing (ending in "Testing AFCH"). Click the link.AFCH.consts.mockItUp = true;
in the browser console, and use the script to post another comment. When you reload the page, your comment should then be there.Note that you'll need to run grunt build
each time you change the style (.less files).
Checklist if the "Review (AFCH beta)" item didn't appear under the "More" menu:
Draft:
)? Are you viewing the page normally, not in edit mode? If not, go to this page and click "Publish page" on the bottom.npm start
in a terminal? If not, run it (in the project directory).mw.loader.load('http://localhost:4444?ctype=text/javascript&title=afch-dev.js', 'text/javascript');
? If not, go to this page, copy and paste that line, and click "Publish page".npm run generate-certificates
or these instructions - ${ca_cert} is usually myCA.pem)If it's still not there:
console.log('hi!')
on a new line, visit this page, and open the browser console; the message "hi!" should be printed. If not, let us know.Other notes: