Commons:User scripts/users namespace/reports/User:OsamaK/Quick-delete.js

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

jshint edit

  1. ISSUE: line 10 character 24: Use '===' to compare with 'false'. - Evidence: if(window.nfd_autosave == false){}else if(window.nfd_autosave){}else{ nfd_autosave = true; }
  2. ISSUE: line 11 character 24: Use '===' to compare with 'false'. - Evidence: if(window.mnx_autosave == false){}else if(window.mnx_autosave){}else{ mnx_autosave = true; }
  3. ISSUE: line 43 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function addLink(where, url1, name1, id, title, key, after, url2, name2)
  4. ISSUE: line 74 character 15: 'na' is already defined. - Evidence: var na = document.createElement('a');
  5. ISSUE: line 97 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function openWindow(url) {
  6. ISSUE: line 102 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function getUploader() {
  7. ISSUE: line 106 character 50: Missing semicolon. - Evidence: var el = document.getElementById('filehistory')
  8. ISSUE: line 136 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_nomForDel() {
  9. ISSUE: line 153 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_addDeleteTemplate() {
  10. ISSUE: line 161 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_addIdwTemplate(target) {
  11. ISSUE: line 170 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_updateDelReq(target, reason) {
  12. ISSUE: line 178 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_updateDelReq2(target) {
  13. ISSUE: line 186 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function nfd_onload() {
  14. ISSUE: line 188 character 49: Script URL. - Evidence: addLink('p-tb', 'javascript:nfd_nomForDel()', nfd_text, 'nom-for-del', nfd_tooltip);
  15. ISSUE: line 202 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function mnx_mark(imagepage_fakeaction, usertalk_fakeaction, message_lang) {
  16. ISSUE: line 218 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function mnx_addTemplate(template, sorl) {
  17. ISSUE: line 235 character 1: Function declarations should not be placed in blocks. Use a function expression or move the statement to the top of the outer function. - Evidence: function mnx_addUserWarningTemplate(imagetarget, template_type) {
  18. ISSUE: line 239 character 38: Use '===' to compare with ''. - Evidence: if(document.editform.wpTextbox1.value=="")
  19. ISSUE: line 241 character 13: Expected '}' to match '{' from line 241 and instead saw '{'. - Evidence: txt = {{subst:welcome}};
  20. ISSUE: line 241 character 14: Missing semicolon. - Evidence: txt = {{subst:welcome}};
  21. ISSUE: line 241 character 20: Label 'subst' on welcome statement. - Evidence: txt = {{subst:welcome}};
  22. ISSUE: line 241 character 29: Unnecessary semicolon. - Evidence: txt = {{subst:welcome}};
  23. ISSUE: line 257 character 1: Expected '(end)' and instead saw '}'. - Evidence: }

esprima edit

  1. ERROR: Cannot parse line 241 column 13: Unexpected token {