Commons:User scripts/users namespace/reports/User:Fox/omnitag.js

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

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

jshint[edit]

  1. ISSUE: line 8 character 17: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopetag"] == 1) {
  2. ISSUE: line 8 character 54: ['projectscopetag'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopetag"] == 1) {
  3. ISSUE: line 13 character 20: eval can be harmful. - Evidence: var text = eval("(" + req.responseText + ")").query.pages;
  4. ISSUE: line 18 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  5. ISSUE: line 18 character 57: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  6. ISSUE: line 18 character 59: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  7. ISSUE: line 18 character 109: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  8. ISSUE: line 18 character 111: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  9. ISSUE: line 18 character 137: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value = '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}' + "\n" + document.forms["editform"].wpTextbox1.value;
  10. ISSUE: line 19 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpSummary.value = 'Tagging as outside of the [[Commons:Project scope|project scope]] (using [[User:Garden/omnitag.js|omnitag]] script)';
  11. ISSUE: line 20 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpMinoredit.checked = true;
  12. ISSUE: line 21 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].submit();
  13. ISSUE: line 22 character 19: 'user' used out of scope. - Evidence: if(typeof(user) != 'undefined') window.setTimeout(function() { location.href = wgScript + "?title=User_talk:" + user + "&action=edit&projectscopenotify=1&projectscope=" + wgPageName; }, 1000);
  14. ISSUE: line 26 character 17: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopenotify"] == 1 && UrlParameters["projectscope"].length > 0 && wgNamespaceNumber == 3) {
  15. ISSUE: line 26 character 54: ['projectscopenotify'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopenotify"] == 1 && UrlParameters["projectscope"].length > 0 && wgNamespaceNumber == 3) {
  16. ISSUE: line 26 character 98: ['projectscope'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopenotify"] == 1 && UrlParameters["projectscope"].length > 0 && wgNamespaceNumber == 3) {
  17. ISSUE: line 28 character 60: ['projectscope'] is better written in dot notation. - Evidence: var projectscope = decodeURIComponent(UrlParameters["projectscope"].replace(/_/g, " "));
  18. ISSUE: line 29 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  19. ISSUE: line 29 character 58: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  20. ISSUE: line 29 character 60: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  21. ISSUE: line 29 character 102: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  22. ISSUE: line 29 character 104: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  23. ISSUE: line 29 character 107: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  24. ISSUE: line 29 character 109: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  25. ISSUE: line 29 character 111: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  26. ISSUE: line 29 character 113: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscope + "\}\} \~\~\~\~";
  27. ISSUE: line 30 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpSummary.value = 'Notification - [[' + projectscope+ ']] is outside of the [[Commons:Project scope|project scope]] (using [[User:Garden/omnitag.js|omnitag]] script)';
  28. ISSUE: line 31 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpMinoredit.checked = true;
  29. ISSUE: line 32 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].submit();
  30. ISSUE: line 37 character 26: Use '===' to compare with '0'. - Evidence: if(wgNamespaceNumber == 0 && !UrlParameters["projectscopetag"]) mw.util.addPortletLink("p-cactions", wgScript + "?title=" + wgPageName + "&action=edit&projectscopetag=1", "scope", "ca-scope");
  31. ISSUE: line 37 character 48: ['projectscopetag'] is better written in dot notation. - Evidence: if(wgNamespaceNumber == 0 && !UrlParameters["projectscopetag"]) mw.util.addPortletLink("p-cactions", wgScript + "?title=" + wgPageName + "&action=edit&projectscopetag=1", "scope", "ca-scope");
  32. ISSUE: line 47 character 17: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopeimgtag"] == 1) {
  33. ISSUE: line 47 character 54: ['projectscopeimgtag'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopeimgtag"] == 1) {
  34. ISSUE: line 52 character 20: eval can be harmful. - Evidence: var text = eval("(" + req.responseText + ")").query.pages;
  35. ISSUE: line 57 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  36. ISSUE: line 57 character 58: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  37. ISSUE: line 57 character 60: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  38. ISSUE: line 57 character 110: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  39. ISSUE: line 57 character 112: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  40. ISSUE: line 57 character 114: Missing semicolon. - Evidence: document.forms["editform"].wpTextbox1.value += '\{\{speedydelete|outside of [[COM:PS|project scope]]\}\}'
  41. ISSUE: line 58 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpSummary.value = 'Tagging as outside of the [[Commons:Project scope|project scope]] (using [[User:Garden/omnitag.js|omnitag]] script)';
  42. ISSUE: line 59 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpMinoredit.checked = true;
  43. ISSUE: line 60 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].submit();
  44. ISSUE: line 61 character 19: 'user' used out of scope. - Evidence: if(typeof(user) != 'undefined') window.setTimeout(function() { location.href = wgScript + "?title=User_talk:" + user + "&action=edit&projectscopeimgnotify=1&projectscopeimg=" + wgPageName; }, 1000);
  45. ISSUE: line 65 character 17: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopeimgnotify"] == 1 && UrlParameters["projectscopeimg"].length > 0 && wgNamespaceNumber == 3) {
  46. ISSUE: line 65 character 54: ['projectscopeimgnotify'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopeimgnotify"] == 1 && UrlParameters["projectscopeimg"].length > 0 && wgNamespaceNumber == 3) {
  47. ISSUE: line 65 character 101: ['projectscopeimg'] is better written in dot notation. - Evidence: if(UrlParameters["action"] == "edit" && UrlParameters["projectscopeimgnotify"] == 1 && UrlParameters["projectscopeimg"].length > 0 && wgNamespaceNumber == 3) {
  48. ISSUE: line 67 character 63: ['projectscopeimg'] is better written in dot notation. - Evidence: var projectscopeimg = decodeURIComponent(UrlParameters["projectscopeimg"].replace(/_/g, " "));
  49. ISSUE: line 68 character 23: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscopeimg + "\}\} \~\~\~\~";
  50. ISSUE: line 68 character 58: Bad or unnecessary escaping. - Evidence: document.forms["editform"].wpTextbox1.value += "\{\{subst:Project scope|" + projectscopeimg + "\}\} \~\~\~\~";
  51. ISSUE: line 68 character 58: Too many errors. (61% scanned). - Evidence: undefined