Skip to content

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

@Purfview

Description

@Purfview

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 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:

  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.

How to find seedingRegex / matchRegex:

Guide - How to find and add seeding status for a site.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions