sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

index.md (658B)


      1 Site Specific JS
      2 ================
      3 
      4 Description
      5 -----------
      6 
      7 This patch allows scripts to be injected based on the url matching
      8 a regex, allowing scripts to be site-specfic.
      9 
     10 It also can serve as a more complex replacement for the multijs patch.
     11 
     12 Configuration
     13 -------------
     14 
     15 In your `config.h`:
     16 
     17 	static char *scriptdir      = "~/.surf/scripts/";
     18 	static SiteSpecific scripts[] = {
     19         /* regexp                script in $scriptdir */
     20         { "://duckduckgo\\.com", "example.js" },
     21 	};
     22 
     23 Download
     24 --------
     25 
     26 * [surf-sitejs-20220214-94226b8.diff](surf-sitejs-20220214-94226b8.diff) (3.3k)
     27 
     28 Author
     29 ------
     30 
     31 * Avalon Williams <avalonwilliams@protonmail.com>