tweaks
This commit is contained in:
parent
3f8e45cd18
commit
b83c4cebf6
@ -2175,8 +2175,8 @@
|
|||||||
sauce = {
|
sauce = {
|
||||||
init: function() {
|
init: function() {
|
||||||
sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm);
|
sauce.prefixes = conf['flavors'].match(/^[^#].+$/gm);
|
||||||
sauce.names = sauce.prefixes.map(function(s) {
|
sauce.names = sauce.prefixes.map(function(prefix) {
|
||||||
return s.match(/\w+(?=\.)/)[0];
|
return prefix.match(/(\w+)\./)[1];
|
||||||
});
|
});
|
||||||
return g.callbacks.push(function(root) {
|
return g.callbacks.push(function(root) {
|
||||||
var i, link, prefix, span, suffix, _len, _ref, _results;
|
var i, link, prefix, span, suffix, _len, _ref, _results;
|
||||||
|
|||||||
@ -1647,7 +1647,7 @@ anonymize =
|
|||||||
sauce =
|
sauce =
|
||||||
init: ->
|
init: ->
|
||||||
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
|
sauce.prefixes = conf['flavors'].match /^[^#].+$/gm
|
||||||
sauce.names = sauce.prefixes.map (s) -> s.match(/\w+(?=\.)/)[0]
|
sauce.names = sauce.prefixes.map (prefix) -> prefix.match(/(\w+)\./)[1]
|
||||||
g.callbacks.push (root) ->
|
g.callbacks.push (root) ->
|
||||||
return if root.className is 'inline' or not span = $ '.filesize', root
|
return if root.className is 'inline' or not span = $ '.filesize', root
|
||||||
suffix = $('a', span).href
|
suffix = $('a', span).href
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user