Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 215701 Details for
Bug 318131
"Next" target should get accesskey="n"
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
mentioned greasemonkey script
bugzillaAccesskeys.user.js (text/plain), 2.62 KB, created by
Matěj Cepl
on 2007-10-04 12:14:38 UTC
(
hide
)
Description:
mentioned greasemonkey script
Filename:
MIME Type:
Creator:
Matěj Cepl
Created:
2007-10-04 12:14:38 UTC
Size:
2.62 KB
patch
obsolete
>// 2007-01-18 >// Copyright (c) 2007, MatÄj Cepl >// Released under the MIT/X11 license >// http://www.opensource.org/licenses/mit-license.php >// >// ==UserScript== >// @name Bugzilla Add Next accesskey >// @namespace http://www.ceplovi.cz/matej/progs/scripts >// @description add N as a shortcut for Next bug >// @include https://bugzilla.redhat.com/* >// ==/UserScript== > >/* Additional non-Bugzilla functions. */ > >/** Replacement of GM_log to use Firebug console instead of > * standard Firefox one. Now probably obsolete. > * > * @param logmessage > */ >function log() { > //if (!("console" in unsafeWindow)) return; > var args = Array.prototype.slice.apply(arguments); > //unsafeWindow.console.log.apply(this,args); >} > >/** Check whether an item is member of the list. Idea is just to > * make long if commands slightly more readable. > * > * @param mbr string to be searched in the list > * @param list list > * @return position of the string in the list, or -1 if none found. > */ >function isMemberOf(mbr,list) { > return(list.indexOf(mbr) !== -1); >} > >/** Walk through the list whether any of its members matches RE. > * > * @param rExp regular expression object > * @param list list > * @return index of the matching item, or -1 if no item matches. > */ >function isMemberOfRE(rExp,list) { > for(var i=0; i<list.length; i++) { > if(rExp.test(list[i])) { > return i; > } > } > return(-1); >} > >/* Bugzilla functions */ > >/** Add accesskey to the particular element > * > * @param rootElement element to which the new text object will be attached > * @param beforeText text before the accesskey character > * @param accKey what will be the accesskey itself > * @param afterText text after the accesskey character > * @return modified element with the fixed accesskey > * >*/ >function fixElement(rootElement,beforeText,accKey,afterText) { > rootElement.setAttribute("accesskey",accKey.toLowerCase()); > rootElement.innerHTML = beforeText + "<b><u>" + accKey + "</u></b>" + afterText; > return rootElement; >} > >var ATags = document.getElementsByTagName("a"); >var foundA = null; >var elementFound = null; >for (var i = 0; i < ATags.length ; i++) >{ > elementFound = ATags[i]; > // http://developer.mozilla.org/en/docs/DOM:element.normalize > //elementContent = elementFound.normalize(); > if (elementFound.innerHTML.search(/^\s*Next/) != -1) { >// (elementFound.href.search(/^show_bug.cgi/) != -1)) { > foundA = elementFound; > log(elementFound.innerHTML); > break; > } >} >if (foundA == null) { > throw "A element with 'Next' content was not found."; >} else { > foundA = fixElement(foundA,"","N","ext"); >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 318131
: 215701