Commons:User scripts/users namespace/reports/User:Kanonkas/ajaxbatchmove.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

This is the report page for User:Kanonkas/ajaxbatchmove.js. It is bot-maintained. All manual changes might be overwritten.

jshint[edit]

  1. ISSUE: line 39 character 53: Missing semicolon. - Evidence: while(fh.firstChild) fh.removeChild(fh.firstChild)
  2. ISSUE: line 44 character 63: Missing semicolon. - Evidence: while(bcur.firstChild) bcur.removeChild(bcur.firstChild)
  3. ISSUE: line 52 character 51: Script URL. - Evidence: form.setAttribute('action','javascript:void(0)');
  4. ISSUE: line 54 character 52: Script URL. - Evidence: form.setAttribute('action','javascript:void(0);');
  5. ISSUE: line 62 character 42: Missing semicolon. - Evidence: lab1.setAttribute('for','abm-reason')
  6. ISSUE: line 75 character 44: Missing semicolon. - Evidence: lab2.setAttribute('for','abm-redirect')
  7. ISSUE: line 97 character 38: Use '===' to compare with ''. - Evidence: if(move.indexOf('|') == -1 || move == '') {
  8. ISSUE: line 101 character 20: Unexpected escaped character '<' in regular expression. - Evidence: var badchars = /(\#|\<|\>|\[|\]|\{|\}|\|.*\|)/;
  9. ISSUE: line 104 character 7: Implied eval. Consider passing a function instead of a string. - Evidence: setTimeout('abmStart()',1000);
  10. ISSUE: line 124 character 7: eval can be harmful. - Evidence: eval("abmMove(" + req.responseText + ",'" + req.responseText.replace(/\'/g,"`") + "','" + oldtitle + "','" + newtitle + "')");
  11. ISSUE: line 126 character 4: Missing semicolon. - Evidence: }
  12. ISSUE: line 132 character 9: ['error'] is better written in dot notation. - Evidence: if(obj['error']) {
  13. ISSUE: line 133 character 67: ['error'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  14. ISSUE: line 133 character 76: ['code'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  15. ISSUE: line 133 character 98: ['error'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  16. ISSUE: line 133 character 107: ['info'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  17. ISSUE: line 136 character 10: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  18. ISSUE: line 136 character 27: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  19. ISSUE: line 136 character 36: ['pageids'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  20. ISSUE: line 136 character 55: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  21. ISSUE: line 136 character 64: ['pages'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  22. ISSUE: line 136 character 77: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  23. ISSUE: line 136 character 86: ['pageids'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  24. ISSUE: line 136 character 109: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  25. ISSUE: line 136 character 118: ['pages'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  26. ISSUE: line 136 character 131: ['query'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  27. ISSUE: line 136 character 140: ['pageids'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  28. ISSUE: line 136 character 155: ['movetoken'] is better written in dot notation. - Evidence: if(!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]] || !obj['query']['pages'][obj['query']['pageids'][0]]['movetoken']) {
  29. ISSUE: line 140 character 18: ['query'] is better written in dot notation. - Evidence: var token = obj['query']['pages'][obj['query']['pageids'][0]]['movetoken'];
  30. ISSUE: line 140 character 27: ['pages'] is better written in dot notation. - Evidence: var token = obj['query']['pages'][obj['query']['pageids'][0]]['movetoken'];
  31. ISSUE: line 140 character 40: ['query'] is better written in dot notation. - Evidence: var token = obj['query']['pages'][obj['query']['pageids'][0]]['movetoken'];
  32. ISSUE: line 140 character 49: ['pageids'] is better written in dot notation. - Evidence: var token = obj['query']['pages'][obj['query']['pageids'][0]]['movetoken'];
  33. ISSUE: line 140 character 64: ['movetoken'] is better written in dot notation. - Evidence: var token = obj['query']['pages'][obj['query']['pageids'][0]]['movetoken'];
  34. ISSUE: line 145 character 80: Missing semicolon. - Evidence: if(document.getElementById('abm-redirect').checked) params += '&noredirect=1'
  35. ISSUE: line 155 character 7: eval can be harmful. - Evidence: eval("abmMoveAftermath(" + req.responseText + ",'" + req.responseText.replace(/\'/g,"`") + "')");
  36. ISSUE: line 157 character 4: Missing semicolon. - Evidence: }
  37. ISSUE: line 166 character 9: ['error'] is better written in dot notation. - Evidence: if(obj['error']) {
  38. ISSUE: line 167 character 69: ['error'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode('  ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  39. ISSUE: line 167 character 78: ['code'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode('  ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  40. ISSUE: line 167 character 100: ['error'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode('  ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  41. ISSUE: line 167 character 109: ['info'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode('  ! Api error: ' + obj['error']['code'] + ' - ' + obj['error']['info'] + '\n'));
  42. ISSUE: line 168 character 16: ['move'] is better written in dot notation. - Evidence: } else if(obj['move'] && obj['move']['from'] && obj['move']['to']) {
  43. ISSUE: line 168 character 31: ['move'] is better written in dot notation. - Evidence: } else if(obj['move'] && obj['move']['from'] && obj['move']['to']) {
  44. ISSUE: line 168 character 39: ['from'] is better written in dot notation. - Evidence: } else if(obj['move'] && obj['move']['from'] && obj['move']['to']) {
  45. ISSUE: line 168 character 54: ['move'] is better written in dot notation. - Evidence: } else if(obj['move'] && obj['move']['from'] && obj['move']['to']) {
  46. ISSUE: line 168 character 62: ['to'] is better written in dot notation. - Evidence: } else if(obj['move'] && obj['move']['from'] && obj['move']['to']) {
  47. ISSUE: line 169 character 65: ['move'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' > Page [[' + obj['move']['from'] + ']] moved to [[' + obj['move']['to'] + ']]\n'));
  48. ISSUE: line 169 character 73: ['from'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' > Page [[' + obj['move']['from'] + ']] moved to [[' + obj['move']['to'] + ']]\n'));
  49. ISSUE: line 169 character 106: ['move'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' > Page [[' + obj['move']['from'] + ']] moved to [[' + obj['move']['to'] + ']]\n'));
  50. ISSUE: line 169 character 114: ['to'] is better written in dot notation. - Evidence: out.appendChild(document.createTextNode(' > Page [[' + obj['move']['from'] + ']] moved to [[' + obj['move']['to'] + ']]\n'));
  51. ISSUE: line 169 character 114: Too many errors. (90% scanned). - Evidence: undefined
  52. ISSUE: line 1 character 11: Missing semicolon. - Evidence: abmStart()
  53. ISSUE: line 1 character 11: Too many errors. (100% scanned). - Evidence: undefined