Adjust UserAgent - pkgsrc-localpatches - leot's pkgsrc LOCALPATCHES
 (HTM) hg clone https://bitbucket.org/iamleot/pkgsrc-localpatches
 (DIR) Log
 (DIR) Files
 (DIR) Refs
       ---
 (DIR) changeset 54b1a71742f2a5a0f5043ef10d4fe45dc8ce3dae
 (DIR) parent eae716b2fb06c6806140ea5fd5cb28871ea032c1
 (HTM) Author: Leonardo Taccari <iamleot@gmail.com>
       Date:   Sat,  8 Jun 2019 19:34:47 
       
       Adjust UserAgent
       
       Diffstat:
        wip/surf-git/patch-config.h |  16 ++++++++++++----
        1 files changed, 12 insertions(+), 4 deletions(-)
       ---
       diff -r eae716b2fb06 -r 54b1a71742f2 wip/surf-git/patch-config.h
       --- a/wip/surf-git/patch-config.h       Sat Jun 08 18:18:20 2019 +0200
       +++ b/wip/surf-git/patch-config.h       Sat Jun 08 19:34:47 2019 +0200
       @@ -1,6 +1,6 @@
        --- /dev/null  2019-06-08 18:14:46.479402408 +0200
        +++ config.h   2019-06-08 18:14:37.992108174 +0200
       -@@ -0,0 +1,219 @@
       +@@ -0,0 +1,227 @@
        +/* modifier 0 means no modifier */
        +static int surfuseragent    = 0;  /* Append Surf version to default WebKit user agent */
        +static char *fulluseragent  = ""; /* Or override the whole user agent string */
       @@ -57,9 +57,17 @@
        +};
        +
        +static UriParameters uriparams[] = {
       -+      { "(://|\\.)suckless\\.org(/|$)", {
       -+        [JavaScript] = { { .i = 0 }, 1 },
       -+        [Plugins]    = { { .i = 0 }, 1 },
       ++      { "://ilmanifesto\\.it/", {
       ++        [UserAgent] = { { .v = "Googlebot-News" }, 1 },
       ++      }, },
       ++      { "://www\\.haaretz\\.com/", {
       ++        [UserAgent] = { { .v = "Googlebot-News" }, 1 },
       ++      }, },
       ++      { "://(mobile\\.)?twitter\\.com/", {
       ++        [UserAgent] = { { .v = "curl/7.65.1" }, 1 },
       ++      }, },
       ++      { "://www\\.youtube\\.com/", {
       ++        [UserAgent] = { { .v = "curl/7.65.1" }, 1 },
        +      }, },
        +};
        +