Re: [OT] Something about google search
On 07/04/12 17:47, lina wrote: Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Because thay are simply lists (li of links with some fancy CSS (+ scripts) you could hack the html and store it locally (and possibly bookmark it). The original HTML (e.g. with view source) seems a mess because it's condensed you can use a tool like tidy [1] to make it into something a little more readable. Of course this 'static' modification would be lost once you leave the page. What I have done (for another reason which is to quickly be able to select English or Italian as search language) is to create a customized home page with the google search form (together with other stuff) which might also be an approach depending on your needs. Lorenzo. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f85935e.9030...@gmail.com
Re: [OT] Something about google search
On Wed, Apr 11, 2012 at 10:21 PM, Lorenzo Sutton lorenzofsut...@gmail.com wrote: On 07/04/12 17:47, lina wrote: Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Because thay are simply lists (li of links with some fancy CSS (+ scripts) you could hack the html and store it locally (and possibly bookmark it). The original HTML (e.g. with view source) seems a mess because it's condensed you can use a tool like tidy [1] to make it into something a little more readable. Thanks for you suggestion, also a late thanks for the suggestions your guys gave before. Here seems you forget to put the [1] reference. I wish to do a try. Thanks with best regards, Of course this 'static' modification would be lost once you leave the page. What I have done (for another reason which is to quickly be able to select English or Italian as search language) is to create a customized home page with the google search form (together with other stuff) which might also be an approach depending on your needs. Lorenzo. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f85935e.9030...@gmail.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAG9cJm=zbrbutfzstsiyvhpja-dtkoaowoa263jat7691y-...@mail.gmail.com
Re: [OT] Something about google search
On Wed, Apr 11, 2012 at 10:21 PM, Lorenzo Sutton lorenzofsut...@gmail.com wrote: On 07/04/12 17:47, lina wrote: Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Because thay are simply lists (li of links with some fancy CSS (+ scripts) you could hack the html and store it locally (and possibly bookmark it). The original HTML (e.g. with view source) seems a mess because it's condensed you can use a tool like tidy [1] to make it into something a little more readable. http://tidy.sourceforge.net/ Is it the [one] ? Thanks ahead. Of course this 'static' modification would be lost once you leave the page. What I have done (for another reason which is to quickly be able to select English or Italian as search language) is to create a customized home page with the google search form (together with other stuff) which might also be an approach depending on your needs. Lorenzo. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f85935e.9030...@gmail.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAG9cJmm8GfY5=hbwcrehjtaqjk4ucqk0xnrm71cnfomjjyo...@mail.gmail.com
Re: [OT] Something about google search
Thanks for all. 1] I installed the greasymonkey. 2] I download the Add Links to Google Bar form http://userscripts.org/scripts/review/115780 3] : I don't know how to set the mail.google.com to the host of www.google.com, changed (document.location.host == www.google.com not work) ~/.mozilla/firefox/fs7z3prz.default/gm_scripts/Add_Links_to_Google_Bar$ more 115780.user.js // ==UserScript== // @name Add Links to Google Bar // @version 1.0 // @namespace http://nitinjain.info // @description Adds new links to the Google Bar // @license GPL v2 // @include https://*.google.com/* // @include http://*.google.com/* // @include http://*.google.com.* // ==/UserScript== var docment=null; if (document.location.host == mail.google.com) docment = document.getElementById('canvas_frame').contentDocument; else docment = document; var googlebar = docment.getElementById('gbz').getElementsByClassName('gbtc')[0] ; var newLinks =[]; // Add your links here.. //newLinks.push({name: 'Facebook', href: 'http://www.facebook.com'}); //newLinks.push({name: 'Yahoo', href: 'http://www.yahoo.com'}); //newLinks.push({name: 'Bing', href: 'http://www.bing.com'}); newLinks.push({name: 'Scholar', href: 'http://scholar.google.com.sg/schhp?hl=en '}) // Finish your custom links.. for (var i = 0; i newLinks.length; i++) { var newli = document.createElement('li'); newli.setAttribute('class', 'gbt'); googlebar.appendChild(newli); var newlink = document.createElement('a'); newlink.setAttribute('href', newLinks[i].href); newlink.setAttribute('class', 'gbzt'); newli.appendChild(newlink); var span1 = document.createElement('span'); span1.setAttribute('class', 'gbtb2'); newlink.appendChild(span1); var textlink = document.createElement('span'); textlink.setAttribute('class', 'gbts'); textlink.innerHTML = newLinks[i].name; newlink.appendChild(textlink); } Thanks again, Best regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/CAG9cJm=oh+p8qncnvqkmikpcvrc77nylcwtgktwzuioqjuw...@mail.gmail.com
Re: [OT] Something about google search
On 08/04/12 16:00, lina wrote: Thanks for all. 1] I installed the greasymonkey. Pretty sure it's greasEmonkey - but maybe that's the problem. ;-p 2] I download the Add Links to Google Bar form http://userscripts.org/scripts/review/115780 3] : I don't know how to set the mail.google.com to the host of www.google.com, changed (document.location.host == www.google.com not work) Huh? Why are you trying to change that? snipped If you want to modify the example links (to Bing, Fffacebook etc) or add a custom one - the section to modify is between the Add your links here and Finish your custom links.. comments. (obscure huh?) // Add your links here.. //newLinks.push({name: 'Facebook', href: 'http://www.facebook.com'}); //newLinks.push({name: 'Yahoo', href: 'http://www.yahoo.com'}); //newLinks.push({name: 'Bing', href: 'http://www.bing.com'}); eg. replacing that section with the following will add a single new link called Debian which is a href to debian.org // Add your links here.. //newLinks.push({name: 'Debian', href: 'http://debian.org'}); // Finish your custom links.. If you want to *remove* some of the visible links in the default Google search page, and add custom ones or rearrange the existing ones - this script will not do it. snipped Thanks again, Best regards, If you have problems with the script it's best to contact the maintainer (at the link you posted) or a javascript forum, instead of bombing this list with questions not related to Debian. Kind regards -- Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding answers to questions about Debian:- https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f813c9a.9050...@gmail.com
Re: [OT] Something about google search
On Sun, Apr 8, 2012 at 3:22 PM, Scott Ferguson scott.ferguson.debian.u...@gmail.com wrote: On 08/04/12 16:00, lina wrote: Thanks for all. 1] I installed the greasymonkey. Pretty sure it's greasEmonkey - but maybe that's the problem. ;-p 2] I download the Add Links to Google Bar form http://userscripts.org/scripts/review/115780 3] : I don't know how to set the mail.google.com to the host of www.google.com, changed (document.location.host == www.google.com not work) Huh? Why are you trying to change that? The new-added item only show when I am in mail.gmail.com I wish the new-added item to be shown on the www.google.com that's why I wish to know which should be fit for the value of document.location.host == snipped If you want to modify the example links (to Bing, Fffacebook etc) or add a custom one - the section to modify is between the Add your links here and Finish your custom links.. comments. (obscure huh?) // Add your links here.. //newLinks.push({name: 'Facebook', href: 'http://www.facebook.com'}); //newLinks.push({name: 'Yahoo', href: 'http://www.yahoo.com'}); //newLinks.push({name: 'Bing', href: 'http://www.bing.com'}); eg. replacing that section with the following will add a single new link called Debian which is a href to debian.org // Add your links here.. //newLinks.push({name: 'Debian', href: 'http://debian.org'}); // Finish your custom links.. If you want to *remove* some of the visible links in the default Google search page, and add custom ones or rearrange the existing ones - this script will not do it. snipped Thanks again, Best regards, If you have problems with the script it's best to contact the maintainer (at the link you posted) or a javascript forum, instead of bombing this list with questions not related to Debian. Thanks Best regards, Kind regards -- Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding answers to questions about Debian:- https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f813c9a.9050...@gmail.com -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cag9cjmnvwadjbziwz9ub7fp4sfruljh6qd_b0-ewtyyvrw2...@mail.gmail.com
Re: [OT] Something about google search
On 2012-04-08, Scott Ferguson scott.ferguson.debian.u...@gmail.com wrote: On 08/04/12 16:00, lina wrote: Thanks for all. 1] I installed the greasymonkey. Pretty sure it's greasEmonkey - but maybe that's the problem. ;-p They should change it then because I installed the greasy monkey is the most beautiful English sentence I've read today, and I doubt seriously things are going to get any better. It's funny, though, (in the sense of queer, odd), because I just finished reading a short story with a monkey in it named Alf. In the story, Alf is at home (a suburban house in Colorado) looking out the window (from the sill) into the front yard and a bird comes flying right at him, which makes jump back in fright, but when he does so he somehow lands under the legs of his owners rocking chair (a middle-aged woman) and his spine is broken as the woman rocks backwards in surprise. He dies on the spot (after letting out a very human-like scream). Now, if he would've been a greasy monkey, I'm thinking he might have survived the experience. Oh well. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/slrnjo31fa.2a4.cu...@einstein.electron.org
Re: [OT] Something about google search
On 04/08/2012 08:34 AM, Curt wrote: On 2012-04-08, Scott Ferguson scott.ferguson.debian.u...@gmail.com wrote: On 08/04/12 16:00, lina wrote: Thanks for all. 1] I installed the greasymonkey. Pretty sure it's greasEmonkey - but maybe that's the problem. ;-p They should change it then because I installed the greasy monkey is the most beautiful English sentence I've read today, and I doubt seriously things are going to get any better. It's funny, though, (in the sense of queer, odd), because I just finished reading a short story with a monkey in it named Alf. In the story, Alf is at home (a suburban house in Colorado) looking out the window (from the sill) into the front yard and a bird comes flying right at him, which makes jump back in fright, but when he does so he somehow lands under the legs of his owners rocking chair (a middle-aged woman) and his spine is broken as the woman rocks backwards in surprise. He dies on the spot (after letting out a very human-like scream). Now, if he would've been a greasy monkey, I'm thinking he might have survived the experience. Oh well. I love lina, Scott, and Curt. This made for an exceptionally nice start to my day. A great story, *and* the bonus of a new euphemism for -- uh, well, uh...I guess that's a little *too* OT. 8-) Best regards, Gilbert -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f81965f.10...@comcast.net
Rants and raving in Las Vegas. (was ... Re: [OT] Something about google search)
On Sun, Apr 08, 2012 at 05:22:02PM +1000, Scott Ferguson wrote: On 08/04/12 16:00, lina wrote: Thanks for all. 1] I installed the greasymonkey. LOL, anything like the gimp? (Pulp Fiction reference.) If you have problems with the script it's best to contact the maintainer (at the link you posted) or a javascript forum, instead of bombing this list with questions not related to Debian. Or even better, start making use of: http://lists.alioth.debian.org/mailman/listinfo/d-community-offtopic which Andrei thoughtfully setup and no one, including me, uses it. It would be good to have debian-user as a support ML and keep all the other stuff on d-community-offtopic. So for starters (for the archive, and cos I can't be bothered looking it up) can I set MFT (mail follow-up to) a CC'd list in this case: d-community-offto...@lists.alioth.debian.org -- Religion is excellent stuff for keeping common people quiet. -- Napoleon Bonaparte -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120408134612.GF28264@tal
Re: [OT] Something about google search
In linux.debian.user, you wrote: Thanks for all. 1] I installed the greasymonkey. 2] I download the Add Links to Google Bar form http://userscripts.org/scripts/review/115780 3] : I don't know how to set the mail.google.com to the host of www.google.com, changed (document.location.host == www.google.com not work) Why don't you just go to the URL the normal way, bookmark it, then give that bookmark a keyword? That's how I always do it No rodent fumbling necessary. -- ❤ ♫ ❤ ♫ ❤ ♫ ❤ Indulekha -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/20120408142522.GA20338@radhesyama
[OT] Something about google search
Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Googled for a while and still don't know how to set those things. Thanks ahead for your suggestions, Best regards, -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cag9cjmnagyvlqdmrhen34yrebfrp9f8akupiqxaqxfbsozw...@mail.gmail.com
Re: [OT] Something about google search
On Sat, 07 Apr 2012 23:47:29 +0800, lina wrote: For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Googled for a while and still don't know how to set those things. It seems there are extensions¹ for Firefox and Chrome providing such functionality but, is it worth it? ¹http://www.makeuseof.com/tag/easily-enable-customize-google-tool-bar/ ²http://webapps.stackexchange.com/questions/19417/how-do-i-change-the-sort-order-of-items-in-googles-top-navigation-bar Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jlpoe4$60e$5...@dough.gmane.org
Re: [OT] Something about google search
On Sun, Apr 8, 2012 at 12:02 AM, Camaleón noela...@gmail.com wrote: On Sat, 07 Apr 2012 23:47:29 +0800, lina wrote: For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Googled for a while and still don't know how to set those things. It seems there are extensions¹ for Firefox and Chrome providing such functionality but, is it worth it? I finished reading the two links you provided. I don't know it's worth or not. But I am a bit reluctant to install Chrome. I guess I will stick to the More now (another way I googled many days ago is bookmark it. ) Thanks, Best wishes, ¹http://www.makeuseof.com/tag/easily-enable-customize-google-tool-bar/ ²http://webapps.stackexchange.com/questions/19417/how-do-i-change-the-sort-order-of-items-in-googles-top-navigation-bar Greetings, -- Camaleón -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/jlpoe4$60e$5...@dough.gmane.org -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/cag9cjmncmbkttno0mi3qv2gyz+-tcykbuubl93+0e-+h45r...@mail.gmail.com
Re: [OT] Something about google search
lina wrote: Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Googled for a while and still don't know how to set those things. I expect you could use Greasemonkey to do that - Firefox extension that let's you do lots of stuff to incoming web pages. Or, maybe you could write a little bit of code that lives on a proxy. // http://en.wikipedia.org/wiki/Greasemonkey -- In theory, there is no difference between theory and practice. In practice, there is. Yogi Berra -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f806ea3.6060...@meetinghouse.net
Re: [OT] Something about google search
On 08/04/12 01:47, lina wrote: Hi, For the top line in google page Search Images Maps Play YouTube News Gmail Documents Calendar More Is it possible to delete the Play and Calendar, and bring something hidden in More up there? Yes. Though I can't see how that might be related to Debian ;-) There are a number of ways to do that - but wouldn't it be simpler to just put a shortcut or shortcuts to the links you want into your toolbar? The Google search page structure and scripts *will* change. Googled for a while and still don't know how to set those things. Looking at the source code might have proven instructive ;-p It's not a settable setting as such (if that gibberish makes sense). The element you're referring to is div#gbx3 which is a long list of links ending in Even More. Until you click on More... part of that list is hidden. So to change that so that some of the initial visible part of the list is hidden and replaced by the part of the hidden list you need to change the applied styles and dynamically rewrite the page. Possible. I'd probably just download the page and re-write it. But you 'could' change the actual live page - I'd probably use Adblock (to hide some elements) and Greasemonkey (to rewrite elements), but I only spent a minute looking at the code and it's possible it could be achieved with a bookmarklet (javascript snippet) or a custom CSS that you apply to the search page. Thanks ahead for your suggestions, Best regards, Kind regards -- Iceweasel/Firefox/Chrome/Chromium/Iceape/IE extensions for finding answers to questions about Debian:- https://addons.mozilla.org/en-US/firefox/collections/Scott_Ferguson/debian/ -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: http://lists.debian.org/4f80e1c8.4070...@gmail.com