File tree 1 file changed +3
-2
lines changed
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change 1
1
// ==UserScript==
2
2
// @name PeeringDB - Admin Console Link on Frontpage
3
3
// @namespace https://www.peeringdb.com/
4
- // @version 2.1.4.20231228
4
+ // @version 2.1.5.20240124
5
5
// @description Add direct link to the PeeringDB Admin Console from the frontpage to net/carrier/org/facility/ix
6
6
// @author <chriztoffer@PeeringDB.com>
7
7
// @match https://www.peeringdb.com/net/*
14
14
// @grant none
15
15
// @updateURL https://raw.githubusercontent.com/peeringdb/admincom/master/user.js/peeringdb-admin-console-link-on-frontpage.user.js
16
16
// @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
17
18
// ==/UserScript==
18
19
19
20
( function ( ) {
49
50
go = 'https://www.peeringdb.com/cp/peeringdb_server/' + goto + '/' + id + '/change/' ;
50
51
51
52
/* 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' ) ;
53
54
54
55
/* Define child and append element to parent */
55
56
let copyBtnLabel = 'Admin Console' ;
You can’t perform that action at this time.
0 commit comments