Skip to content

Instantly share code, notes, and snippets.

@sidthesloth92
Last active November 22, 2018 11:17
Show Gist options
  • Save sidthesloth92/296a2ea2e148826def57ee4cfb13883c to your computer and use it in GitHub Desktop.
Save sidthesloth92/296a2ea2e148826def57ee4cfb13883c to your computer and use it in GitHub Desktop.
NVE - Three Finger Tap JS

Instructions

  • Right Click on the Bookmarks bar
  • Click on Add Page
  • Copy the contents of script.js and paste it as the value of URL text box. Hit Save.
  • Navigate to JIRA issues filter page and click on the saved bookmark once. You will get an alert. Hover over any issue number or title in and Enjoy the awesomeness.. 🎊
javascript:(function() {
var link = document.createElement('link');
link.setAttribute('rel', 'stylesheet');
link.setAttribute('href', 'https://unpkg.com/three-finger-tap-js@1.3.2/dist/css/threeFingerTap.min.css');
document.body.appendChild(link);
var script = document.createElement('script');
script.src = 'https://unpkg.com/three-finger-tap-js@1.3.2/dist/js/threeFingerTap.min.js';
script.onload = mainFunction;
document.body.appendChild(script);
function mainFunction() {
var ticketLinks = [ ...Array.from(document.querySelectorAll(".summary a.issue-link")),
...Array.from(document.querySelectorAll(".issuekey a.issue-link"))];
ticketLinks.forEach((ticketLink) => {
ticketLink.classList.add('three-finger-tap');
});
threeFingerTap.init({
name : 'three-finger-tap',
hoverTimeout : 1000
});
alert("Three Finger Tap JS Initialized");
}
})()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment