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

  • Home
  • SEARCH
  • 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 7865691
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T00:10:05+00:00 2026-06-03T00:10:05+00:00

After experimenting with scripts on facebook.com, I noticed that for a couple of minutes

  • 0

After experimenting with scripts on facebook.com, I noticed that for a couple of minutes it didn’t allow me to connect to facebook.com. This happened more than one time so I suspect that Facebook doesn’t like to mess with their code using userscripts.

The Stack Overflow question Can a website know if I am running a userscript? answers the multiple ways a website can detect scripts.

Now I want to know how I can fool a website to not detect any scripts I may be running.
Is there a way to know what my userscript HTML changes trigger on the website?

  • 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-03T00:10:06+00:00Added an answer on June 3, 2026 at 12:10 am

    For Firefox and Chrome there is no magic bullet to prevent detection, it is a process and an art…

    The 3 principle ways that a site would detect a script are:

    1. Out of sequence or too-frequent AJAX requests.

    2. Changes to the page’s code (HTML, global JS, or even CSS).

    3. Unnatural mouse or keyboard action.

    See “Can a website know if I am running a userscript?” for more information.

    Some countermeasures:

    1. For AJAX requests that your script makes:

      1. Use Wireshark, or similar, to analyze the traffic of normal AJAX calls. Make sure that you send the same type of calls, in the same order.
      2. Make sure that your requests show the same headers and data as the page’s.
      3. Do not send AJAX requests faster than the page does normally or faster than a user could reasonably trigger.
      4. Consider adding random delays to your script’s requests, so that they are not uniformly timed.
      5. Beware of constantly changing fields in the page’s requests. Be sure that you know how to generate the correct value; don’t just cut and paste.
    2. For changes that you make to the page’s code:
      The page can handle these either entirely locally, with it’s own javascript, or it can also send back status or code fragments to the server.

      1. Block and replace the page’s javascript. Tools like NoScript, RequestPolicy, firewalls and proxies can be used to block the JS.
        Then use Greasemonkey to add your edited version of the page’s JS. Greasemonkey will run even if all of a page’s JS is disabled.

      2. If the page phones status home, and that status changes in response to your script’s changes, Intercept and replace those messages. (This is not needed if you used the previous method.) You will need a custom firewall, proxy, or router to do this.

    3. For events that you trigger (mouse clicks, filling out fields, etc.):

      1. If the page checks for this, give it what it looks for. For example, instead of a click event, you may need a mouseover, mousedown, mouseup, mouseout sequence.
      2. If that is not enough, then the countermeasures are the same as for changes made to the page’s code (replace JS, intercept status messages).

    Important!
    In the rare event that you are battling a site that tries to thwart userscripts, it is like a war. The webmaster can adapt to what you are doing, and the environment can constantly change. So scripting for such a site is an ongoing process.

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

Sidebar

Related Questions

After experimenting with an iterator block I noticed the generated IL code is not
after experimenting with js's prototypal inheritance i've found that i'm not wild about the
After doing some research on the subject, I've been experimenting a lot with patterns
After being stumped by an earlier quesiton: SO google-analytics-domain-data-without-filtering I've been experimenting with a
After deploying WCF server (svc) on my Server, I have got this message when
After adding Restkit to the Podfile : platform :ios dependency 'Facebook-iOS-SDK', '1.2' dependency 'RestKit',
After extensive searching on this matter, I have been unable to find an answer
First of all, I'm using Rails 3.1.1 and Ruby 1.9.3-p0 . After experimenting for
After experimenting with some triangulation work I ran across the question on how to
After experimenting with many IMAP API's, I have decided to write my own (Most

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.