all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Yuri Khan <yurivkhan@gmail.com>
To: Kaushal <kaushal.modi@gmail.com>
Cc: Emacs developers <emacs-devel@gnu.org>
Subject: Re: Add a commit hash (first 6 chars) column to cgit webpage?
Date: Tue, 23 Oct 2018 00:49:36 +0700	[thread overview]
Message-ID: <CAP_d_8WKoPRoZjmOvfEjkQZvyWWYe5cFzmZxLmKVSoZjs1TsPw@mail.gmail.com> (raw)
In-Reply-To: <CAFyQvY1fQmBdvumhdUPxubtmiwKyhQ702EEkG7-nOgQs9KYRsg@mail.gmail.com>

On Mon, Oct 22, 2018 at 11:52 PM Kaushal Modi <kaushal.modi@gmail.com> wrote:

> 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 “console.log('foo')” 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 “foo” line appear in the 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’s 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’s no more
difficult than bisecting an Emacs init :) (Except that instead of
asking Emacs for docstrings you google for “site:developer.mozilla.org
Array.prototype.forEach”.)



  reply	other threads:[~2018-10-22 17:49 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-05-03 14:37 Add a commit hash (first 6 chars) column to cgit webpage? Kaushal Modi
2016-05-03 14:57 ` Eli Zaretskii
2016-05-04  3:05   ` Kaushal Modi
2016-05-04 14:52     ` Eli Zaretskii
2016-05-04 15:12 ` Yuri Khan
2016-05-04 15:16   ` Kaushal Modi
2016-05-05 12:15     ` Yuri Khan
2016-05-05 16:42       ` Kaushal Modi
2018-10-22 16:51         ` Kaushal Modi
2018-10-22 17:49           ` Yuri Khan [this message]
2018-10-22 18:00             ` Kaushal Modi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAP_d_8WKoPRoZjmOvfEjkQZvyWWYe5cFzmZxLmKVSoZjs1TsPw@mail.gmail.com \
    --to=yurivkhan@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=kaushal.modi@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.