From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Yuri Khan Newsgroups: gmane.emacs.devel Subject: Re: Add a commit hash (first 6 chars) column to cgit webpage? Date: Tue, 23 Oct 2018 00:49:36 +0700 Message-ID: References: NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: blaine.gmane.org 1540230505 9130 195.159.176.226 (22 Oct 2018 17:48:25 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 22 Oct 2018 17:48:25 +0000 (UTC) Cc: Emacs developers To: Kaushal Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Oct 22 19:48:20 2018 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1gEeJP-0002I0-OW for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2018 19:48:19 +0200 Original-Received: from localhost ([::1]:36451 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEeLW-0004Vj-01 for ged-emacs-devel@m.gmane.org; Mon, 22 Oct 2018 13:50:30 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:56048) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gEeKu-00049L-7f for emacs-devel@gnu.org; Mon, 22 Oct 2018 13:49:52 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gEeKt-0002Fm-Eg for emacs-devel@gnu.org; Mon, 22 Oct 2018 13:49:52 -0400 Original-Received: from mail-oi1-x234.google.com ([2607:f8b0:4864:20::234]:37264) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gEeKt-0002ER-8R for emacs-devel@gnu.org; Mon, 22 Oct 2018 13:49:51 -0400 Original-Received: by mail-oi1-x234.google.com with SMTP id e17-v6so32940922oib.4 for ; Mon, 22 Oct 2018 10:49:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=GQrQ3ddL1uafYCjR1TJ5hH4C4EjnzESl7C7mk9VtcB8=; b=ZojAdc9z/LpYBbqyYg/ARuOkf5eOBsNCm8oNEOMQA32iUpkMC1j2LBgutCSFc0tCbc XEfe7yfImokuDn+uYjxM0qHSQnKdsfh0c6I8VURzUZbxijyqX1R62k08JZGghDoLwHMq n2X7fUdZLWpX8hbW1/dsHFP+233x6zjL6vhjtIdPejd2dQfbXtjOB6bmkzLhm4Dw4UNa qtSRLTqMs3JHLvg7db2OvrZsWjaFedJN+aYD7HZMIEu+ew7/+6t0Cq/X+bbG1e/q/iIm UGM0+v8dxmi61gwLcRiLgUY68RLqUOODbINKM1YNWnjtX2splgXlERlcEuNLkIYFjnlI GXLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=GQrQ3ddL1uafYCjR1TJ5hH4C4EjnzESl7C7mk9VtcB8=; b=ewab+La5Mn75hH6csVnDY8KAA3eS2u5iR4R3RVSCPDvyVLkOlimDhaGWpWAxkjF2pb +plSKzwNx+ZddTyQ4BjVzgkqntAgoc15hrdRWKAIJMBw3+fw7CgvmrgTLEo5j8GksD7f gbmKcnqDa/CYlFKFM4JihFx1EmLv8wKcjeVL0V0AvGS4UoHUGNugqgGb+lzU6a2CvquR v/91Ru7rtRSfw5fxA9ERm/IMAPbqIug+eeZURdz5atK5twk4g8i8FRD2cNiQaU5zhHph RAMI/5h0RBj9Hh7+UyNgsHj7aL8uoqzD3omoSsAaMi+AB8N1vp05F/NOw6lnphmVqiOT KwfQ== X-Gm-Message-State: ABuFfojxen8336HOWJ7+L1n7cjUyxJo8s1wEoaJCOak7qug6vDpKuZ++ rF6EwOBI7c3pkMyA0wxnK/Dvg6V8+IcuBheW5pgPMgxk X-Google-Smtp-Source: ACcGV639ldWejZus6lIos2cJqHsruw2sNDXZf36MjlPq7lMU3GubvZnd9E/ozZjUNfNbcGX4+4GWHuFazGpt4DFX364= X-Received: by 2002:aca:df45:: with SMTP id w66-v6mr21238783oig.143.1540230589885; Mon, 22 Oct 2018 10:49:49 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2607:f8b0:4864:20::234 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:230568 Archived-At: On Mon, Oct 22, 2018 at 11:52 PM Kaushal Modi wrot= e: > I recently noticed that this Greasemonkey script has stopped working > (the Hash commit doesn't get auto-inserted). I made a failed attempt > at understanding the script and fixing it. > > Probably something changed in the cgit web format and hopefully this > is an easy fix for you. Still works for me with Firefox 62 and Violentmonkey 2.9.7. (I migrated to Violentmonkey during the Firefox 57 Time of Troubles, when Greasemonkey was not yet ported to the WebExtension API.) I can offer a few debugging suggestions: * See if your Greasemonkey is up-to-date. * See if the script runs. To do that, add a =E2=80=9Cconsole.log('foo')=E2= =80=9D at the top and save the script. Switch to the cgit tab, open the web developer toolbox with C-S-i or F12, and switch to the Console tab. Reload the page. You should see the =E2=80=9Cfoo=E2=80=9D line appear in th= e log. * If the script does not run, see if the URL you are visiting matches the @include directive in the script. You might have started accessing Savannah cgit over HTTPS; if that=E2=80=99s the case, add another @include line with an https URL pattern. * If the script runs, use your debugging skills to find where it fails, by adding console.log calls at key points. It=E2=80=99s no more difficult than bisecting an Emacs init :) (Except that instead of asking Emacs for docstrings you google for =E2=80=9Csite:developer.mozilla.= org Array.prototype.forEach=E2=80=9D.)