|
@@ -1773,12 +1773,8 @@ const getGroupTabNode = () => {
|
|
|
}
|
|
|
|
|
|
const addGroupTab = () => {
|
|
|
- let illegalPages = ['notifications', 'explore', 'followers', 'following'];
|
|
|
- let page = window.location.pathname.split('/');
|
|
|
- if (page && page.length) {
|
|
|
- if (illegalPages.indexOf(page[page.length - 1]) > -1) {
|
|
|
- return;
|
|
|
- }
|
|
|
+ if (!document.querySelector('div[data-testid=UserName]')) {
|
|
|
+ return
|
|
|
}
|
|
|
let tabListDom = document.querySelector('div[role="tablist"]');
|
|
|
let groupItemTab = getGroupTabNode();
|