Commons:User scripts/users namespace/reports/User:ישראל קרול/monobook.js
Jump to navigation
Jump to search
This is the report page for User:ישראל קרול/monobook.js. It is bot-maintained. All manual changes might be overwritten.
jshint[edit]
- ISSUE:
line 4 character 5
: document.write can be a form of eval. - Evidence:document.write('<style type=\"text/css\">/*<![CDATA[*/@import \"/w/index.php?title=User:Eran/monobook.css/RTLlight.css&action=raw&ctype=text/css\";/*]]>*/</style>');
- ISSUE:
line 7 character 50
: Use '!==' to compare with 'null'. - Evidence:if(document.getElementById('column-content')!=null) document.getElementById('column-content').style.direction='rtl';
- ISSUE:
line 40 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 hotcat_remove_upload ( text ) {
- ISSUE:
line 52 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 hotcat_check_upload () {
- ISSUE:
line 54 character 88
: Use '===' to compare with 'null'. - Evidence:if ( wgNamespaceNumber != -1 || wgCanonicalSpecialPageName != "Upload" || wgUserName == null) return ;
- ISSUE:
line 58 character 10
: Use '===' to compare with 'null'. - Evidence:if (ip == null) return;
- ISSUE:
line 82 character 13
: Use '===' to compare with 'null'. - Evidence:if (label == null)
- ISSUE:
line 119 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 hotcat_on_upload () {
- ISSUE:
line 122 character 13
: Use '!==' to compare with 'null'. - Evidence:if (input != null) hotcat_ok ();
- ISSUE:
line 128 character 19
: eval can be harmful. - Evidence:do_submit = eval (hotcat_old_onsubmit);
- ISSUE:
line 141 character 21
: Bad or unnecessary escaping. - Evidence:var new_cat = "\[\[Category:" + t + "\]\]" ;
- ISSUE:
line 141 character 23
: Bad or unnecessary escaping. - Evidence:var new_cat = "\[\[Category:" + t + "\]\]" ;
- ISSUE:
line 141 character 43
: Bad or unnecessary escaping. - Evidence:var new_cat = "\[\[Category:" + t + "\]\]" ;
- ISSUE:
line 141 character 45
: Bad or unnecessary escaping. - Evidence:var new_cat = "\[\[Category:" + t + "\]\]" ;
- ISSUE:
line 148 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 hotcat () {
- ISSUE:
line 166 character 57
: Expected a 'break' statement before 'case'. - Evidence:container = document.getElementById ('quickbar');
- ISSUE:
line 180 character 52
: Use '!==' to compare with 'null'. - Evidence:return document.getElementById ('ca-edit') != null;
- ISSUE:
line 199 character 20
: Use '===' to compare with 'null'. - Evidence:if (visible_cats == null) {
- ISSUE:
line 202 character 21
: Use '===' to compare with 'null'. - Evidence:if (hidden_cats == null) {
- ISSUE:
line 214 character 21
: Use '===' to compare with 'null'. - Evidence:if (hidden_cats == null) {
- ISSUE:
line 235 character 43
: Use '!==' to compare with 'null'. - Evidence:&& UploadForm.previous_hotcat_state != null)
- ISSUE:
line 239 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 hotcat_append_add_span ( catline ) {
- ISSUE:
line 251 character 2
: Missing semicolon. - Evidence:}
- ISSUE:
line 253 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 hotcat_is_on_blacklist ( cat_title ) {
- ISSUE:
line 262 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 hotcat_modify_span ( span , i ) {
- ISSUE:
line 283 character 31
: Use '!==' to compare with '0'. - Evidence:if (href.indexOf (prefix) != 0) prefix = wgServer + prefix; // Fully expanded URL?
- ISSUE:
line 284 character 31
: Use '===' to compare with '0'. - Evidence:if (href.indexOf (prefix) == 0) {
- ISSUE:
line 305 character 51
: Script URL. - Evidence:modify_link.href = "javascript:hotcat_modify(\"" + mod_id + "\");" ;
- ISSUE:
line 312 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 hotcat_modify_existing ( catline ) {
- ISSUE:
line 319 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 hotcat_getEvt (evt) {
- ISSUE:
line 323 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 hotcat_evt2node (evt) {
- ISSUE:
line 335 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 hotcat_evtkeys (evt) {
- ISSUE:
line 351 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 hotcat_killEvt (evt)
- ISSUE:
line 364 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 hotcat_remove (evt) {
- ISSUE:
line 385 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 hotcatGetParamValue(paramName, h) {
- ISSUE:
line 398 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 hotcat_find_category (wikitext, category)
- ISSUE:
line 409 character 26
: The array literal notation [] is preferable. - Evidence:var result = new Array ();
- ISSUE:
line 411 character 51
: Use '!==' to compare with 'null'. - Evidence:while ((curr_match = cat_regex.exec (wikitext)) != null) {
- ISSUE:
line 422 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 hotcat_check_action () {
- ISSUE:
line 426 character 27
: The array literal notation [] is preferable. - Evidence:var summary = new Array () ;
- ISSUE:
line 438 character 15
: Use '!==' to compare with 'null'. - Evidence:if (cat_key != null) cat_key = '|' + cat_key;
- ISSUE:
line 439 character 14
: Use '!==' to compare with 'null'. - Evidence:if (cat_rm != null && cat_rm.length > 0) {
- ISSUE:
line 441 character 36
: Use '===' to compare with '0'. - Evidence:if (!matches || matches.length == 0) {
- ISSUE:
line 449 character 19
: Use '!==' to compare with 'null'. - Evidence:if (cat_add != null && cat_add.length > 0 && matches[0].match.length > 1)
- ISSUE:
line 468 character 41
: Bad or unnecessary escaping. - Evidence:summary.push ( "Removed category \[\[:Category:" + cat_rm + "|" + cat_rm + "\]\]" ) ;
- ISSUE:
line 468 character 43
: Bad or unnecessary escaping. - Evidence:summary.push ( "Removed category \[\[:Category:" + cat_rm + "|" + cat_rm + "\]\]" ) ;
- ISSUE:
line 468 character 84
: Bad or unnecessary escaping. - Evidence:summary.push ( "Removed category \[\[:Category:" + cat_rm + "|" + cat_rm + "\]\]" ) ;
- ISSUE:
line 468 character 86
: Bad or unnecessary escaping. - Evidence:summary.push ( "Removed category \[\[:Category:" + cat_rm + "|" + cat_rm + "\]\]" ) ;
- ISSUE:
line 472 character 15
: Use '!==' to compare with 'null'. - Evidence:if (cat_add != null && cat_add.length > 0) {
- ISSUE:
line 473 character 17
: 'matches' is already defined. - Evidence:var matches = hotcat_find_category (t, cat_add);
- ISSUE:
line 473 character 17
: Too many errors. (44% scanned). - Evidence:undefined