General
: K-Meleon Forum
General discussion about K-Meleon.
Goto:
Forum List
•
Message List
•
Search
•
Log In
Your Name:
Subject:
Help information
BBcode help
Smileys help
[quote=siria] Yes those ' and " are very tricky, but I'm finding that sometimes the " are needed, if some more complicated code has 'multiple boxed in itself' stuff ;-) So I just try whatever and if one version doesn't work then try the other :) Must admit so far haven't tried yet the current script as standalone macro version, but that will be no prob once the JS is determined, seeing that my javascriptia test-macro just uses "readfile" and then "injectJS" too, with a few automatic replacements that I've long since forgotten ;-) Anyway, still can't stop playing with it, so here are two variations! For demo test just as [b]bookmarklets [/b]first, or to [b]copy/paste into URL-bar[/b]. For testing javascript must be enabled and "Typed URLs" be set to open in current page (the finished macro will not need those settings) 1) This adds invisibly (=html-comment) at the bottom of the html-code-body the URL, title and lastmodified-date: [color=blue]javascript:var x=document.body.innerHTML; document.body.innerHTML= x + "\n \n<!-- SAVED FROM: " + document.URL + "\n(LAST MODIFIED: " + document.lastModified + ")\nTITLE: " + document.title + "\n -->\n" ; document.close();[/color] 2) This shows title, lastmodified-date and of course URL visibly, at the top of page, with a line below: [color=blue] javascript:var x=document.body.innerHTML; document.body.innerHTML=document.title + " <br> ("+document.lastModified+")   <a[i] [/i]href='" + document.URL + "'>" + document.URL + "</a><br><hr><br>" +x ;document.close();[/color] There's still that stupid little bug that certain hidden page elements (objects? noscript-code?) suddenly show up if a page contains such stuff and was loaded without javascript, but that seems just a temporary display fault after injectJS. When saving the page in that state and reopening it, the display is correct again.[/quote]
[Please Enable JavaScript]
K-Meleon forum is powered by
Phorum
.
Home/News
Screenshots
Download
Documentation
Resources
Get Involved
Forum
Bugs
Development