|
@@ -1,11 +1,12 @@
|
|
|
import { getChromeStorage, setChromeStorage } from '@/uilts/chromeExtension.js'
|
|
|
-import { throttle, getQueryString, getCookie, nextTick ,getQueryStringByUrl} from '@/uilts/help'
|
|
|
+import { throttle, getQueryString, getCookie, nextTick, getQueryStringByUrl } from '@/uilts/help'
|
|
|
import { discordAuthRedirectUri } from '@/http/configAPI'
|
|
|
import { reportSrcPublishEvent } from '@/http/publishApi'
|
|
|
import Report from "@/log-center/log"
|
|
|
import { fetchAddFinishEvent } from '@/logic/background/fetch/facebook';
|
|
|
import { showNFTGroupIcon, hideNFTGroupList, checkUserJoinGroup, elemAddEventListener, addJoinedGroupList } from '@/logic/content/nft';
|
|
|
import { getTwitterNftGroupInfo } from '@/http/nft'
|
|
|
+import { jumpTwitterDetailByAlert } from '@/logic/content/help/twitter.js'
|
|
|
|
|
|
let dom = {};
|
|
|
|
|
@@ -658,6 +659,7 @@ function bindTwitterArtMethod() {
|
|
|
|
|
|
import parseCard from './ParseCard'
|
|
|
import { renderThumbStyle } from 'element-plus'
|
|
|
+import { defaultNavigator } from '_@vueuse_core@8.7.4@@vueuse/core'
|
|
|
|
|
|
// 检测dom改变
|
|
|
// 获取短链接
|
|
@@ -1288,7 +1290,15 @@ const TwitterLikeAPI = (tweet_Id) => {
|
|
|
})
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+let click_old_time = new Date().getTime()
|
|
|
export const showTwitterPost = (data) => {
|
|
|
+ let click_new_time = new Date().getTime()
|
|
|
+ if ((click_new_time - click_old_time) < 3000) {
|
|
|
+ return
|
|
|
+ }
|
|
|
+ click_old_time = click_new_time
|
|
|
let bigBtn = document.querySelector('a[data-testid="SideNav_NewTweet_Button"]');
|
|
|
if (bigBtn) {
|
|
|
bigBtn.click();
|
|
@@ -1350,9 +1360,8 @@ export function publishNFTTweetEvent({ groupId, postId, srcContent }) {
|
|
|
actionType: "CONTENT_NFT_TXT_PUBLISH",
|
|
|
data: params
|
|
|
}, () => { });
|
|
|
-
|
|
|
+ jumpTwitterDetailByAlert()
|
|
|
setTimeout(() => {
|
|
|
- document.querySelector('a[data-testid="AppTabBar_Profile_Link"]').click();
|
|
|
setGroupTabSelfStyle({
|
|
|
groupColor: 'rgb(83, 100, 113)',
|
|
|
groupFontWeight: '500',
|
|
@@ -1381,12 +1390,13 @@ export const setTwitterTextarea = (params) => {
|
|
|
if (inputEle) {
|
|
|
inputEle.focus();
|
|
|
document.execCommand("insertText", false, '');
|
|
|
- }
|
|
|
- setTimeout(() => {
|
|
|
- document.execCommand("insertText", false, params.srcContent);
|
|
|
- }, 1000);
|
|
|
|
|
|
- publishNFTTweetEvent(params)
|
|
|
+ setTimeout(() => {
|
|
|
+ document.execCommand("insertText", false, params.srcContent);
|
|
|
+ }, 1000);
|
|
|
+
|
|
|
+ publishNFTTweetEvent(params)
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
|
|
@@ -1767,9 +1777,9 @@ const addGroupTab = () => {
|
|
|
const hiddenMaskWeb3Tab = (count) => {
|
|
|
setTimeout(() => {
|
|
|
count++;
|
|
|
- if(count < 6) {
|
|
|
+ if (count < 6) {
|
|
|
let tab = getMaskWeb3Tab();
|
|
|
- if(tab) {
|
|
|
+ if (tab) {
|
|
|
tab.style.display = 'none'
|
|
|
} else {
|
|
|
hiddenMaskWeb3Tab(count);
|
|
@@ -1831,7 +1841,7 @@ const addGroupTabEventListener = (params) => {
|
|
|
window.addEventListener('scroll', addPageScrollEvent);
|
|
|
|
|
|
let tipsDom = document.querySelector('#denet_group_tip');
|
|
|
- if(tipsDom) {
|
|
|
+ if (tipsDom) {
|
|
|
chrome.runtime.sendMessage({
|
|
|
actionType: "SWITCH_GROUP_BANNER_STATUS",
|
|
|
data: { type: 'btn' }
|