NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Gitlab Board Popovers // @namespace https://openuserjs.org/users/antisol // @copyright 2018, antisol (https://openuserjs.org//users/antisol) // @license MIT // @version 0.1 // @description Clicking on a gitlab board issue title opens that issue in a popover iframe, rather than simply linking to it. // @author AntiSol // @match *://gitlab.com/*/boards* // @grant none // ==/UserScript== (function() { 'use strict'; $(document).ready(function() { $('div.boards-list').on('click','li.board-card a',function(evt) { $('div#dm-popover').remove(); var url = evt.target.href; $('body').append('<div id="dm-popover" style="position:absolute;left:0px;top:0px;width:100%;height:98%;background:rgba(0,0,0,0.5);opacity:0"><iframe style="width:50%;height:100%;margin-left:25%;" src="' + url + '"></iframe></div>'); $('div#dm-popover').animate({opacity:1},'slow').click(function() { $('div#dm-popover').fadeOut('slow',function() { $('div#dm-popover').remove(); }); }); return false; }); }); })();