https://bugzilla.wikimedia.org/show_bug.cgi?id=35974
--- Comment #17 from zlight <[email protected]> 2012-07-27 07:17:45 UTC --- Here is a JavaScript (JS) version below that works for both PCs (Ctrl-click) and Macs (via Cmd-click. Command/Apple key). It works in Firefox, Chrome, Internet Explorer, and Safari. It works for both search submit buttons, and search suggestions in the dropdown. It works on Wikipedia and the Commons. It is from here: http://commons.wikimedia.org/wiki/Commons:Village_pump/Proposals#Revised_version_that_also_works_for_Mac_users /* Ctrl-click (PC) and Cmd-click (Mac) to open search in new tab */ $('#searchform, #searchbox, #search, .search-types, #search-types, #powersearch').bind('keyup keydown mousedown', function (e){ $(this).attr('target', e.ctrlKey||e.metaKey?'_blank':'') }) Add the above JS to here: *http://commons.wikimedia.org/wiki/Special:MyPage/common.js *http://en.wikipedia.org/wiki/Special:MyPage/common.js Note: Here are the component parts and what they effect: #searchform - embedded search form at top right of every page. #searchbox - embedded archive search forms. For example; http://commons.wikimedia.org/wiki/Template:Village_pump_archives http://commons.wikimedia.org/wiki/Commons:Village_pump/Header http://commons.wikimedia.org/wiki/Commons:Village_pump/Proposals/Header #search, .search-types, #search-types - Special:Search. #powersearch - advanced search at Special:Search. This is after one clicks the advanced search link at Special:Search to get the dropdown of search choices. Then when one clicks the search button, #powersearch applies to it. Special:Search links: *http://en.wikipedia.org/wiki/Special:Search *http://commons.wikimedia.org/wiki/Special:Search -- Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug. You are on the CC list for the bug. _______________________________________________ Wikibugs-l mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/wikibugs-l
