Commons:User scripts/users namespace/reports/User:Alphax/extra-tabs.js

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

jshint edit

  1. ISSUE: line 25 character 20: Use '===' to compare with 'false'. - Evidence: if (load_extratabs == false)
  2. ISSUE: line 56 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 local_append_tab(url, name)
  3. ISSUE: line 61 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 local_append_tab(url, name, id)
  4. ISSUE: line 79 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 local_add_image_tabs(imagetitle)
  5. 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 local_add_user_tabs(username)
  6. ISSUE: line 118 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 local_add_category_tabs(category)
  7. ISSUE: line 128 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 local_add_special_tabs(title)
  8. ISSUE: line 137 character 18: Use '!==' to compare with ''. - Evidence: if (username != '')
  9. ISSUE: line 146 character 18: 'username' is already defined. - Evidence: var username = document.getElementById('contentSub').getElementsByTagName('a')[0].firstChild.nodeValue;
  10. ISSUE: line 151 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 local_do_onload()