Anonymous avatar Anonymous committed ec544b1

Corrected a few bugs - script is now working.

Comments (0)

Files changed (1)

greasemonkey-scripts/ozy-millie-title.user.js

 
     var date_wo_day_of_week = mydate.replace(/^.*?day, /, "");
 
-    var timestamp = Date.parse(date_wo_day_of_week);
+    var timestamp = new Date(date_wo_day_of_week);
 
-    var formatted_date = timestamp.format("%d-%m-%Y");
+    var formatted_date = timestamp.format("dd-mm-yyyy");
+
 
     var total_text = "=== [" + loc + " " + formatted_date + " - " + title + "] ===";
 
-    $("center > h3").after("<input name=\"mw_title\" id=\"mw_title\" value=\" . myesc(total_text) . "\">\n"); 
+    $("center > h3").after("<b>MediaWiki Title:</b> <input name=\"mw_title\" id=\"mw_title\" value=\"" + myesc(total_text) + "\">\n<br>\n<br>\n<br>\n"); 
 }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.