Go Back   Google Chrome Forums > Google Chrome > Chrome Plugins


http://chromeplugins.org/frwrdicon.jpg
Top Tip : Click here to Boost Your PC & Chrome Browsing Speed
Reply
 
Thread Tools Display Modes
  #11  
Old 04-20-2009, 04:25 AM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Default

Here is a new bookmarklet for you guys.

It's pretty simple. It allows you to automatically refresh a page every 10 seconds.

To stop the auto refresh, simply manually refresh the page (F5).

Code:
javascript:void((function(){f =document.createElement("IFRAME");f.src =window.location.href;f.style.width="100%";f.style.height="100%";while(document.body.childElementCount>0){document.body.removeChild(document.body.firstChild);}document.body.appendChild(f);setInterval(function(){f.contentWindow.location.reload(true);},10000);})())
You can change the frequency of the refreshes by changing the value at the very end (default 10000 [10 secs in ms]) to any other positive amount of milliseconds.

Note that it will create a frame with the page inside your browser's window. It might look a little weird but it's the only way i found to do this.

You can finally leave the forum idle and you will still have the latest posts if you come later !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #12  
Old 04-20-2009, 04:48 AM
Clouds's Avatar
Senior Member
 
Join Date: Apr 2009
Location: in a box
Posts: 180
Send a message via MSN to Clouds
Default

Thanks Kyrax for all those bookmarklets. I'm gonna try to make my own to search live.com images.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #13  
Old 04-20-2009, 08:46 PM
Stamga's Avatar
Super Moderator/Designer
 
Join Date: Mar 2009
Location: Qc, Canada
Posts: 599
Send a message via MSN to Stamga
Default

Cool, thanks! They work really well. Forget about posting the tut on the blog if you don't feel like it.. It was just an idea
__________________

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #14  
Old 04-21-2009, 04:29 AM
Clouds's Avatar
Senior Member
 
Join Date: Apr 2009
Location: in a box
Posts: 180
Send a message via MSN to Clouds
Default

Well I tired to make a Live Image search one. Here's what I got, It doesn't seem to work, it just gives a blank search.
Quote:
javascript:void((function(){window.open("http://www.live.com/?scope=images"+document.getSelection().toString());})())
Here's a couple I found:
View enabled cookies:
Quote:
javascript:alert('Cookies stored by this host or domain:\n\n' + document.cookie.replace(/; /g,'\n'));
Calculator:
Quote:
javascript:(function(){instacalc_script=document.createElement('SCRIPT');instacalc_script.type='text/javascript';instacalc_script.src='http://instacalc.com/gadget/instacalc.bookmarklet.js?x='+(Math.random());document.getElementsByTagName('head')[0].appendChild(instacalc_script);})();
Edit Page:
Quote:
javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
Zoom all images in:
Quote:
javascript:(function(){ function zoomImage(image, amt) { if(image.initialHeight == null) { /* avoid accumulating integer-rounding error */ image.initialHeight=image.height; image.initialWidth=image.width; image.scalingFactor=1; } image.scalingFactor*=amt; image.width=image.scalingFactor*image.initialWidth; image.height=image.scalingFactor*image.initialHeight; } var i,L=document.images.length; for (i=0;i<L;++i) zoomImage(document.images[i], 2); if (!L) alert("This page contains no images."); })();
Make black and white: (I think I saw this before)
Quote:
javascript:styles='* { background: white !important; color: black !important; } :link, :link * { color: #0000EE !important; } :visited, :visited * { color: #551A8B !important; }'; newSS = document.createElement('link'); newSS.rel = 'stylesheet'; newSS.href = 'data:text/css,' + escape(styles); document.documentElement.childNodes[0].appendChild(newSS); void 0

Last edited by Clouds; 04-21-2009 at 04:33 AM.. Reason: had to disable smilies
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #15  
Old 04-21-2009, 04:42 AM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Default

Thanks for sharing Clouds !

I'll give you a tip for your Live image search.
You need to figure out how their URL works.

Here is a sample image search on Live :
http://search.live.com/images/results.aspx?q=EXAMPLE

I searched for example.
What you want to do is replace EXAMPLE with document.getSelection().toString();
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #16  
Old 04-21-2009, 04:50 AM
StevePaul's Avatar
Senior Member
 
