File tree 5 files changed +12
-8
lines changed
content-script/injections
5 files changed +12
-8
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,8 @@ addParameters({
13
13
theme : create ( {
14
14
base : 'dark' ,
15
15
brandTitle : 'Maskbook' ,
16
- brandUrl : 'https://maskbook.io /' ,
17
- brandImage : 'https://maskbook.io /img/maskbook--logotype-white.png' ,
16
+ brandUrl : 'https://maskbook.com /' ,
17
+ brandImage : 'https://maskbook.com /img/maskbook--logotype-white.png' ,
18
18
} ) ,
19
19
isFullscreen : false ,
20
20
panelPosition : 'right' ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " maskbook" ,
3
- "version" : " 1.5.2 " ,
3
+ "version" : " 1.5.3 " ,
4
4
"private" : true ,
5
5
"dependencies" : {
6
6
"@holoflows/kit" : " https://github.com/DimensionDev/holoflows-kit" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"$schema" : " http://json.schemastore.org/chrome-manifest" ,
3
3
"name" : " Maskbook" ,
4
- "version" : " 1.5.2 " ,
4
+ "version" : " 1.5.3 " ,
5
5
"manifest_version" : 2 ,
6
6
"content_scripts" : [
7
7
{
32
32
"128" : " 128x128.png" ,
33
33
"256" : " 256x256.png"
34
34
},
35
- "homepage_url" : " https://maskbook.io " ,
35
+ "homepage_url" : " https://maskbook.com " ,
36
36
"description" : " Encrypt your posts & chats on You-Know-Where. Allow only your friends to decrypt."
37
37
}
Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ export async function encryptTo(
81
81
OthersAESKeyEncryptedMap . set ( key , othersAESKeyEncrypted )
82
82
83
83
return [
84
- `https://Maskbook.io : ${ constructAlpha40 ( {
84
+ `${ constructAlpha40 ( {
85
85
encryptedText : encryptedTextStr ,
86
86
iv : ivStr ,
87
87
ownersAESKeyEncrypted : ownersAESKeyStr ,
Original file line number Diff line number Diff line change @@ -154,14 +154,18 @@ new MutationObserverWatcher(posts)
154
154
. startWatch ( )
155
155
156
156
function zipPostLinkPreview ( node : DomProxy ) {
157
+ const parentEle = node . current . parentElement !
157
158
if ( isMobile ) {
158
- const img = node . current . parentElement ! . querySelector ( 'a[href*="maskbook.io"]' )
159
+ const img =
160
+ parentEle . querySelector ( 'a[href*="maskbook.io"]' ) || parentEle . querySelector ( 'a[href*="maskbook.com"]' )
159
161
const parent = img && img . closest ( 'section' )
160
162
if ( img && parent ) {
161
163
parent . style . display = 'none'
162
164
}
163
165
} else {
164
- const img = node . current . parentElement ! . querySelector ( 'a[href*="maskbook.io"] img' )
166
+ const img =
167
+ parentEle . querySelector ( 'a[href*="maskbook.io"] img' ) ||
168
+ parentEle . querySelector ( 'a[href*="maskbook.com"] img' )
165
169
const parent = img && img . closest ( 'span' )
166
170
if ( img && parent ) {
167
171
parent . style . display = 'none'
You can’t perform that action at this time.
0 commit comments