From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.ciao.gmane.io!not-for-mail From: Emanuel Berg via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help,gmane.emacs.w3m Subject: Re: [emacs-w3m:13607] Re: Browser Fingerprinting Date: Sat, 18 Apr 2020 03:46:22 +0200 Message-ID: <87zhb9efbl.fsf@ebih.ebihd> References: <87lfmx8frv.fsf@ebih.ebihd> <873694mu9f.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <20200417025514.5gotmp6vlvg3v25x@E15-2016.optimum.net> <87h7xio7dw.fsf@fliptop.i-did-not-set--mail-host-address--so-tickle-me> <20200417085716.vbfkk5ibchc74ev5@E15-2016.optimum.net> <20200417093538.GB3844@tuxteam.de> <87369153c7.fsf@t510.orion.oneofus.la> <87wo6d3jmd.fsf@t510.orion.oneofus.la> Reply-To: Emanuel Berg Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="ciao.gmane.io:159.69.161.202"; logging-data="59481"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) Cc: emacs-w3m@namazu.org To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:m+WBnyXHsWrD7q73K67Y+TBwJXM= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sat Apr 18 03:47:24 2020 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1jPcZo-000FO7-8G for geh-help-gnu-emacs@m.gmane-mx.org; Sat, 18 Apr 2020 03:47:24 +0200 Original-Received: from localhost ([::1]:53746 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPcZn-0002aO-81 for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 17 Apr 2020 21:47:23 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47494) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jPcZB-0002Y5-6o for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 21:46:46 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jPcZ7-0003IF-Ld for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 21:46:43 -0400 Original-Received: from ciao.gmane.io ([159.69.161.202]:47378) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jPcZ2-00039K-7N for help-gnu-emacs@gnu.org; Fri, 17 Apr 2020 21:46:36 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1jPcZ0-000EaL-1C for help-gnu-emacs@gnu.org; Sat, 18 Apr 2020 03:46:34 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Followup-To: gmane.emacs.help Mail-Copies-To: never X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 159.69.161.202 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:122877 gmane.emacs.w3m:10495 Archived-At: Vladimir Sedach wrote: >> A while back I tried setting w3m-user-agent to >> a recent Firefox user-agent string. Some websites >> (YouTube is one example I recall) started returning >> different pages that assumed JavaScript and AJAX and >> were no longer usable in emacs-w3m. > > I should have checked my configuration before posting > the above. emacs-w3m has an option to send different > user agent strings to specified domains. Example from > my current configuration: > > (setq w3m-user-agent > "Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0" > w3m-user-agent-site-specific-alist > '(("youtube.com" . "Emacs-w3m/1.4.620 w3m/0.5.3"))) You can still, with w3m-user-agent nil even for YouTube, use Emacs-w3m to get URLs and then use mpv(1) to play them. It is better for other reasons as well as mpv is configurable and generally just more powerful than the web UI. Here is a guy who does videos on fixed gear bicycles. Note that the videos will just keep playing, so it is also less fiddly as you don't have to get a new videos all the time, and when you had enough, just hit SPC to pause (or Q to quit, with the option save-position-on-quit [1]). bike () { mpv 'https://www.youtube.com/channel/UCrkVFY8V-H_JEH-Nv7ylN5g' } And here is live news from Australian TV, ABC: abc () { mpv 'https://www.youtube.com/watch?v=WsRUC73L-MA' } [1] https://dataswamp.org/~incal/conf/mpv/mpv.conf https://dataswamp.org/~incal/conf/mpv/input.conf -- underground experts united http://user.it.uu.se/~embe8573 https://dataswamp.org/~incal