Join Date: Mar 2009
Location: Birmingham, England
Posts: 1,415
Send a message via MSN to StevePaul
Default

There's already a pretty funky calculator in Chrome ...

Try this ... type in the Omnibar 26lbs in kilograms or 300ft in metres .... or if you want to get really clever 160 pounds (force) * 400 feet in calories

Its reasonably free format (and quite cool) ....

http://www.google.co.uk/intl/en/help...tml#calculator

Enjoy :-D

Last edited by StevePaul; 04-21-2009 at 04:56 AM.. Reason: Added another calculation for effect ...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #17  
Old 04-23-2009, 04:08 PM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

Hi, Kyrax
I do a lot of papers and reports for my degree course, and would love a bookmarklet that would add any highlighted text to one of a selection of folders which I could name myself. That way I could copy quotes or text and author's names, websites, publishers etc. and reference them as I browse!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #18  
Old 04-23-2009, 05:20 PM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Post

Quote:
Originally Posted by juliamontelinpowers View Post
Hi, Kyrax
I do a lot of papers and reports for my degree course, and would love a bookmarklet that would add any highlighted text to one of a selection of folders which I could name myself. That way I could copy quotes or text and author's names, websites, publishers etc. and reference them as I browse!
Hello and welcome to the forums !

I worked on your request.. however i ran into a lot of problems.

First of all, it is of course not possible to interact with folders and files on the client's computer for obvious security reasons.

So i figured a new window would have to do.
However, javascript executed in a window has it's own scope and cannot interact with other windows. What that means is that for every page you visit, you will have a new "notes" window.

It's kind of hard to explain, i'll let you try the bookmarklet. I sure hope that it still suits your needs.

To use it : Go to a page, select some text and click the bookmarklet.
A new about:Blank page will open. It will be focused, there's nothing i can do about that (another security reason).
Go back to your interesting page's tab and select more text.
Click the bookmarklet again. This time, you won't see anything happen but the text is copied onto the "about:Blank" page.

The sad thing is that anytime you change page or click an hyperlink, the bookmarklet will open another new tab.

Here's the code :

Code:
javascript:if(typeof _B=='undefined'){var _W=window.open("about:blank");var _B=_W.document.createElement("TEXTAREA");_W.document.body.appendChild(_B);_B.style.width="100%";_B.style.height="100%";};go(); function go(){_B.innerHTML=_B.innerHTML+=document.getSelection().toString()+'\n';}
If anyone has suggestions or has some tips for me, they are more than welcome.

juliamontelinpowers, please tell me what you think of it.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #19  
Old 05-04-2009, 11:31 AM
Junior Member
 
Join Date: Apr 2009
Posts: 2
Default

I'm so new to this, I don't know what to do with the code you gave me! Could you give me simple directions, or direct me to a page that will walk me through it? The idea seems good in theory. Hope I haven't been wasting your time; Regards, Julia
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #20  
Old 05-04-2009, 05:42 PM
Senior Member
 
Join Date: Apr 2009
Location: Qc, Canada
Posts: 495
Default

Simple right click your bookmark bar, Add Page.

Name : Right a name that you like.
URL : Copy and paste the code i gave you earlier.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Thread Tools
Display Modes

Similar Threads
Thread Thread Starter Forum Replies Last Post
Wiki-it! Bookmarklet Kyrax Chrome Plugins 8 11-15-2009 09:47 PM
Bookmarklet for PageRank woz2 Chrome Plugins 6 04-15-2009 01:35 AM
Google Translate Selected to Any Language - Bookmarklet vietnam Chrome Tips & Tricks 3 04-10-2009 02:06 PM




Chrome Central - Chrome Talk - Chrome Tips and Tricks - Chrome Plugins - Chrome Themes - Chrome Tools - Bugs and Vulnerabilities - Chrome Tech - General Chat


All times are GMT. The time now is 09:58 PM.


Powered by vBulletin® Version 3.7.4 PL1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Google Chrome and Google™ is a Trademark of Google Inc
This site chromeplugins.org is not affiliated with or sponsored by Google Inc.
Thanks: Taree SEO Forum and John