Skip to content

Instantly share code, notes, and snippets.

Weechat Highlight Monitoring Without Script

Requires at least Weechat 1.0 with Trigger and Exec plugin.

This gist is not intended to make [highmon.pl][1] or [any other highlight monitoring script][2] obsolete. Trigger is very limited. It can't do complex stuffs. We will only create the basic function of highlight monitoring: collect lines that contain highlight and put them all in a buffer.

First we need a trigger that will active everytime there's line printed on weechat's buffer.

diff --git a/css/terriblename.css b/css/terriblename.css
index 8f6c46f..a3cf5a5 100644
--- a/css/terriblename.css
+++ b/css/terriblename.css
@@ -1797,6 +1797,7 @@ ul.report-reasons > li.report-reason {
display: none;
}
+.side .md-container h1,
.sidecontentbox > .title {
@unzan
unzan / voat-without-dnd.js
Created July 17, 2015 14:48
Disable "Share Link" via drag and drop in Voat
// ==UserScript==
// @name Voat without DND
// @namespace https://github.com/unzan
// @description Disable "Share Link" via drag and drop in Voat
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js
// @include https://voat.co/*
// @version 1
// @grant none
// ==/UserScript==