Changeset 4709
- Timestamp:
- 01/16/08 21:28:18 (5 years ago)
- Files:
-
- 1 modified
-
lang/javascript/userscripts/minibuffer.user.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/javascript/userscripts/minibuffer.user.js
r4651 r4709 15 15 initialize: function(){ 16 16 this.orig_string = arguments[0]; 17 this.key = this.orig_string.replace(/ (A|C|M|S)-/g,'');17 this.key = this.orig_string.replace(/[ACMS]-/g,''); 18 18 }, 19 19 has: function(modifier){return this.orig_string.indexOf(modifier) != -1}, … … 1116 1116 if (!context) context = document; 1117 1117 var exp = (context.ownerDocument || context).createExpression(exp, function (prefix) { 1118 var ns = { "atom" : "http://purl.org/atom/ns#", "hatena" : "http://www.hatena.ne.jp/info/xmlns#" };1119 1118 return document.createNSResolver((context.ownerDocument == null ? context 1120 1119 : context.ownerDocument).documentElement) 1121 .lookupNamespaceURI(prefix) || ns[prefix] ||document.documentElement.namespaceURI;1120 .lookupNamespaceURI(prefix) || document.documentElement.namespaceURI; 1122 1121 }); 1123 1122 … … 1183 1182 } 1184 1183 var getSelectionText = function(){ 1185 return String(window.getSelection()). replace(/\r/g,'').split('\n').remove("");1184 return String(window.getSelection()).split('\r?\n|\r').remove(""); 1186 1185 } 1187 1186 var getSelectionNode = function(){
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)