Skip to content

Commit 113111c

Browse files
authored
Merge pull request #268 from peeringdb/patch-console-link
Update peeringdb-admin-console-link-on-frontpage.user.js
2 parents 3bda796 + 0de98f3 commit 113111c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

user.js/peeringdb-admin-console-link-on-frontpage.user.js

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// ==UserScript==
22
// @name PeeringDB - Admin Console Link on Frontpage
33
// @namespace https://www.peeringdb.com/
4-
// @version 2.1.4.20231228
4+
// @version 2.1.5.20240124
55
// @description Add direct link to the PeeringDB Admin Console from the frontpage to net/carrier/org/facility/ix
66
// @author <chriztoffer@PeeringDB.com>
77
// @match https://www.peeringdb.com/net/*
@@ -14,6 +14,7 @@
1414
// @grant none
1515
// @updateURL https://raw.githubusercontent.com/peeringdb/admincom/master/user.js/peeringdb-admin-console-link-on-frontpage.user.js
1616
// @downloadURL https://raw.githubusercontent.com/peeringdb/admincom/master/user.js/peeringdb-admin-console-link-on-frontpage.user.js
17+
// @supportURL https://github.com/peeringdb/admincom
1718
// ==/UserScript==
1819

1920
(function() {
@@ -49,7 +50,7 @@
4950
go = 'https://www.peeringdb.com/cp/peeringdb_server/' + goto + '/' + id + '/change/';
5051

5152
/* Select parent for where to append child */
52-
parent = document.querySelector('#view > div:nth-child(4) > div > div > div.col-md-4.col-sm-4.col-2.right.button-bar > div:nth-child(1)');
53+
parent = document.querySelector('div.right.button-bar > div:first-child');
5354

5455
/* Define child and append element to parent */
5556
let copyBtnLabel = 'Admin Console';

0 commit comments

Comments
 (0)