-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathEPFL_Github.user.js
More file actions
25 lines (21 loc) · 1.46 KB
/
EPFL_Github.user.js
File metadata and controls
25 lines (21 loc) · 1.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
// ==UserScript==
// @name EPFL Github
// @namespace EPFL
// @description A script to add shortcut icon to some valuable repositories on Github
// @include https://github.com/*
// @require https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js
// @author ponsfrilus
// @downloadURL https://raw.githubusercontent.com/ponsfrilus/EPFL_Github_UserScript/master/EPFL_Github.user.js
// @version 0.0.2
// ==/UserScript==
// Avoid conflicts
this.$ = this.jQuery = jQuery.noConflict(true);
$(document).ready( function() {
console.log("... EPFL Github User script loaded ...");
// Insert a link to EPFL STI-IT
$( '.header-logo-invertocat' ).before( '<a class="header-logo-epfl-sti-it" href="https://github.com/epfl-sti/"><img height="32" width="32" src="https://raw.githubusercontent.com/ponsfrilus/EPFL_Github_UserScript/master/img/epfl-stiit.png" /></a> ' );
// Insert a link to EPFL-Dojo
$( '.header-logo-invertocat' ).before( '<a class="header-logo-epfl-dojo" href="https://github.com/epfl-dojo/"><img height="32" width="32" src="https://raw.githubusercontent.com/ponsfrilus/EPFL_Github_UserScript/master/img/epfl-dojo.png" /></a> ' );
// Insert a link to EPFL's topic
$( '.header-logo-invertocat' ).before( '<a class="header-epfl-topic" href="https://github.com/topics/epfl"><img height="32" width="32" src="https://raw.githubusercontent.com/ponsfrilus/EPFL_Github_UserScript/master/img/epfl-topic.png" /></a> ' );
});