One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
| usage: | |
| ------ | |
| // include codemirror.js, addon/mode/overlay.js | |
| // include async typo.js from https://github.com/cfinke/Typo.js/pull/45 | |
| // include loadTypo.js from: https://github.com/cfinke/Typo.js/pull/50 | |
| // loading typo + dicts takes a while so we start it first | |
| // hosting the dicts on your local domain will give much faster loading time | |
| // english dictionaries taken from https://github.com/cfinke/Typo.js/pull/47 |
| Going over the usually recommended 'classes' solutions I ended up dissatisfied with all of them, mainly: | |
| - using ES6 class, I have no real private variables/methods and my code is full with this._ which is really ugly | |
| - using the crockford way, private methods have this unaassigned (or ===window) which is very confusing and | |
| error prone and need the 'that=this' hack thing to work properly | |
| - other soloutions ie weakmaps and symbols create complicated ugly code | |
| - in any of the above ways it is hard to have a clear view of the public interface of the class |
Install firefox
Install GreaseMonkey (https://www.greasespot.net)
Start firefox and go to your FB marketplace
In top-right dropdown select "Switch to Classic Facebook" (if you were on the new look)
run your marketplace search (ie https://www.facebook.com/marketplace/category/exercise-fitness/?sort=CREATION_TIME_DESCEND)
Click the GreaseMonkey icom (firefox top-right monkey face) and select 'New user script...'
In the editor paste the following script:
| namespace System.Net.Http { | |
| // holds the non disposable parts of HttpResponseMessage | |
| public record HttpResponseInfo(HttpResponseHeaders Headers, bool IsSuccessStatusCode, string? ReasonPhrase, HttpStatusCode HttpStatusCode, HttpResponseHeaders TrailingHeaders, Version Version); | |
| // holds Http exception information | |
| public record HttpExceptionInfo(string ErrorMessage, WebExceptionStatus? WebExceptionStatus); | |
| public record HttpResponse { | |
| public HttpResponseInfo? HttpResponseInfo { get; init; } |