Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Guide how to add new sites or submit edits to the script #209

Open
Purfview opened this issue Feb 21, 2024 · 0 comments
Open

Guide how to add new sites or submit edits to the script #209

Purfview opened this issue Feb 21, 2024 · 0 comments

Comments

@Purfview
Copy link
Owner

Purfview commented Feb 21, 2024

That is called PR (aka pull request), and it's very simple:

  1. Press on the script (IMDb_Scout_Mod.user.js) -> press Edit button (pencil icon). [creates a fork for you automatically]
  2. 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:

  1. Search a web page source code for "icon" to find icons or it's as somesite.com/favicon.ico
  2. If there is no png icon then convert it to png: IrfanView or https://cloudconvert.com/ico-to-png
  3. Reduce png dimensions to 48x48 or 64x64 if higher, reduce colors to 2 - 8 ("Save for Web" in Photoshop).
  4. Remove meta and compress png: https://tinypng.com
  5. 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant