4chan browser v2.1.1

t. frosty fridge

# How to use it 

The prefab object hierarchy contains a **Browser** and a **BrowserController**. Drag the BrowserController somewhere out of sight. There should be only **one** BrowserController on a map. You can duplicate the Browser gameobject as many times as you would like in order to spawn multiple browsers. 

There should not be a significant performance difference between one Browser and multiple so feel free to spam them. Remember to duplicate the Browser gameobject, **NOT** the BrowserController.

You can resize and move around the individual browsers as you would like. The browsers have a proximity trigger enabled by default; if you open up the browser gameobject heiarchy you should see a ProximityTrigger gameobject which you can resize to resize the trigger box. 

# Settings

Settings are located on the BrowserController gameobject under the BrowserController script section. They have tooltips. 

The auto-refresh and auto-bottom settings only set the default; users may freely enable and disable those features locally using the buttons on the browser. 

# Notes
 
Thread rendering is paginated with a default setting of 100 posts per page. Note that the first time each page is rendered there may be a performance hit. This should only happen once globally per page as the data is cached. 

Enabling or disabling the BrowserController will enable and disable all of the browsers on the map. If you're making use of that with your own scripts you'll also need to use network to make sure late joiners are synced, but I'm sure you can handle that. 

# Changing the thread

Open up the browsercontroller object and edit the `String Url` and `Image Url` fields for text and image fetching. 

The api routes are 

`https://fortune.schizo.farm/api/thread/<board>/<search>/text`
`https://fortune.schizo.farm/api/thread/<board>/<search>/text`

Where <board> is the board and <search> is the thread to search for. 

example: `https://fortune.schizo.farm/api/thread/vg/vrg/text` searches for a thread named "vrg" on the board "vg"

## How thread searching works

Searching prioritizes the subject field and will return the first thread that has the search term in the thread subject. If no threads bearing the subject are found, then the first thread whose OP text contains the search term will be returned.

Yes, you can abuse this by spamming threads. 

# Acknowledgements

There is no code of conduct. There is no license. Do what you want. 

Direct any questions or complaints to 

Discord: Frosty Fridge
Matrix: @frostyfridge:schizo.farm

If you need something, know that I am significantly more likely to do you favors depending on what platform you contact me on btw.