Changeset 702

Show
Ignore:
Timestamp:
03/28/08 08:19:41 (8 months ago)
Author:
ma..@jesperkristensen.dk
Message:

New User Script dialog should only offer current url if it can be used

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/manage-ui2/src/chrome/chromeFiles/content/newscript.js

    r701 r702  
    1515                      .getMostRecentWindow("navigator:browser"); 
    1616  if (win) { 
    17     document.getElementById("includes").value = win.content.location.href; 
     17    var url = win.content.location.href; 
     18    if (GM_isGreasemonkeyable(url)) { 
     19      document.getElementById("includes").value = url; 
     20    } 
    1821  } 
    1922}, false);