|
@@ -1317,12 +1317,19 @@ function publishNFTTweetEvent({ groupId, postId, srcContent }) {
|
|
|
let inputEle = document.querySelector('div[contenteditable="true"]');
|
|
|
let textContent = inputEle.innerText
|
|
|
let arr = srcContent.split(' ') || []
|
|
|
-
|
|
|
+ let text_content_arr = textContent.split(' ') || []
|
|
|
arr.forEach((item) => {
|
|
|
- if (textContent.includes(item) || item.includes('#DNFT') || item.includes('⬇️')) {
|
|
|
+ if (textContent.includes(item)) {
|
|
|
+ textContent = textContent.replaceAll(item, '')
|
|
|
+ }
|
|
|
+ })
|
|
|
+ text_content_arr.forEach((item)=>{
|
|
|
+ if(item.includes('#DNFT') || item.includes('⬇️')){
|
|
|
textContent = textContent.replaceAll(item, '')
|
|
|
}
|
|
|
})
|
|
|
+ textContent = textContent.replaceAll('#DNFT', '')
|
|
|
+ textContent = textContent.replaceAll('⬇️', '')
|
|
|
|
|
|
let formData = {
|
|
|
groupId,
|
|
@@ -1871,7 +1878,7 @@ const setGroupTabSelfStyle = (params = {}) => {
|
|
|
|
|
|
* 切换到 Group tab时 刷新列表
|
|
|
*/
|
|
|
-const refreshTabGroup = () => {
|
|
|
+export const refreshTabGroup = () => {
|
|
|
chrome.runtime.sendMessage({
|
|
|
actionType: "CONTENT_REFRESH_TAB_GROUP_LIST",
|
|
|
data: {}
|