kanji koohii FORUM
site 'shuffle' for browsers? - Printable Version

+- kanji koohii FORUM (http://forum.koohii.com)
+-- Forum: Learning Japanese (http://forum.koohii.com/forum-4.html)
+--- Forum: Learning resources (http://forum.koohii.com/forum-9.html)
+--- Thread: site 'shuffle' for browsers? (/thread-5267.html)



site 'shuffle' for browsers? - ruiner - 2010-03-24

Are you familiar with the 'shuffle' option in certain tumblelogs (tumblr)? That is, you go to a tumblr, and if they have the button, you shuffle to random entry pages. Particularly fun if you go to a tumblr with tonnes of images and don't want to scroll and cycle through pages. This and reblogging (following 'via' links ad infinitum) have been part of my 'time hacking' (http://forum.koohii.com/showthread.php?tid=2421) in that I visit Japanese microblogs like this as a kind of null media (explained in link).

At any rate, is there a Greasemonkey script or Firefox add-on that allows one to 'shuffle' a range of sites and/or site subpages in some way, for other domains or when this 'shuffle' option isn't already available? I was just visiting a tumblr site with many images, feeling somehow put off by the manual process of cycling through and down pages, then I thought it would be cool to have a button for shuffling added whether the site had it or not. Then I thought what if I had, say, multiple Japanese sites to shuffle through? Or just wanted to randomly browse through my many, many bookmarks and avoid 'approach-approach' conflict [or (approach*approach)∞ conflict].

Edit: I did find this for shuffling tumblr pages: http://userscripts.org/scripts/show/23488 - Wonder if it can be customized to shuffle through posts as well, to reduce load times.

Nothing out there, it seems, for shuffling personal bookmarks or a user-customized range of URLs (say 'Japanese microblogs').


site 'shuffle' for browsers? - nest0r - 2010-05-27

So I found this:

javascript:void(location.href=document.links[Math.round((document.links.length-1)*Math.random())])

If you make this into a bookmark it seems to launch a random page from a domain? (or links on a page?) Anyone know how to make this into something for say, your bookmarks (like if you have a folder devoted to Japanese bookmarks) or to further customize it for language learning or something?

Edit: Ah ha! I just copied the bookmarks from a Japanese links folder (since it seems you can't partially export bookmarks as html), pasted and saved as an .html, opened in Firefox, and voila! Some streamlining/shortcuts and I'll be set.

It would still be cool to like, modify the script so it limits to certain domains, like *.jp or something...

I guess I could also modify this: http://j-walkblog.com/index.php?/weblog/posts/random_comic_bookmarklet/


site 'shuffle' for browsers? - balloonguy - 2010-05-27

If your using firefox 3, you could play around with smart bookmarks, here's a link on lifehacker.


site 'shuffle' for browsers? - nest0r - 2010-05-27

Says it doesn't recognize 'places:' (I'm using Firefox 3) -- perhaps I have somehow disabled them? At any rate, I don't see a way to randomize with smart bookmarks--I'm still trying to figure out how to use the above bookmark scripts but limited by domain--it seems there's two options--if it's a domain with a specific URL template for different entries, the values would have to reflect these and use wildcards accordingly, in order to visit, say, lifehacker.jp/year/month/entry.html ... no idea how to take this and apply it to other pages:

javascript:var%20randVal=106378+(Math.random()*(109344-106378));var%20link='http://comics.com/zoom/'+Math.round(randVal);location.replace(link);

The other possibility is to use the .html I might make by exporting/pasting my bookmarks, and modify the following script so that only links matching wildcarded terms are randomly selected (such as *.jp or *.tumblr.com, etc.):

javascript:void(location.href=document.links[Math.round((document.links.length-1)*Math.random())])


site 'shuffle' for browsers? - nest0r - 2010-05-28

Ah ha!

http://randomflip.mozdev.org/ - Lets you visit random bookmarks.

But damn, no way to narrow it down...

Come to think of it, with the other scripts, guess I can just move links around by keyword before exporting. ;p

Edit: Also, for some reason after installing randomflip, the dialog that popped up for 'add bookmark' was different slightly, so that the focus was on 'tags' rather than 'name' -- you can fix this if it happens to you by going to about:config and changing the bookmarks editdialog property from tagsField to namePicker.


site 'shuffle' for browsers? - nest0r - 2011-06-30

Update: I found this Chrome extension, Random Bookmark, that I like better than randomflip for Firefox because it does what I mentioned above: effectively lets you select a range of bookmarks (in the Options page, by folder/subfolders): https://chrome.google.com/webstore/detail/bpfemjamlkkagdfdekjhggnlbdcpbdpc

So, for example, just stick your favourite Japanese tumblr bookmarks in a folder, and use Random Bookmark to visit those; with the aforementioned tumblr shuffler script installed, you can randomly visit pages within those sites as well: http://userscripts.org/scripts/show/23488

The only thing I dislike is that Random Bookmark always opens a new tab.

Edit: Of course, if you can't live without instant card creation via Rikaisan, there's always downloading and using a portable version of Firefox, disabling dynamic bookmarks in randomflip's options (or deleting all the preloaded live bookmarks like BBC), and just importing a select number of your favourite Japanese bookmarks.