Stream Google results

Forums » General Opera topics » User JavaScript

You need to be logged in to post in the forums. If you do not have an account, please sign up first.

Go to last post

10. January 2008, 22:59:20

Not,able

Evil communist

Posts: 152

Stream Google results

I used Googlestream which puts all results of google on a single page, when I used Firefox. Unfortunately, neither it nor the alternate GoogleMonkeyR work in Opera. The Greasemonkey emulator didn't help. Is there anything like that for Opera or can one of those scripts be ported?

17. January 2008, 16:20:40

Not,able

Evil communist

Posts: 152

Great, it works. Thanks!

18. January 2008, 13:23:01

flak

A night at the Opera

Posts: 34

amazing script but.. is there a way to make it not open a new window when i click a google search result?

I have it reusing the current tab, and with this script it opens the link in a new one, would very much prefer it the old way smile

21. January 2008, 15:30:46

shikaka

Posts: 85

i'm not very fluent in javascript, i suggest you try your luck on the authors homepage http://ma.la/ maybe there is a working link for v0.7 that didn't yet have new window opening feature.

21. January 2008, 17:49:18

fearphage

Trained Swordsman of Unwanted Opera Termination

Posts: 2234

Simplest fix:
Find:
  var set_links_target = function() {
    var links = document.getElementsByTagName('a');
    for (var i = 0; i < links.length; ++i) {
        links[i].setAttribute('target', '_blank');
    }
  };

Replace with:
var set_links_target = function() { };
Always latest weekly; XP Pro SP2
My bugs / disable RSS subscription prompt (This will disable email and chat as well) / Receive emailed copies of your bug reports

quote from desktopteam blog Feb 23 2007 06:49.36 (direct link to comment)

Originally posted by borg:

we will not be satisfied before we have the best developer tools in the industry

Source: Mozilla Links - 5 things I’d like to see in Opera

Originally posted by Percy Cabello:

One of the main reasons I prefer Firefox is that it starts from the belief that it can’t be the ideal browser for everybody

22. January 2008, 00:28:35

flak

A night at the Opera

Posts: 34

Originally posted by shikaka:

i'm not very fluent in javascript, i suggest you try your luck on the authors homepage http://ma.la/ maybe there is a working link for v0.7 that didn't yet have new window opening feature.



Thanks, but i am not fluent in Japanese bigsmile

Originally posted by fearphage:

Simplest fix:
Find:

  var set_links_target = function() {
    var links = document.getElementsByTagName('a');
    for (var i = 0; i < links.length; ++i) {
        links.setAttribute('target', '_blank');
}
};

Replace with:
var set_links_target = function() { };




fearphage, thank you very much, works nicely yes

9. March 2008, 10:23:09

refugedk

Posts: 2

Is there anyway to get it to work with script like google-preview like 2google-preview-1.0.js or others? First "site" works like a charm with small screenshots of the website, but when it goes to next page, it dont load previews.. mmh. anyone know some way to fix that?

16. March 2008, 14:27:50

rfudk

Godlike!

Posts: 114

forgot the link in the other post for the other script! http://files.myopera.com/operafan2006/files/2google-preview-1.0.js
Wise men talk because they have something to say; fools, because they have to say something.

3. August 2008, 06:37:31

AnthonyA1

Posts: 568

This stopped working along with all the addons and scripts I have in other browsers that customize Google. Something has changed on Google's end for sure.

6. August 2008, 13:26:17

splondike

Posts: 528

I thought it would be more fun to write my own script rather than use the existing, so I did: google-pager.js. If you hover the right hand side of the separator bars you will see a button which toggles the script. Enjoy.

6. August 2008, 19:07:47

Moderator

larskl

~ moderator ~

Posts: 22496

nice work splondike, any chance you could make this work with google preview as previously requested in this thread?

6. August 2008, 20:57:13

rfudk

Godlike!

Posts: 114

+1
Wise men talk because they have something to say; fools, because they have to say something.

7. August 2008, 04:38:34

splondike

Posts: 528

I've changed it so it uses the 2google-preview-1.0.js if you have it installed: google-pager.js.

7. August 2008, 11:26:12 (edited)

Moderator

larskl

~ moderator ~

Posts: 22496

very nice, thanks!

got yet another feature request: Is it possible to make this work with google images as well?

13. August 2008, 14:17:46

Moderator

larskl

~ moderator ~

Posts: 22496

seems google changed their pages again, breaking this script. (before someone points it could be caused by other scripts: happens in a clean install without any other scripts as well)
googlepagerbroken.png

13. August 2008, 18:49:08

flak

A night at the Opera

Posts: 34

still works here :|

13. August 2008, 19:08:10

Moderator

larskl

~ moderator ~

Posts: 22496

It's working again. Maybe Google just tested some code earlier today, let's hope it stays the way it is

15. August 2008, 16:07:50

Ampa

Posts: 45

Getting the same issue as Larski. Guess they addopted the new code?!

17. August 2008, 12:59:49

splondike

Posts: 528

I've updated it to work with the new page code: google-pager.js.

@larskl: Regarding google images, the image inserts seem to be done with javascript, so it's not quite as simple as with the search page. I might look into it later if I get some more time.

17. August 2008, 14:00:51

Moderator

larskl

~ moderator ~

Posts: 22496

thanks for the fix

