show/hide this revision's text 3 added 216 characters in body

First, get the BugMonkey plugin, and put this code in for all users. (It won't do anything unless you're on a bug view page, so it's safe to put on all pages.)

String.prototype.htmlEntities = function () {
   // returns text that renders as readable HTML code for the browser
   return this.replace(/&/g,'&amp;').replace(/</g,'&lt;').replace(/>/g,'&gt;');
};


if(window.goBug) {
  var sProjectArea = $("div.idTitleProjectAndArea .subtitle").html();
  sProjectArea = sProjectArea.replace(goBug.sProject,sProjectArea.replace(goBug.sProject.htmlEntities(),"<a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&sort1=4&sort2=0&sort3=0&fGridView=1'>"+goBug.sProject+"</a>");
  &fOpenBugs=ON&ixProject="+goBug.ixProject+"&sort1=4&sort2=0&sort3=0&fGridView=1'>"+goBug.sProject.htmlEntities()+"</a>");
  sProjectArea = sProjectArea.replace(": " + goBug.sArea,"goBug.sArea.htmlEntities(),": <a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&ixArea="+goBug.ixArea+"&sort1=8&sort2=0&sort3=0&fGridView=1'>"+goBug.sArea+"</a>");
  &fOpenBugs=ON&ixProject="+goBug.ixProject+"&ixArea="+goBug.ixArea+"&sort1=8&sort2=0&sort3=0&fGridView=1'>"+goBug.sArea.htmlEntities()+"</a>");
  $("div.idTitleProjectAndArea .subtitle").html(sProjectArea);
}

It's currently broken for ampersands and other HTML entities (like < or >).

show/hide this revision's text 2 added 79 characters in body

First, get the BugMonkey plugin, and put this code in for all users. (It won't do anything unless you're on a bug view page, so it's safe to put on all pages.)

if(window.goBug) {
  var sProjectArea = $("div.idTitleProjectAndArea .subtitle").html();
  sProjectArea = sProjectArea.replace(goBug.sProject,"<a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&sort1=4&sort2=0&sort3=0&fGridView=1'>"+goBug.sProject+"</a>");
  sProjectArea = sProjectArea.replace(": " + goBug.sArea,": <a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&ixArea="+goBug.ixArea+"&sort1=8&sort2=0&sort3=0&fGridView=1'>"+goBug.sArea+"</a>");
  $("div.idTitleProjectAndArea .subtitle").html(sProjectArea);
}

It's currently broken for ampersands and other HTML entities (like < or >).

show/hide this revision's text 1

First, get the BugMonkey plugin, and put this code in for all users. (It won't do anything unless you're on a bug view page, so it's safe to put on all pages.)

if(window.goBug) {
  var sProjectArea = $("div.idTitleProjectAndArea .subtitle").html();
  sProjectArea = sProjectArea.replace(goBug.sProject,"<a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&sort1=4&sort2=0&sort3=0&fGridView=1'>"+goBug.sProject+"</a>");
  sProjectArea = sProjectArea.replace(": " + goBug.sArea,": <a href='default.asp?pre=preSaveFilter&fOpenBugs=ON&ixProject="+goBug.ixProject+"&ixArea="+goBug.ixArea+"&sort1=8&sort2=0&sort3=0&fGridView=1'>"+goBug.sArea+"</a>");
  $("div.idTitleProjectAndArea .subtitle").html(sProjectArea);
}