Commons:User scripts/users namespace/reports/User:Fetchcomms/speedy.js
This is the report page for User:Fetchcomms/speedy.js. It is bot-maintained. All manual changes might be overwritten.
jshint edit
- ISSUE:
line 14 character 16
: Bad or unnecessary escaping. - Evidence:'open': '{\{speedy|',
- ISSUE:
line 68 character 69
: Bad or unnecessary escaping. - Evidence:mw.util.addPortletLink('p-cactions', 'javascript:insertTagOnPage("{\{example|","}}","example");', 'example tag');
- ISSUE:
line 68 character 97
: Script URL. - Evidence:mw.util.addPortletLink('p-cactions', 'javascript:insertTagOnPage("{\{example|","}}","example");', 'example tag');
- ISSUE:
line 73 character 40
: Use '!==' to compare with ''. - Evidence:if (inb.close && inb.close != '') {
- ISSUE:
line 74 character 76
: Script URL. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 82
: ['usernote'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 108
: ['img_summary'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 137
: ['talk_summary'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 167
: ['open'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 189
: ['close'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 212
: ['def'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 74 character 232
: ['label'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '","' + inb['close'] + '","' + inb['def'] + '");', inb['label']);
- ISSUE:
line 76 character 76
: Script URL. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 76 character 82
: ['usernote'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 76 character 108
: ['img_summary'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 76 character 137
: ['talk_summary'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 76 character 167
: ['open'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 76 character 188
: ['label'] is better written in dot notation. - Evidence:mw.util.addPortletLink(toollocation, 'javascript:insertTagOnPage("' + inb['usernote'] + '","' + inb['img_summary'] + '","' + inb['talk_summary'] + '","' + inb['open'] + '");', inb['label']);
- ISSUE:
line 85 character 20
: Use '===' to compare with 'null'. - Evidence:if (tagtxt == null) return
- ISSUE:
line 85 character 35
: Missing semicolon. - Evidence:if (tagtxt == null) return
- ISSUE:
line 88 character 17
: 'tag' is already defined. - Evidence:var tag = tagstart;
- ISSUE:
line 111 character 13
: eval can be harmful. - Evidence:eval("insertTagOnPageEdit(" + req.responseText + ",'" + req.responseText.replace(/\'/g, "`") + "','" + tag + "','" + usernote + "','" + img_summary +"','" + talk_summary + "')");
- ISSUE:
line 113 character 6
: Missing semicolon. - Evidence:}
- ISSUE:
line 118 character 12
: ['error'] is better written in dot notation. - Evidence:if (obj['error']) {
- ISSUE:
line 119 character 30
: ['error'] is better written in dot notation. - Evidence:alert('Error: ' + obj['error']['code'] + ' - ' + obj['error']['info']);
- ISSUE:
line 119 character 39
: ['code'] is better written in dot notation. - Evidence:alert('Error: ' + obj['error']['code'] + ' - ' + obj['error']['info']);
- ISSUE:
line 119 character 61
: ['error'] is better written in dot notation. - Evidence:alert('Error: ' + obj['error']['code'] + ' - ' + obj['error']['info']);
- ISSUE:
line 119 character 70
: ['info'] is better written in dot notation. - Evidence:alert('Error: ' + obj['error']['code'] + ' - ' + obj['error']['info']);
- ISSUE:
line 122 character 13
: ['query'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 30
: ['query'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 39
: ['pageids'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 58
: ['query'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 67
: ['pages'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 80
: ['query'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 122 character 89
: ['pageids'] is better written in dot notation. - Evidence:if (!obj['query'] || !obj['query']['pageids'] || !obj['query']['pages'][obj['query']['pageids'][0]]) {
- ISSUE:
line 126 character 19
: ['query'] is better written in dot notation. - Evidence:var page = obj['query']['pages'][obj['query']['pageids'][0]];
- ISSUE:
line 126 character 28
: ['pages'] is better written in dot notation. - Evidence:var page = obj['query']['pages'][obj['query']['pageids'][0]];
- ISSUE:
line 126 character 41
: ['query'] is better written in dot notation. - Evidence:var page = obj['query']['pages'][obj['query']['pageids'][0]];
- ISSUE:
line 126 character 50
: ['pageids'] is better written in dot notation. - Evidence:var page = obj['query']['pages'][obj['query']['pageids'][0]];
- ISSUE:
line 127 character 14
: ['edittoken'] is better written in dot notation. - Evidence:if (!page['edittoken'] || !page['revisions'] || !page['revisions'][0] || !page['revisions'][0]['timestamp']) {
- ISSUE:
line 127 character 36
: ['revisions'] is better written in dot notation. - Evidence:if (!page['edittoken'] || !page['revisions'] || !page['revisions'][0] || !page['revisions'][0]['timestamp']) {
- ISSUE:
line 127 character 58
: ['revisions'] is better written in dot notation. - Evidence:if (!page['edittoken'] || !page['revisions'] || !page['revisions'][0] || !page['revisions'][0]['timestamp']) {
- ISSUE:
line 127 character 83
: ['revisions'] is better written in dot notation. - Evidence:if (!page['edittoken'] || !page['revisions'] || !page['revisions'][0] || !page['revisions'][0]['timestamp']) {
- ISSUE:
line 127 character 99
: ['timestamp'] is better written in dot notation. - Evidence:if (!page['edittoken'] || !page['revisions'] || !page['revisions'][0] || !page['revisions'][0]['timestamp']) {
- ISSUE:
line 131 character 25
: ['edittoken'] is better written in dot notation. - Evidence:var edittoken = page['edittoken'];
- ISSUE:
line 132 character 25
: ['revisions'] is better written in dot notation. - Evidence:var timestamp = page['revisions'][0]['timestamp'];
- ISSUE:
line 132 character 41
: ['timestamp'] is better written in dot notation. - Evidence:var timestamp = page['revisions'][0]['timestamp'];
- ISSUE:
line 133 character 26
: ['starttimestamp'] is better written in dot notation. - Evidence:var startstamp = page['starttimestamp'];
- ISSUE:
line 136 character 84
: Missing semicolon. - Evidence:if (startstamp) params += '&starttimestamp=' + startstamp.replace(/[^\d]/g, '')
- ISSUE:
line 147 character 17
: eval can be harmful. - Evidence:eval("insertTagOnPageEditHandler(" + req.responseText + ",'" + req.responseText.replace(/\'/g, "`") + "')");
- ISSUE:
line 147 character 17
: Too many errors. (72% scanned). - Evidence:undefined