@larskl: Regarding google images, the image inserts seem to be done with javascript, so it's not quite as simple as with the search page. I might look into it later if I get some more time.


Maybe have a look at how googleimages-thumblink.js does it? Couldn't find the download link for the latest version so I'm attaching it:
googleimages-thumblink.js

17. August 2008, 14:07:44

fengshi11

Posts: 138

I've updated it to work with the new page code: google-pager.js.


Thx ..It works perfectly at a wonderful speed now!! Wish google not to reset there code so frequently.... - -!

19. August 2008, 19:07:43 (edited)

rfudk

Godlike!

Posts: 114

+1 larskl

*edit* could it be fixed so it works with this
Wise men talk because they have something to say; fools, because they have to say something.

19. August 2008, 21:57:07

Moderator

larskl

~ moderator ~

Posts: 22496

Originally posted by rfudk:

*edit* could it be fixed so it works with this


it already works fine with "this":

Originally posted by splondike:

I've changed it so it uses the 2google-preview-1.0.js if you have it installed: google-pager.js.


20. August 2008, 07:37:14

rfudk

Godlike!

Posts: 114

wth, didnt work here, now it does after reinstalling, sorry for not paying attention at all :/
Wise men talk because they have something to say; fools, because they have to say something.

13. October 2008, 19:39:01

snf

Posts: 120

Many thanks to all.
bigsmile

14. October 2008, 04:07:56 (edited)

snf

Posts: 120

hi splondike

Thanks again for your script.up
But can you make this one confused

Google SnapShots Preview.user.js

work with :
google-pager.js (and 2google-preview-1.0.js)

Plz.smile
Many thanks.

If someone have solution.
I take with great plaisir. cheers


16. October 2008, 03:18:52

snf

Posts: 120

Note:
Google SnapShots Preview.user.js work already with 2google-preview.
Need only this very little script (Google SnapShots Preview.user.js) work with excelent google pager.js ( he's change my way searching in google bigsmile )

19. October 2008, 04:14:45

splondike

Posts: 528

@snf: I'm a bit busy at the moment to look into this, but I might in a couple of weeks. The script you link to in turn calls a rather large, obfuscated script by snap.com. This means it would probably be a fair bit of effort to work out how to trigger it when needed.

19. October 2008, 08:42:13

snf

Posts: 120

Ok splondike.
Thanks for reply.
Bye.

25. October 2008, 19:30:33

snf

Posts: 120

I don't understand.
But for me today 2google preview 1.0.js not working with google pager.
Someone have the same problem ?

26. October 2008, 00:29:33

Moderator

larskl

~ moderator ~

Posts: 22496

same here, the streamed results don't have thumbnails anymore

26. October 2008, 10:53:39

splondike

Posts: 528

Yeah, Google changed their code again. I've fixed support for 2google preview 1.0.js and added support for Google SnapShots Preview.user.js: google-pager.js

26. October 2008, 15:03:17

snf

Posts: 120

Yeahhhhhhhhhhhhhh party
Many many thanks Splondike.
It's perfect now.

bye bye

18. November 2008, 00:51:35

mcborzu

Posts: 21

Cool script splondike!!! nice work


I stumbled on this post looking for 2 column google results, it was hard to find. Heres the link in case any one else stumbles through these forums looking for the same thing:

http://userscripts.org/scripts/show/7732

28. February 2009, 01:11:43

dapxin

Posts: 159

Does this still work ?

Opera10a here.

25. April 2009, 17:35:49 (edited)

edvakf

Posts: 762

Hi everyone, I want to introduce you a similar script, written by my friend.

http://en.opera-wiki.com/oAutoPagerize
http://my.opera.com/edvakf/blog/2009/04/25/autopagerize-d-click-next-page-any-more

It's developed from the original Google Auto Pager, and works for thousands of websites.

25. April 2009, 18:13:51

kslee

Posts:

Thank you very much, edvakf! I didn't know it's there in English.
I downloaded it from here last year and spent quite a while trying to understand in Japanese, but I think it's worth
the time spent. smile

25. April 2009, 19:21:05

edvakf

Posts: 762

@kslee

Actually I wrote the introduction today.

25. April 2009, 23:39:30

dapxin

Posts: 159

it doesnt seem to work for me sad

26. April 2009, 01:32:43

edvakf

Posts: 762

@dapxin

Can you give me the particular website that it doesn't work?

26. April 2009, 01:43:22

dapxin

Posts: 159

I tried it on google.

26. April 2009, 04:41:36

splondike

Posts: 528

I've updated it to work with Google Nigeria: google-pager.js

30. April 2009, 10:07:24

dapxin

Posts: 159

@splondike,

why dont you post updates to this to your opera blog so we can subscribe for updates smile

2. May 2009, 01:55:40 (edited)

splondike

Posts: 528

You should just subscribe to the forum topic and it will appear in your sidebar on the main forum page. Alternatively subscribe to the thread feed. I don't want to start down the slippery slope to blogging p.

20. May 2009, 13:36:21

evilone

Banned user

don't work navigation buttons on next pages with this script - "up" and "delete" within search results cry
screen

22. May 2009, 04:58:48

splondike

Posts: 528

Sorry evilone, my options are to either change the way i've implemented the script (use iframes or something) or try and plow through this obfuscated code. Neither seem too appealing to me...

Forums » General Opera topics » User JavaScript