Google Chrome 4 now natively supports Greasemonkey user scripts
blog.chromium.org
blog.chromium.org
Fastest...browser...evar
Speed is important.
edit: I wonder if this is similar to the difference between Windows and Mac. Windows might be inconsistent in the small things (e.g. button padding), but it gets the large things right. Mac gets the small things right but the large things horribly, horribly wrong. Chrome seems to get the small things right too (e.g. tab animations), but overall Firefox does much better.
Back in my Slackware days, I loved the rendering of Konqueror/KHTML, so when I got a Mac I started using Safari. I was good, but didn't really excite me. Just competent stuff..
But Chrome. Now that's pushing things forward! Firefox is so slow and bloated on the Mac, I only use it for Stumbleupon.
Its equivalent in Chrome seems to be chrome.tabs.create. But when I tried that, I get this error: "chrome.tabs is not supported in content scripts". It seems that these "content scripts" aren't as powerful as extensions (http://code.google.com/chrome/extensions/content_scripts.htm...). Am I missing something here?
One is content scripts - which don't have access to certain parts of the Chrome api like opening tabs.
However, each extension can have what they call a background page. This is just an html page which is loaded in the background and there can be exactly one for every extension.
So you should be able to have your content script communicate with the background page (there is a mechanism for this) and let the background page open the tab.
For this, you'll have to write a fully-fledged extension though. The greasemonkey scripts probably don't generate a background page when they get converted into an extension at install-time.
Chromium does not support @require, @resource,
unsafeWindow, GM_registerMenuCommand, GM_setValue, or
GM_getValue.
A lot of scripts that I come across use `unsafeWindow`, `GM_setValue` and `GM_getValue.` It seems to be updated (since the last time I looked at it), since I believe it used to say that @exclude was not implemented, and now I don't even see a mention of it on the page (though I don't think I've come across a script that used @exclude).[1]: http://dev.chromium.org/developers/design-documents/user-scr...
[UPDATE] This should shine some light on the topic: http://www.greasespot.net/2009/11/greasemonkey-api-usage.htm...
Close the browser. Reopen. Check the options again. (Still there.) Type wp (so far so good, the Chrome hints drop-down looks like I'm going to hit Wikipedia) space, "San Francisco" (no quotes) ... and oops, the hints have changed to "Google Search" (as soon as I type the first character.
Hey I realize most of you guys like the single omni-box, (I consider it a waste of real estate), but at least make the second FireFox/IE type search box optional. Let the user decide.
Dev channel: http://www.google.com/chrome/eula.html?extra=devchannel Beta channel: http://www.google.com/chrome/eula.html?extra=betachannel
ul <tab> <search terms>
expands to ultimate-guitar.com to search for guitar tabs en <tab> <search terms>
expands to en.wikipedia.org to search wikipediaIt's great that it automatically picks up search boxes in websites. So this works on any website that you have searched in the past - you don't have to manually set it up.
That feature could seriously be a deterrent for switching away from Chrome or Firefox.
Not that I mind Firefox, but Chrome gets to do a reboot and start again without carrying legacy support/etc with it.
Early versions of Firefox felt "lighter" than IE to me for that reason.
It's probably only got more "lightweight" with time as they've had more opportunity and funding to optimise and actually remove things they don't use.
I've started using Chrome for my day to day browsing, but I'll never be able to wholeheartedly switch until Firebug arrives.
It has a great DOM inspector (allows editing), network/script/rendering timeline, step-through debugger, profiler, cookie and local database inspector, and Chrome even has a heap analysis tool (see which objects are allocated).
It's far better than Firebug, at least for JavaScript developers, IMO.
Editing style rules applied to elements: yes, you can do this. Select an element in the inspector, and you can click to edit its style rules.
User scripts are something for power users, who will always prefer Firefox. Won't this create the risk that average users will accept installing all kinds of scripts without much regard for security implications? User scripts are a powerful yet low-threshold tool which could easily lend itself to purposes such as identity theft.
[edit] I would almost appreciate a Chrome/Chromium extension that adds a 'open this page in X browser' option so that I can open it in Firefox when I need to without needing to copy over the URL manually.
Why do you say that? Chrome has extension support, I'm not sure what unique feature Firefox will have left shortly.