Guide how to add new sites or submit edits to the script
That is called PR (aka pull request), and it's very simple:
- Press on the script (
IMDb_Scout_Mod.user.js) -> press Edit button (pencil icon). [creates a fork for you automatically] - After you made edit[s] press
Commit changes->Propose changes->Create pull request->Create pull request.
Notes on PR:
Change PR's title, from default "Update IMDb_Scout_Mod.user.js" to something meaningful, like "Add Somesite" & ect. One site per one PR is preferred, but not mandatory. Would be good if you tested your stuff locally in your "Monkey" before submitting it here to the master.
Notes on the site configs:
The site configs go to these variables:
There goes the searchable sites/icons:
var public_sites
var private_sites
var chinese_sites
var french_sites
var german_sites
var usenet_sites
var subs_sites
var pre_databases
var other_sites
var streaming_sites
There goes the simple icons:
var icon_sites_main
There goes the sophisticated special "icons" (you need to know how to program to make one):
var special_buttons
Icons:
Here are steps how to make suitable 200 - 800 bytes icons:
- Search a web page source code for "icon" to find icons or it's as somesite.com/favicon.ico
- If there is no png icon then convert it to png: IrfanView or https://cloudconvert.com/ico-to-png
- Reduce png dimensions to 48x48 or 64x64 if higher, reduce colors to 2 - 8 ("Save for Web" in Photoshop).
- Remove meta and compress png: https://tinypng.com
- Get base64 code from png file: https://onlinepngtools.com/convert-png-to-base64
Note: "icon to png" and changing dimensions breaks transparency, transparency needs tweaking with Photoshop. or just make them without transparency if you don't know how to do it.
How to find seedingRegex / matchRegex:
how to do this from scratch
how to do this from scratch
Do you mean how to make a config entry for a new site? Look at the config entries of the already added sites, you can deduct from there.
Ask a specific question what you don't understand.
i want to add more sites there , if you need i may give you ss so that you can guide conveniently
i want to add more sites there , if you need i may give you ss so that you can guide conveniently
If you don't know at all how to proceed, then create a request for a site to be added: https://github.com/Purfview/IMDb-Scout-Mod/discussions/new?category=ideas