Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9118029
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:02:39+00:00 2026-06-17T05:02:39+00:00

This question is a follow-on to another question which needed asking and warranted a

  • 0

This question is a follow-on to another question which needed asking and warranted a new post, so excuse me if I refer to things which may not be clear without reading the other question.

When using the utility waitForKeyElements() I’m facing an issue in which a div is included inside a small popup contained within the same URL. My extension is currently running on the Twitter site, and my intention is that a div contained on the profile pages (e.g. http://twitter.com/todayshow) gets moved above another div on the page. I’m doing this via waitForKeyElements() because of some loading issues which are resolved by using this utility.

However, on a profile page you can click a link to another users name which pops up a small window (inside the same window/tab, on the same URL) showing some info about them and a few previous tweets. The issue here is that the same div appears on this popup and is then moved to the main page behind the popup window, where it shouldn’t be. On a profile page, this can be stopped by plugging in the false parameter to waitForKeyElements(), however on a non-profile page it is still possible to activate this popup which is then moving onto the main page, as the div I wish to move it above on a profile page still exists here, causing clear issues.

I’m wondering if there’s a way around this, as bugs in Chrome have stopped me from excluding these pages. So far (just brainstorming) I’m thinking:

  • on a page where the div doesn’t exist to begin with, create an empty one meaning false will handle the issue.
  • somehow stop the script from firing on a given URL, although due to the way Twitter works this would have to monitor OnClick() and the page URL (I think) which I’m unsure how to do.
  • stop running when the popup appears, but I have almost no idea where to start with that.

Any help is appreciated. Any necessary code related to this question can be found in the first two links, and the issue I’m facing can be seen by a quick visit to Twitter.

EDIT: When plugging in the false param it works when going directly to profiles via the URL bar, if you’re on a profile and use a link to get to a profile, the script isn’t inserted and my extension fails. So this would need resolving too, or an alternative method altogether.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:02:41+00:00Added an answer on June 17, 2026 at 5:02 am

    I had a brainwave that I could use insertAfter() to insert the <div> I was originally moving in front of, after the <div> I was originally moving. This <div> is not present on the popup, which means that nothing is moved onto the back page when it shouldn’t be.

    In regards to the previous question, my code is now simply:

    waitForKeyElements (
        "jQuery selector for div(s) you want to move", // Opposite to what it was.
        moveSelectDivs
    );
    
    function moveSelectDivs (jNode) {
         jNode.insertAfter ("APPROPRIATE JQUERY SELECTOR"); // Again, the opposite.
    }
    

    This solves the issue I was having and my extension is now working just fine, however I will leave this question posted in case anybody comes back to it in future.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This is a follow up to another question of mine. The solution I found
This is a more specific question to follow up on [another question that I
This is sort of a follow-up to my question here: Asp:Label is not shown
This is a follow on from another question ( https://stackoverflow.com/questions/10712659/c-class-design-for-monte-carlol-simulation ) I am planning
This question is a follow on from this one ... I am binding to
This question is a follow up with a previous question Previous Question The previous
This is a follow-up question to this question I asked earlier. Btw thanks Neil
I have a follow up question to this question . Is it possible to
This question is kind of a follow up to this question I asked a
This question is sort of a follow-up to my original question here . Let's

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.