Skip to content

Instantly share code, notes, and snippets.

// ==UserScript==
// @name Medium - Hide Featured
// @namespace http://tampermonkey.net/
// @version 0.3
// @description try to take over the world!
// @author You
// @match https://medium.com/*
// @grant none
// ==/UserScript==
@jonasjancarik
jonasjancarik / clickEvents.js
Created June 18, 2018 14:02
Gephi SVG interactivity
// Gephi SVG visualisation interactivity
$('.viz-view svg').click(function (event) {
// check if the click was on one of the SVG child elements
if (event.target !== this) {
// set the clicked element as the target (because 'this' is the parent SVG element)
var target = $(event.target);
// if the click is on an edge path