Thanks Kyrax for all those bookmarklets. I'm gonna try to make my own to search live.com images.
This is a discussion on Need a bookmarklet ? Ask ! within the Chrome Plugins section, part of the Google Chrome category: Here is a new bookmarklet for you guys. It's pretty simple. It allows you to automatically refresh a page every ...
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).
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.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);})())
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 !![]()
Thanks Kyrax for all those bookmarklets. I'm gonna try to make my own to search live.com images.
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.
Here's a couple I found:javascript:void((function(){window.open("http://www.live.com/?scope=images"+document.getSelection().toString());})())
View enabled cookies:
Calculator:javascript:alert('Cookies stored by this host or domain:\n\n' + document.cookie.replace(/; /g,'\n'));
Edit Page: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);})();
Zoom all images in:javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
Make black and white: (I think I saw this before)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."); })();
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 ducktape; 04-21-2009 at 04:33 AM. Reason: had to disable smilies
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();
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 ...
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 :
If anyone has suggestions or has some tips for me, they are more than welcome.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';}
juliamontelinpowers, please tell me what you think of it.
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
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.