How to alter facebook post text from javascript

good day, does anyone knows the way to change facebook posting and add a text or picture to it from browser extension. Simulating keystrokes does not work.

How to write a extension for Facebook that filter the feeds content?

I want to filter the feeds. I only want to see the posts from specific people and pages into my feeds.
Is it at all possible? If yes, please suggest a starting point from where I can start developing it.

Facebook Share Dialog “The domain of this URL isn’t included in the app’s domains.” within a chrome extension

I’m trying to use Facebook’s Javascript SDK to allow users to content from a chrome extension. I’d like to prompt the user with the share dialog.

Unfortunately, because this is from a chrome extension and can be on any domain whenever I try to share anything I get the error “The domain of this URL isn’t included in the app’s domains.”. This is because I’d need to list all domains in the app domains setting.

Anyone know of a possible workaround? Thanks!

How to manipulate like button on Facebook web page?

I’m currently building a chrome extension and I’m trying to get it to be able to stop a like on Facebook from going through even after the like button has been clicked. In my content.js, I currently have the code:

document.querySelectorAll('a[data-testid="fb-ufi-likelink"]').forEach(function(element) {
element.addEventListener('click', function() {
    var r = confirm("You clicked like");
        if (r == true) {
            alert("you clicked OK");
        } else {
            alert("you clicked Cancel")
        }           
    })
});

As of now, when the like button is clicked, a confirm box pops up but the like does not go through until “OK” or “Cancel” is clicked. The goal is to have the like go through when “OK” is clicked, and the like to not go through when “Cancel” is clicked on the confirm box. Is this implementation feasible? If so, how would I go about doing this?

Facebook page shifts when FB is added to Chrome Extension manifest

In the manifest.json of my Chrome Extension, I’ve added Facebook to the content script. For some reason, I’m not sure if this is a bug in my code or something to do with Facebook, when the extension runs with Facebook in the content script’s matches, the entire Facebook page becomes shifted.

Here’s an image of the bug.I’m not sure what’s happening nor what’s causing this to happen. My other friends have experienced the same issue when I ask them to include Facebook into the manifest.

The relevant code looks like this:

"content_scripts": [{
    "matches": [
      "http://*.facebook.com/*",
      "https://*.facebook.com/*",
      "https://*.twitter.com/**",
      "https://*.reddit.com/**"
    ],
...
}],

My extension works great on Reddit and Twitter. I’ve isolated the Facebook issue to here. Does anyone have a fix for this?

Intercept like button on Facebook web app

I’m currently building a chrome extension and I’m trying to get it to be able to stop a like on Facebook from going through even after the like button has been clicked. In my content.js, I currently have the code:

document.querySelectorAll('a[data-testid="fb-ufi-likelink"]').forEach(function(element) {
    element.addEventListener('click', function() {
        var r = confirm("You clicked like");
            if (r == true) {
                alert("you clicked OK");
            } else {
                alert("you clicked Cancel")
            }           
    })
});

As of now, when the like button is clicked, a confirm box pops up but the like does not go through until “OK” or “Cancel” is clicked. The goal is to have the like go through when “OK” is clicked, and the like to not go through when “Cancel” is clicked on the confirm box. Is this implementation feasible? If so, how would I go about doing this?

Re-enable the console in Dev tools on facebook

On facebook if you try to use the Console via Dev-tools it blocks you from entering anything.

This was well laid out here: How does Facebook disable the browser’s integrated Developer Tools?

Everywhere says this is not really a security feature for facebook but for their users. So that a general user doesn’t get tricked and paste in malicious code given to them by “hackers” to gain access to their account.

I manage groups on facebook. And i want to execute javascript every once and a while to remove specific things or organize lists in specific ways… But i can not do this on facebook…

What is the solution? How do I execute commands in the console and disable their script blocking the use of the console? (I am not great with JavaScript but still would like to execute my basic commands)

Thanks for any help

How can Web App disable CSS or Javascript browser add-on or extension?

I am looking for how to disable css or javascript code injection of the browsers’ plugins in our web app.

As an example, when we use Facebook’s messenger app at www.messenger.com, the site disables most of the browser’s plugins or extensions. How can I implement such control in our web app?

Thanks in advance. Regards.

How Facebook Messenger Web App disable CSS or Javascript browser add-on or extension?

I am looking for how to disable css or javascript code injection of the browsers’ plugins in our web app.

As an example, when we use Facebook’s messenger app at www.messenger.com, the site disables most of the browser’s plugins or extensions. How can I implement such control in our web app?

Thanks in advance. Regards.

Limit of the number of HTTP requests that can be sent to Facebook without being banned or getting captcha

I am building a Chrome Extension that needs to send around 10 HTTP GET requests on behalf of the user, to different web pages on Facebook. This is supposed to happen around once a week (so basically, 10 requests a week).

So my question is, is there a known limit to the number of times that I can send HTTP GET requests (using XMLHttpRequest in JavaScript) to Facebook?
Does it raise ‘red flags’ at Facebook when they receive a number of requests all at the same time, by the same user?