Forum:Wiki dev logging pop-up

Hello,

I see that, in this wiki, anonymous user can not edit pages because when they clicked the edit button, the logging popo-up appears. So, I am wondering if it is possible to edit this script in order to display the logging pop-up when anonymous users what to edit semi-protected pages and not display the source page with "You can not edit this page...".

My code for the moment : // script var hasPermission = (function {       var permissions = mw.config.get('wgRestrictionEdit');        var usergroups;        usergroups = mw.config.get('wgUserGroups');        usergroups = $.extend(['*'], usergroups);			if (usergroups === ['*']) {			return true;			} else {			return false; }); var editbutton = document.getElementById("ca-ve-viewsource"); if (editbutton && hasPermission && permissions != "['*']") { editbutton.id = "ca-edit"; editbutton.href = "/wiki/Special:SignUp?returnto=" + wgTitle + "&returntoquery=action%3Dedit&type=login";

Thank you for your help. Gguigui1 (talk) 07:14, June 22, 2014 (UTC)