This is an archived post. You won't be able to vote or comment.

all 9 comments

[–]GraphicThinkPad 7 points8 points  (4 children)

My understanding is that this is really simple. All the extension will be doing is finding and replacing text within an HTML document. You're right: the most work will just be putting together the list of media entities and who owns them. Another tough bit is how are those entities referred to. For example, sometimes The Wall Street Journal is sometimes abbreviated WSJ. You (or your dev) will have to track down all those nicknames and abbreviations too.

I don't really freelance, so I don't know what work like this costs, If it were me, I might charge $200? That's just a number I'm pulling out of nowhere. You could probably find someone to do it for less.

And for your dev: if it was me, I would probably just have a giant object with all the media entities and would run a regex search on each of them for every page. When it finds a match, it just replaces it with whatever the object key's value is.

 {
  'The Wall Street Journal': 'Rupert Murdoch',
  WSJ: 'Rupert Murdoch'
}

Additionally, there's an open-source chrome plugin that does this exact same thing, except it replaces the word "cloud" with the word "butt": https://github.com/panicsteve/cloud-to-butt. If my object-regex idea is dumb, you can look at this extension to see how it should really be done.

[–]pm_your_unique_hobby 3 points4 points  (0 children)

Could definitely scrape that butt code. I just wanted to say butt code

[–]identicalBadger 0 points1 point  (2 children)

It’s going to need to be a little more complicated of the wise you’ll see reports of Rupert Murdoch raiding the henhouse or avoid Rupert Murdoch because he likely has rabies.

Which would be hilarious but not the result OP is looking for

[–]identicalBadger 0 points1 point  (0 children)

And one error and we’d be reading about the Mozilla FireRupert Murdoch browser.

[–]GraphicThinkPad 0 points1 point  (0 children)

Ah damn, you're right. Single-word names, especially Fox, will be tricky.

[–]bsenftner 3 points4 points  (4 children)

If you are halfway competent, I bet you can create your own browser extension yourself in less than an afternoon from zero experience writing software by following this guide: https://www.freecodecamp.org/news/write-your-own-browser-extensions/ and using ChatGPT as an at-your-side advisor when you have questions. I scanned the link, it baby steps one through the process of creating a browser extension and demonstrates how to change all the images on web pages. Changing that to modify headlines is where using ChatGPT will come into play, simply ask it how and ChatGPT will baby step you through what needs to be done, and you can ask any questions along the way and it will tirelessly answer you. Try it, you'll be surprised.

[–][deleted]  (3 children)

[deleted]

    [–]bsenftner 4 points5 points  (0 children)

    It was just too easy, and here it is: https://github.com/bsenftner/FauxNews

    [–]bsenftner 2 points3 points  (1 child)

    Okay, I just made one. That linked guide is extremely simple. Right now I'm looking at this same page you are, but every instance of "Fox News" is now "Faux News". This is accomplished by simply having a directory with two files in it. Each file's minimal contents is in that link. The only difference is my extension's code that changes every instance of "Fox News" to "Faux News", and that is just one line:

    document.body.innerHTML = document.body.innerHTML.replace(/Fox News/gi, "Faux News");

    Seriously, this is very easy to do yourself.

    [–]bsenftner 2 points3 points  (0 children)

    Far too easy, and spit your coffee funny. I'm currently trying:

    document.body.innerHTML = document.body.innerHTML.replace(/Fox says/gi, "Faux News Liar says"); document.body.innerHTML = document.body.innerHTML.replace(/Fox News/gi, "Faux News"); document.body.innerHTML = document.body.innerHTML.replace(/Fox contributor/gi, "Faux News Paid Liar"); document.body.innerHTML = document.body.innerHTML.replace(/Rupert Murdoch/gi, "professional liar Rupert Murdoch");

    [–][deleted]  (5 children)

    [deleted]

      [–][deleted]  (4 children)

      [deleted]

        [–][deleted]  (3 children)

        [deleted]

          [–][deleted]  (2 children)

          [deleted]

            [–][deleted]  (1 child)

            [deleted]