Skip to content

Commit 97c5fd8

Browse files
committed
Fix for github changing class names
1 parent 9d832fa commit 97c5fd8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

github-projects.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ function already_saved(url) {
2727
function render_buttons() {
2828
if ($pagehead_actions) {
2929
var url = window.location.href;
30-
var repo_name = document.querySelector('.entry-title [itemprop="name"]').innerText;
30+
var repo_name = document.querySelector('.repohead-details-container h1 [itemprop="name"]').innerText;
3131

3232
// remove button
3333
var $remove = document.createElement('button');
@@ -61,7 +61,7 @@ function render_buttons() {
6161
$add.classList.add('btn-sm');
6262

6363
$add.addEventListener('click', function() {
64-
var $entry_title = document.querySelector('.entry-title');
64+
var $entry_title = document.querySelector('.repohead-details-container h1');
6565
var repo = {
6666
url: url,
6767
name: repo_name,

manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"manifest_version": 2,
33
"name": "Github Projects",
44
"description": "Easily access your current Github projects",
5-
"version": "1.0.0",
5+
"version": "1.0.1",
66
"icons": {
77
"16": "icon16.png",
88
"48": "icon48.png",

0 commit comments

Comments
 (0)