Add site-specific styles - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 5286e832e09100cad24b7d06d9bf288b1259da3f
 (DIR) parent 03f5faff8a5cfb2b5a522f06a409a5a5162c7266
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Mon,  3 Jun 2019 18:41:40 
       
       Add site-specific styles
       
       Diffstat:
        wip/surf-git/patch-config.h |  24 +++++++++++++++++++-----
        1 files changed, 19 insertions(+), 5 deletions(-)
       ---
       diff -r 03f5faff8a5c -r 5286e832e091 wip/surf-git/patch-config.h
       --- a/wip/surf-git/patch-config.h       Mon Jun 03 18:00:43 2019 +0200
       +++ b/wip/surf-git/patch-config.h       Mon Jun 03 18:41:40 2019 +0200
       @@ -1,6 +1,6 @@
       ---- /dev/null  2019-06-02 00:47:02.456044340 +0200
       -+++ config.h   2019-06-02 00:35:06.765979012 +0200
       -@@ -0,0 +1,194 @@
       +--- /dev/null  2019-06-03 18:40:00.341169522 +0200
       ++++ config.h   2019-06-03 18:39:16.301339328 +0200
       +@@ -0,0 +1,208 @@
        +/* modifier 0 means no modifier */
        +static int surfuseragent    = 0;  /* Append Surf version to default WebKit user agent */
        +static char *fulluseragent  = "Mozilla/5.0 (Windows NT 6.1; rv:60.0) Gecko/20100101 Firefox/60.0"; /* Or override the whole user agent string */
       @@ -109,8 +109,22 @@
        + * the list.
        + */
        +static SiteSpecific styles[] = {
       -+      /* regexp               file in $styledir */
       -+      { ".*",                 "default.css" },
       ++      /* regexp                               file in $styledir */
       ++      { "://www\\.ft\\.com/",                 "economist.css" },
       ++      { "://www\\.economist\\.com/",          "ft.css" },
       ++      { "://github\\.com/",                   "github.css" },
       ++      { "://www\\.internazionale\\.it/",      "internazionale.css" },
       ++      { "://hackernoon\\.com/",               "medium.css" },
       ++      { "://medium\\.com/",                   "medium.css" },
       ++      { "://nvd\\.nist\\.gov/",               "nvd.css" },
       ++      { "://www\\.nytimes\\.com/",            "nytimes.css" },
       ++      { "://www\\.ondarock\\.it/",            "ondarock.css" },
       ++      { "://stackoverflow\\.com/",            "stackoverflow.css" },
       ++      { "://www\\.technologyreview\\.com/s/", "technologyreview.css" },
       ++      { "://www\\.theverge\\.com/",           "theverge.css" },
       ++      { "://mobile\\.twitter\\.com/",         "twitter.css" },
       ++      { "://www\\.wsj\\.com/amp/",            "wsj_amp.css" },
       ++      { ".*",                                 "default.css" },
        +};
        +
        +/* certificates */