Using TamperMonkey to preprocess a webpage before using a Safari extension [failed experiment]

bear
research process
safari
I tried to use TamperMonkey to clean crud from a web page before it being sent to Bear App using the Bear App extension, but it didn’t work.
Published

December 19, 2024

I have been doing a lot of experiments related to my research process, in this case - how best to get an article into Bear App. Bear App has a Safari extension, but if you go to a web page and click on that, you tend to get a lot of unwanted craft. Especially with Wikipedia articles, I just want the text, and not all the footnotes and internal links.

I struck on the idea of using Tampermonkey (3GBP in the App store), which is a Safari extension version of GreaseMonkey, allowing the automatic execution of bespoke Javascripts on web pages. The scripts tend to be fairly simple, so I thought I could get ChatGPT to write them, to remove all the unwanted crud. Getting ChatGPT to write the script worked well, the problem was I discovered that the Bear App Safari extension gets a new version of a web page, and does not read the version in the browser.

I could potentially still use this method if I develop other methods to get pages from Safari into Bear, but this particular idea didn’t work.