Author Topic: Last modified in Title-bar or Page  (Read 2097 times)

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Last modified in Title-bar or Page
« on: August 03, 2001, 09:54:18 AM »
Three First Filters http://arne.jaha.dk/download.php/1,17,7/id54.zip

This filter will show when a page was last modified (when possible) in the Title-bar.

[Patterns]
Name = "LastModified date in title"
Active = TRUE
Limit = 256
Match = "<start>"
Replace = "<script defer>"
          "document.title="("+document.lastModified+")"+document.title;"
          "</script>
"

Best wishes
Arne


Edited by - Arne on 04 Aug 2001  00:13:28
Best wishes
Arne
Imici username= Arne

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Last modified in Title-bar or Page
« Reply #1 on: August 03, 2001, 10:03:49 AM »
And this filter will put it at the center-bottom:
(works only in beta5)
[Patterns]
Name = "Add Last Date Modified to Page"
Active = TRUE
Multi = TRUE
URL = "$TYPE(htm)"
Bounds = "<body*>"
Limit = 256
Match = "&$IHDR(Last-modified:1)"
Replace = "<center><font size=2>Last Modified:
1</font></center><br>$STOP()"


Best wishes
Arne

Edited by - Arne on 03 Aug 2001  21:58:06
Best wishes
Arne
Imici username= Arne

Arne

  • Administrator
  • Hero Member
  • *****
  • Posts: 778
    • ICQ Messenger - 1448105
    • AOL Instant Messenger - aflaaten
    • Yahoo Instant Messenger - arneflaa
    • View Profile
    • http://
    • Email
Last modified in Title-bar or Page
« Reply #2 on: August 03, 2001, 07:23:31 PM »
And this one for the title bar in the format YY/MM/DD

[Patterns]
Name = "Arne's title bar YYMMDD"
Active = TRUE
Limit = 256
Match = "<start>"
Replace = "<script defer>"
          "var mmddyy=document.lastModified;"
          "var mm = mmddyy.substring(0,2);"
          "var dd = mmddyy.substring(3,5);"
          "var yy = mmddyy.substring(8,10);"
          "var yymmdd = yy + '/' + mm + '/' + dd;"
          "document.title=yymmdd+ " " +document.title;"
          "</script>
"


Best wishes
Arne


Edited by - Arne on 04 Aug 2001  00:14:53
Best wishes
Arne
Imici username= Arne

Drunkenstein

  • Newbie
  • *
  • Posts: 2
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • Email
Last modified in Title-bar or Page
« Reply #3 on: May 27, 2002, 04:33:51 PM »
Hi Arne.

Great and usefull forum.

When I use these filters, always the current date will be shown.

Greetings

Drunkenstein

 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Last modified in Title-bar or Page
« Reply #4 on: May 27, 2002, 05:05:56 PM »
Same here (current date with IE6 on XP). So i wrote this filter:

Name = "<start> Add: LastModified date in title"
Active = TRUE
URL = "$TYPE(htm)$IHDR(Last-Modified:1)"
Limit = 8
Match = "<start>"
Replace = "<script defer>document.title=document.title + " [" + "1" + "]";</script>
"

Of course it works only if a Last-Modified header is present

<edit> I actually didn't write it but changed Arne's one </edit>

Edited by - sidki3003 on 27 May 2002  18:09:28
 

hpguru

  • Sr. Member
  • ****
  • Posts: 257
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://lightning.prohosting.com/~hpguru/
    • Email
Last modified in Title-bar or Page
« Reply #5 on: May 27, 2002, 05:55:06 PM »
Here is one that puts the Last Modified date in the status area. It doesn't work with status scrollers but I think it's a safe assumption that most of you disable those anyway.


Name = "Last Modified to Status"
Active = TRUE
Limit = 256
Match = "<end>"
Replace = "<script>"
          "function dispLastMod() {"
          "window.status = ("Last Modified on: "+document.lastModified);"
          "setTimeout("dispLastMod()",6000);"
          "}"
          "dispLastMod();"
          "</script>"


 
Facing each other,
a thousand miles apart.

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Last modified in Title-bar or Page
« Reply #6 on: May 28, 2002, 08:37:16 AM »
Those using my config set, or any other config set which includes (a version of) Paul Rupe's start.js and end.js can also use this bookmarklet:
javascript:docPropsPROX();
to get the Last Modified date (as well as other useful info).

A generic bookmarklet to check DocLastModified: (should work in any ECMAScript handling browser):
javascript:if (document.lastModified==0) {alert('Date not available!');} else {alert('This document has been modified on: ' + document.lastModified);}


 
 

sidki3003

  • Sr. Member
  • ****
  • Posts: 476
    • ICQ Messenger -
    • AOL Instant Messenger -
    • Yahoo Instant Messenger -
    • View Profile
    • http://
    • Email
Last modified in Title-bar or Page
« Reply #7 on: May 28, 2002, 01:01:37 PM »
Jor, did you test Paul Rupe's bookmarklet(s) with IE?
Won't work here (all filters off except tame 1/2).

 
 

Jor

  • Sr. Member
  • ****
  • Posts: 421
    • ICQ Messenger - 10401286
    • AOL Instant Messenger - jor otf
    • Yahoo Instant Messenger - jor_otf
    • View Profile
    • http://members.outpost10f.com/~jor/
    • Email
Last modified in Title-bar or Page
« Reply #8 on: May 28, 2002, 01:56:42 PM »
I seldom, if ever, use MSIE, so haven't really tested them... won't surpsise me if they do not work tho, MS has no suport for ECMAScript (Jscript comes close, but it isn't the same -- somewhat like MS' take on CSS and HTML).


Just tested... seems this simple JS goes over MS' head. I bet you can find similar bookmarklets at www.bookmarklets.com for MSIE, tho.

The Prox URL command bookmarklets dó work:

Bypass:
javascript:var lo=document.location+''; document.location=lo.replace(/://(w+..)?/,'://bweb..bout..');

Debug:
javascript:var lo=document.location+''; document.location=lo.replace(/://(w+..)?/,'://dbug..');
etc.