Commons:User scripts/users namespace/reports/User:Addshore/reset.js

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

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

jshint[edit]

  1. ISSUE: line 11 character 19: ['sandboxreset'] is better written in dot notation. - Evidence: if(UrlParameters["sandboxreset"] == 1 && wgPageName == "Commons:Sandbox" && UrlParameters["action"] == "edit") {
  2. ISSUE: line 11 character 92: ['action'] is better written in dot notation. - Evidence: if(UrlParameters["sandboxreset"] == 1 && wgPageName == "Commons:Sandbox" && UrlParameters["action"] == "edit") {
  3. ISSUE: line 12 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  4. ISSUE: line 12 character 40: ['wpTextbox1'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  5. ISSUE: line 12 character 65: Bad or unnecessary escaping. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  6. ISSUE: line 12 character 67: Bad or unnecessary escaping. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  7. ISSUE: line 12 character 76: Bad or unnecessary escaping. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  8. ISSUE: line 12 character 78: Bad or unnecessary escaping. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  9. ISSUE: line 12 character 119: Bad or unnecessary escaping. - Evidence: document.forms["editform"].elements["wpTextbox1"].value = "\{\{Sandbox\}\}\n<!-- Please edit only below this line\. -->"; //Add the base text for the sandbox
  10. ISSUE: line 13 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpSummary"].value = "[[User:Addshore/reset.js|JS EDIT]]: Reset the Sandbox"; //Make a descriptive edit summary
  11. ISSUE: line 13 character 40: ['wpSummary'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpSummary"].value = "[[User:Addshore/reset.js|JS EDIT]]: Reset the Sandbox"; //Make a descriptive edit summary
  12. ISSUE: line 14 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpWatchthis"].checked = false; //Chances are you already have the sandbox watchlisted
  13. ISSUE: line 14 character 40: ['wpWatchthis'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpWatchthis"].checked = false; //Chances are you already have the sandbox watchlisted
  14. ISSUE: line 15 character 19: ['editform'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpMinoredit"].checked = true; //Make it a minor edit
  15. ISSUE: line 15 character 40: ['wpMinoredit'] is better written in dot notation. - Evidence: document.forms["editform"].elements["wpMinoredit"].checked = true; //Make it a minor edit
  16. ISSUE: line 16 character 21: ['indirect'] is better written in dot notation. - Evidence: if(UrlParameters["indirect"] == 1) { //If you've clicked on the toolbox link
  17. ISSUE: line 17 character 52: ['editform'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpDiff"].click(); }, 200); //Load the diff if you are resetting it per the toolbox link
  18. ISSUE: line 17 character 73: ['wpDiff'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpDiff"].click(); }, 200); //Load the diff if you are resetting it per the toolbox link
  19. ISSUE: line 19 character 15: Use '===' to compare with 'true'. - Evidence: if(save == true) {
  20. ISSUE: line 20 character 54: ['editform'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
  21. ISSUE: line 20 character 75: ['wpSave'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
  22. ISSUE: line 23 character 50: ['editform'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!
  23. ISSUE: line 23 character 71: ['wpSave'] is better written in dot notation. - Evidence: window.setTimeout(function() { document.forms["editform"].elements["wpSave"].click(); }, 200); //Submit it!