Ver código fonte

[edit][过滤吞字]

zhangwei 2 anos atrás
pai
commit
92f820ff34
1 arquivos alterados com 1 adições e 6 exclusões
  1. 1 6
      src/logic/content/twitter.js

+ 1 - 6
src/logic/content/twitter.js

@@ -1352,19 +1352,14 @@ export const publishNFTTweetPost = ({ postId, srcContent, groupId }) => {
     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)) {
             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('⬇️', '')
+    textContent = textContent.replaceAll('Join Now:', '')
 
     let formData = {
         groupId,