Skip to content

Commit

Permalink
[fix] people page
Browse files Browse the repository at this point in the history
"cherry picked" from 
d4eaa99

Version bumped to 1.6.2
  • Loading branch information
ponsfrilus committed Sep 24, 2021
1 parent 0f6cce0 commit b3f4af7
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions EPFL_People.user.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// ==UserScript==
// @name EPFL People
// @version 1.6.1
// @version 1.6.2
// @description A script to improve browsing on people.epfl.ch
// @author EPFL-dojo
// @namespace EPFL-dojo
Expand Down Expand Up @@ -105,7 +105,8 @@ $(document).ready(async () => {
// Comfort, open admindata by default
unsafeWindow.toggleVis('admin-data')

const users = await getPeopleFromSearchAPI(document.title)
const name = document.title.match('(.*) — ');
const users = await getPeopleFromSearchAPI(name[1])
const user = users[0]
// console.log(user)
const sciper = user.sciper
Expand Down

0 comments on commit b3f4af7

Please sign in to comment.