Commons:User scripts/users namespace/reports/User:ProméthéeBot/Gadget-RenommageCategorie.js
Jump to navigation
Jump to search
This is the report page for User:ProméthéeBot/Gadget-RenommageCategorie.js. It is bot-maintained. All manual changes might be overwritten.
jshint[edit]
- ISSUE:
line 113 character 147
: Value of 'e' may be overwritten in IE 8 and earlier. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 113 character 213
: Value of 'e' may be overwritten in IE 8 and earlier. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 113 character 236
: Unnecessary semicolon. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 113 character 454
: Use '===' to compare with 'false'. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 113 character 612
: Unnecessary semicolon. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 113 character 663
: Unnecessary semicolon. - Evidence:http:function(bundle){ var xmlhttp; try{ xmlhttp = new XMLHttpRequest(); }catch(e){ try{ xmlhttp = new ActiveXObject("Msxml2.XMLHTTP"); }catch(e){ try{ xmlhttp = new ActiveXObject("Microsoft.XMLHTTP"); }catch(e){ xmlhttp = false; }}}; if(xmlhttp){ xmlhttp.onreadystatechange = function(){ if (xmlhttp.readyState == 4){ RenommageCategorie_ajax.httpComplete(xmlhttp,bundle);}}; xmlhttp.open(bundle.method ? bundle.method : "GET",bundle.url,bundle.async == false ? false : true); if (bundle.headers) { for (var field in bundle.headers){ try{ xmlhttp.setRequestHeader(field,bundle.headers[field]); }catch(err){}}}; xmlhttp.send(bundle.data ? bundle.data : null); }; return xmlhttp;},
- ISSUE:
line 128 character 75
: Script URL. - Evidence:movelink.href = "javascript:RenommageCategorie_OpenMenu();";
- ISSUE:
line 131 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 145 character 26
: 'LargeurEcran' is already defined. - Evidence:var LargeurEcran = parseInt(window.innerWidth);
- ISSUE:
line 146 character 26
: 'HauteurEcran' is already defined. - Evidence:var HauteurEcran = parseInt(window.innerHeight);
- ISSUE:
line 159 character 32
: 'LargeurEcran' used out of scope. - Evidence:PositionGauche = parseInt((LargeurEcran-Menu.clientWidth)/2) ;
- ISSUE:
line 160 character 30
: 'HauteurEcran' used out of scope. - Evidence:PositionHaut = parseInt((HauteurEcran-Menu.clientHeight)/3) ;
- ISSUE:
line 188 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 196 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 215 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 221 character 40
: The array literal notation [] is preferable. - Evidence:if(!CatArray) CatArray = new Array();
- ISSUE:
line 235 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 253 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 258 character 46
: The array literal notation [] is preferable. - Evidence:window.RenommageCategorie_CatList = new Array();
- ISSUE:
line 275 character 104
: Missing semicolon. - Evidence:+ RenommageCategorie_Text_Delay.split('$1').join(RenommageCategorie_TimeOut)
- ISSUE:
line 279 character 28
: 'Text' is already defined. - Evidence:var Text = ''
- ISSUE:
line 281 character 104
: Missing semicolon. - Evidence:+ RenommageCategorie_Text_Delay.split('$1').join(RenommageCategorie_TimeOut)
- ISSUE:
line 287 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 295 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 304 character 39
: Use '!==' to compare with ''. - Evidence:if(RenommageCategorie_AddCat!='') CreateNewCat_SurEtCertain = confirm(RenommageCategorie_Text_ConfirmMoveS.split('$1').join(RenommageCategorie_RemoveCat).split('$2').join(RenommageCategorie_AddCat));
- ISSUE:
line 344 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 363 character 40
: Use '!==' to compare with ''. - Evidence:if ( RenommageCategorie_RemoveCat != "" ) {
- ISSUE:
line 369 character 29
: Use '===' to compare with 'null'. - Evidence:if (NewCatmatches == null && OldCatmatches != null && OldCatmatches.length == 1) { // Found one occurrence of the category - good!
- ISSUE:
line 369 character 54
: Use '!==' to compare with 'null'. - Evidence:if (NewCatmatches == null && OldCatmatches != null && OldCatmatches.length == 1) { // Found one occurrence of the category - good!
- ISSUE:
line 370 character 45
: Use '!==' to compare with ''. - Evidence:if(RenommageCategorie_AddCat != ""){
- ISSUE:
line 379 character 32
: Use '!==' to compare with 'null'. - Evidence:if(NewCatmatches!=null){
- ISSUE:
line 381 character 38
: Use '===' to compare with 'null'. - Evidence:}else if(OldCatmatches==null){
- ISSUE:
line 425 character 16
: ['bot'] is better written in dot notation. - Evidence:datas['bot'] = 1;
- ISSUE:
line 445 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 452 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 458 character 32
: ['query'] is better written in dot notation. - Evidence:var userRights = data['query']['userinfo']['rights'];
- ISSUE:
line 458 character 41
: ['userinfo'] is better written in dot notation. - Evidence:var userRights = data['query']['userinfo']['rights'];
- ISSUE:
line 458 character 53
: ['rights'] is better written in dot notation. - Evidence:var userRights = data['query']['userinfo']['rights'];
- ISSUE:
line 469 character 26
: ['noredirect'] is better written in dot notation. - Evidence:moveParams['noredirect'] = '';
- ISSUE:
line 483 character 89
: ['to'] is better written in dot notation. - Evidence:alert(RenommageCategorie_Text_NewPageExists.replace('$1', moveParams['to']));
- ISSUE:
line 491 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 502 character 35
: Use '===' to compare with ''. - Evidence:if(RenommageCategorie_AddCat==''){
- ISSUE:
line 516 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 529 character 35
: Use '===' to compare with ''. - Evidence:if(RenommageCategorie_AddCat==''){
- ISSUE:
line 541 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 552 character 35
: Read only. - Evidence:if(OldElement.parentNode){document=OldElement.parentNode.removeChild(OldElement);}
- ISSUE:
line 554 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 560 character 15
: Use '===' to compare with 'null'. - Evidence:if(Matches==null) return OldText;
- ISSUE:
line 564 character 22
: Use '!==' to compare with 'null'. - Evidence:if(catNSmatch!=null){
- ISSUE:
line 580 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 580 character 2
: Too many errors. (95% scanned). - Evidence:undefined