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
- ISSUE:
line 25 character 20
: Use '===' to compare with 'false'. - Evidence:if (load_extratabs == false)
- 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)
- 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)
- 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)
- 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)
- 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)
- 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)
- ISSUE:
line 137 character 18
: Use '!==' to compare with ''. - Evidence:if (username != '')
- ISSUE:
line 146 character 18
: 'username' is already defined. - Evidence:var username = document.getElementById('contentSub').getElementsByTagName('a')[0].firstChild.nodeValue;
- 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()