Browse Source

fix #479

pull/2/head
Raymond Hill 7 years ago
parent
commit
36e7c874cd
No known key found for this signature in database GPG Key ID: 25E1490B761470C2
  1. 2
      src/js/contentscript.js
  2. 6
      src/js/start.js

2
src/js/contentscript.js

@ -209,6 +209,8 @@ var collapser = (function() {
continue; continue;
} }
target.setAttribute(src1stProps[tag], placeholders[tag]); target.setAttribute(src1stProps[tag], placeholders[tag]);
target.style.setProperty('min-width', '20px', 'important');
target.style.setProperty('min-height', '20px', 'important');
target.style.setProperty('border', placeholders.border, 'important'); target.style.setProperty('border', placeholders.border, 'important');
target.style.setProperty('background', placeholders.background, 'important'); target.style.setProperty('background', placeholders.background, 'important');
} }

6
src/js/start.js

@ -72,7 +72,7 @@ var µm = µMatrix;
'") ', '") ',
'repeat scroll #fff' 'repeat scroll #fff'
].join(''), ].join(''),
placeholderBorder: '1px solid rgba(0, 0, 0, 0.05)',
placeholderBorder: '1px solid rgba(0, 0, 0, 0.1)',
placeholderDocument: [ placeholderDocument: [
'<html><head>', '<html><head>',
'<meta charset="utf-8">', '<meta charset="utf-8">',
@ -103,9 +103,9 @@ var µm = µMatrix;
'<svg viewBox="0 0 1792 1792"><path transform="scale(1,-1) translate(0,-1536)" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" /></svg>', '<svg viewBox="0 0 1792 1792"><path transform="scale(1,-1) translate(0,-1536)" d="M1408 608v-320q0 -119 -84.5 -203.5t-203.5 -84.5h-832q-119 0 -203.5 84.5t-84.5 203.5v832q0 119 84.5 203.5t203.5 84.5h704q14 0 23 -9t9 -23v-64q0 -14 -9 -23t-23 -9h-704q-66 0 -113 -47t-47 -113v-832q0 -66 47 -113t113 -47h832q66 0 113 47t47 113v320q0 14 9 23t23 9h64q14 0 23 -9t9 -23zM1792 1472v-512q0 -26 -19 -45t-45 -19t-45 19l-176 176l-652 -652q-10 -10 -23 -10t-23 10l-114 114q-10 10 -10 23t10 23l652 652l-176 176q-19 19 -19 45t19 45t45 19h512q26 0 45 -19t19 -45z" /></svg>',
'</a>{{url}}</span>', '</a>{{url}}</span>',
'</body></html>' '</body></html>'
].join(''),
placeholderImage: 'data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=='
].join('')
}; };
µm.defaultLocalUserSettings.placeholderImage = µm.defaultLocalUserSettings.placeholderBackground;
var rwLocalUserSettings = { var rwLocalUserSettings = {
placeholderBackground: true, placeholderBackground: true,

Loading…
Cancel
Save