Skip to content

Commit

Permalink
fix Uncaught TypeError and update metadata (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
Oreoxmt authored May 22, 2023
1 parent 3a24613 commit 2b1286c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion gh-util.user.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
// ==UserScript==
// @name Octopus GitHub
// @version 0.3
// @version 0.4
// @description A userscript for GitHub
// @author Oreo
// @homepage https://github.com/Oreoxmt/octopus-github
// @updateURL https://github.com/Oreoxmt/octopus-github/raw/main/gh-util.user.js
// @downloadURL https://github.com/Oreoxmt/octopus-github/raw/main/gh-util.user.js
// @supportURL https://github.com/Oreoxmt/octopus-github
// @match https://github.com/*/pulls*
// @match https://github.com/*/pull/*
// @grant none
Expand Down Expand Up @@ -74,6 +78,9 @@
// First, find the "table-list-header-toggle" div
var toggleDiv = document.querySelector('.table-list-header-toggle.float-right');

if (!toggleDiv) {
return;
}
// Next, create a button element and add it to the page
var button = document.createElement('button');
button.innerHTML = 'Comment';
Expand Down

0 comments on commit 2b1286c

Please sign in to comment.