Welcome Guest.   Make a donation to an author on the site April 16, 2014, 02:06:08 PM  *

Please login or register.
Or did you miss your validation email?


Login with username and password (forgot your password?)
Why not become a lifetime supporting member of the site with a one-time donation of any amount? Your donation entitles you to a ton of additional benefits, including access to exclusive discounts and downloads, the ability to enter monthly free software drawings, and a single non-expiring license key for all of our programs.


You must sign up here before you can post and access some areas of the site. Registration is totally free and confidential.
 
Free DonationCoder.com Member Kit: Submit Request.
   
   Forum Home   Thread Marks Chat! Downloads Search Login Register  
Pages: [1]   Go Down
  Reply  |  New Topic  |  Print  
Author Topic: [Firefox] [Bookmarklet] Show all comments in a webpage.  (Read 3967 times)
scancode
Honorary Member
**
Posts: 634



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« on: December 01, 2009, 05:11:00 PM »

Formatted for Javascript with the GeSHI Syntax Highlighter [copy or print]
  1. javascript:(function () {var g=document.getElementsByTagName("html")[0].innerHTML.match(/<!(?:--[\s\S]*?--\s*)?>\s*/g);var h="<style>table{text-align:center;font-family:Verdana;color:#404;width:100%;background-color:#fafafa;border:1px #d79900 solid;border-collapse:collapse;border-spacing:0px}td.sa{border-bottom:2px solid #d79900;background-color:#fff2ba;text-align:center;font-family:Verdana;font-weight:bold;font-size:11px;color:#404}p.sa{text-align:left;font-family:Verdana,sans-serif,Arial;line-height:1.2em;color:#404;background-color:#fafafa;text-indent:-8px;margin-left:10px;margin-right:10px;margin-top:5px;margin-bottom:5px}.p{padding:2px;margin:2px;border:1px solid black}</style><table cellspacing=0><tr><td class=sa>Comments found in Document</td></tr>";for(var i=0;i<g.length;i++){h=h+"<tr><td class=p><p class=sa>"+g[i].replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;').replace(/\n/g,"<br />")+"</p></td></tr>"}h=h+"</table>";var j=document.createElement('iframe');j.setAttribute("src","about:blank");j.setAttribute("height","300");j.setAttribute("width","100%");j.setAttribute("style","border:0;margin:0;padding:0;");document.body.appendChild(j);j.contentDocument.open();j.contentDocument.write(h);j.contentDocument.close();scrollTo(0,999999)})()

Done for teh mouse man.
« Last Edit: December 01, 2009, 05:38:01 PM by scancode » Logged

mouser
First Author
Administrator
*****
Posts: 32,648



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #1 on: December 01, 2009, 05:24:20 PM »

doesn't seem to work for me or i dont know how to use it.. i selected the entire text, pasted it onto my link toolbar in firefox.  when i click it nothing happens.
i should note i dont actually use any bookmarklets, or havent in the past, mainly because my brain seems to just balk at the way bookmarklets are added to browser bookmark area -- i don't know why browser makers insist on making it such an ugly kludge.. if this is something we are supposed to do cant they build in a little nice support for this?
« Last Edit: December 01, 2009, 05:27:22 PM by mouser » Logged
mouser
First Author
Administrator
*****
Posts: 32,648



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #2 on: December 01, 2009, 05:28:17 PM »

it might help to tell people what to do and what this bookmarklet is supposed to do.
Logged
scancode
Honorary Member
**
Posts: 634



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #3 on: December 01, 2009, 05:39:26 PM »

doesn't seem to work for me or i dont know how to use it.. i selected the entire text, pasted it onto my link toolbar in firefox.  when i click it nothing happens.

Try scrolling to the bottom of the page.
Edit: done automagically now.

it might help to tell people what to do and what this bookmarklet is supposed to do.

The script does just what the topic says. Show all comments in a webpage['s HTML code].
Logged

mouser
First Author
Administrator
*****
Posts: 32,648



see users location on a map View Profile WWW Read user's biography. Give some DonationCredits to this forum member
« Reply #4 on: December 01, 2009, 06:02:55 PM »

works! fun stuff!!
Logged
jity2
Charter Member
***
Posts: 68

View Profile Give some DonationCredits to this forum member
« Reply #5 on: December 10, 2009, 02:24:42 AM »

Hello,
New to this!
This page helped me also understand what is a bookmarklet !
http://www.labnol.org/int...useful-bookmarklets/7931/
Logged
LiquidGravity
Participant
*
Posts: 5


View Profile Give some DonationCredits to this forum member
« Reply #6 on: December 16, 2009, 09:48:11 PM »

Here is a great online tool that I found that you might like mouser. It lets you make a custom button for Firefox out of anything that can be loaded in the firefox url bar (including links and javascript). You can use your own icons and even redistribute the file if you like. I have a few that I made and use regularly. It works great.

http://codefisher.org/toolbar_button/link-button-maker

I found that the following site has many useful bookmarklets. https://www.squarefree.com/bookmarklets/
Specifically the url navigation ones like Up, Top, Increment, Decrement,

A few other fun bookmarklets are the ones for vozme.com, and TinEye
Logged
LiquidGravity
Participant
*
Posts: 5


View Profile Give some DonationCredits to this forum member
« Reply #7 on: December 16, 2009, 09:52:16 PM »

Oh also I found an interesting view on bookmarklets and I would have to agree with its author. There is definitely a possibility of malicious bookmarklets and they must be viewed like any other software you install. Can you trust it? http://www.hunlock.com/blogs/Bookmarklets_--_The_Evil_Lurking_In_Your_Browser
Logged
scancode
Honorary Member
**
Posts: 634



I will eat Cody someday.

see users location on a map View Profile Read user's biography. Give some DonationCredits to this forum member
« Reply #8 on: December 17, 2009, 01:10:42 PM »

Oh also I found an interesting view on bookmarklets and I would have to agree with its author. There is definitely a possibility of malicious bookmarklets and they must be viewed like any other software you install. Can you trust it? http://www.hunlock.com/blogs/Bookmarklets_--_The_Evil_Lurking_In_Your_Browser

Nice link!
You might liek to take a look to the JS Beautifiers, they even unpack packed/"protected" scripts.
Logged

Pages: [1]   Go Up
  Reply  |  New Topic  |  Print  
 
Jump to:  
   Forum Home   Thread Marks Chat! Downloads Search Login Register  

DonationCoder.com | About Us
DonationCoder.com Forum | Powered by SMF
[ Page time: 0.045s | Server load: 0.01 ]