Board Thread:General Discussion/@comment-24659969-20170322163830/@comment-24659969-20170412140228

FilthyBones wrote: Arf... I though we can have a middle way, like, prevent red users to edit, or non-mods (and then promote all the most useful users in the past months). It is possible with Javascript. All you have to create is something like this:

1. Make a javascript that retrieves user info from this page

http://battle-cats.wikia.com/wiki/Special:Preferences#mw-prefsection-emailv2

2. Check if the page info has text of "Thanks! Your email was confirmed" on ID selector #mw-htmlform-addressv2

3. If the matching text existed, set var name = true, if no then var name = false

4. The javascript executes on every page. So there will be a rules where the Javascript first check the document url address, if it match main page branches and not forum or blog, then it executes function. If var name true, set display:block for the edit button and also the edit page container, else display:none !Important; and remove element from HTML using document.erase

--

The concept is as easy as that, but to make the Javascript is hard mainly due to three factors:

1. We can not freely test it out; javascript changes requires approval and the test mode Javascript is only available for confirmed users = We can't test the Javascript directed for non confirmed user. Albeit in worst case, we could test it out on confirmed users first then just change what needed.

2. Since this javascript retrieves private information, it might not get approved by Wikia; Otherwise, there will be a lot of other wikia out there which retrieves private user informations such as passwords, email, user settings etc etc.

3. Do we have anyone able to write such Javascript? I only know basic Javascripts related to web design and page layout (eg: Javascript to make mouse trail, spoiler button, custom scrollbar etc), but not functionality javascript like that.