IMDb-Scout-Mod
IMDb-Scout-Mod copied to clipboard
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 edit 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.