Welcome guest, is this your first visit? Create Account now to join.
Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 33

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 ...


  1. #11
    Kyrax is offline 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 !

  2. #12
    ducktape is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    213

    Default

    Thanks Kyrax for all those bookmarklets. I'm gonna try to make my own to search live.com images.

  3. #13
    Stamga's Avatar
    Stamga is offline Super Moderator/Designer
    Join Date
    Mar 2009
    Location
    Qc, Canada
    Posts
    601

    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


  4. #14
    ducktape is offline Senior Member
    Join Date
    Apr 2009
    Location
    Oregon
    Posts
    213

    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.
    javascript:void((function(){window.open("http://www.live.com/?scope=images"+document.getSelection().toString());})())
    Here's a couple I found:
    View enabled cookies:
    javascript:alert('Cookies stored by this host or domain:\n\n' + document.cookie.replace(/; /g,'\n'));
    Calculator:
    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:
    javascript:document.body.contentEditable = 'true'; document.designMode='on'; void 0
    Zoom all images in:
    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)
    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

  5. #15
    Kyrax is offline 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();

  6. #16
    StevePaul's Avatar
    StevePaul is offline Senior Member
    Join Date
    Mar 2009
    Location
    Birmingham, England
    Posts
    1,522

    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 ...

  7. #17
    juliamontelinpowers is offline 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!

  8. #18
    Kyrax is offline 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.

  9. #19
    juliamontelinpowers is offline 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

  10. #20
    Kyrax is offline 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.

Page 2 of 4 FirstFirst 1234 LastLast

Similar Threads

  1. Google Translate Selected to Any Language - Bookmarklet
    By vietnam in forum Chrome Tips & Tricks
    Replies: 4
    Last Post: 12-10-2010, 11:23 AM
  2. Wiki-it! Bookmarklet
    By Kyrax in forum Chrome Plugins
    Replies: 8
    Last Post: 11-15-2009, 10:47 PM
  3. Bookmarklet for PageRank
    By woz2 in forum Chrome Plugins
    Replies: 6
    Last Post: 04-15-2009, 01:35 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •