[OpenStreetMap] #5045: (only) imprecise timestamps in the user changesets and on object history pages are not useful (was: Why are there only unprecise timestamps in the user changesets? Please revert)

OpenStreetMap trac at noreply.openstreetmap.org
Thu Dec 5 23:49:30 UTC 2013


#5045: (only) imprecise timestamps in the user changesets and on object history
pages are not useful
--------------------------+-------------------------
  Reporter:  aseerel4c26  |      Owner:  rails-dev@…
      Type:  defect       |     Status:  reopened
  Priority:  minor        |  Milestone:
 Component:  website      |    Version:
Resolution:               |   Keywords:
--------------------------+-------------------------

Comment (by aseerel4c26):

 Those about:config entries ([http://hackademix.net/2011/09/29/script-
 surrogates-quick-reference/ for NoScript]) work -  at least for all* pages
 (not for JavaScript navigation):
 * noscript.surrogate.osmorg.sources: !@www.openstreetmap.org/
 * noscript.surrogate.osmorg.replacement:

 {{{
 if (document.location.href.split('#')[0].split('/').length > 4) {
   $("div#sidebar_content div.details abbr").each(function() {
   $( this ).replaceWith("(" + $( this ).attr("title") + " [" + $( this
 ).html() + "])");
   });
 }
 }}}

 This expands the "abbr" tag (containing the relative timestamps). To
 remove the imprecise time interpretation completely just (but keeping the
 JS syntax correct) the the […] part. E.g.


 {{{
 if (document.location.href.split('#')[0].split('/').length > 4) {
   $("div#sidebar_content div.details abbr").each(function() {
   $( this ).replaceWith("(" + $( this ).attr("title") + ")");
   });
 }
 }}}

 or even (unordered list for the timestamps (mostly visible in case of
 changesets):

 {{{
 if (document.location.href.split('#')[0].split('/').length > 4) {
   $("div#sidebar_content div.details abbr").each(function() {
   $( this ).replaceWith("<ul><li>" + $( this
 ).attr("title").replace("\n","</li>\n<li>") + "</li></ul>");
   });
 }
 }}}

 \* except for [http://www.openstreetmap.org/user/aseerel4c26/history user
 changeset pages] which contain no requested content (loaded via JavaScript
 afterwards, only).

-- 
Ticket URL: <https://trac.openstreetmap.org/ticket/5045#comment:9>
OpenStreetMap <http://www.openstreetmap.org/>
OpenStreetMap is a free editable map of the whole world



More information about the rails-dev mailing list