-
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:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |