NOTICE: By continued use of this site you understand and agree to the binding Terms of Service and Privacy Policy.
// ==UserScript== // @name Targeek Atlasian Tabs // @namespace http://tampermonkey.net/ // @version 0.2.0 // @description try to take over the world! // @author Dương Đỗ // @copyright 2018, duongdev (https://openuserjs.org/users/duongdev) // @license MIT // @updateURL https://openuserjs.org/meta/duongdev/Targeek_Atlasian_Tabs.meta.js // @include https://jira.targeek.io/* // @include https://bitbucket.org/targeek/* // @include https://confluence.targeek.io/* // @grant none // ==/UserScript== (function () { 'use strict'; if (window.location.href.includes('//jira.targeek.io')) { window.name = '__jira_targeek__' } if (window.location.href.includes('//bitbucket.org')) { window.name = '__bbucket_targeek__' } if (window.location.href.includes('//confluence.targeek.io')) { window.name = '__confluence_targeek__' } $("body").on("click", "a", function (e) { const href = e.target.href if (!window.location.href.includes('//bitbucket.org/targeek') && href.includes('//bitbucket.org/targeek')) { e.preventDefault() window.open(href, '__bbucket_targeek__') } if (!window.location.href.includes('//jira.targeek.io') && href.includes('//jira.targeek.io')) { e.preventDefault() window.open(href, '__jira_targeek__') } if (!window.location.href.includes('//confluence.targeek.io') && href.includes('//confluence.targeek.io')) { e.preventDefault() window.open(href, '__confluence_targeek__') } }); })();