Compare commits

...

3 Commits
1.2.0 ... 1.2.1

Author SHA1 Message Date
Ajay Ramachandran
2c19da2117 Merge pull request #201 from ajayyy/experimental-ajay
Fixed channel whitelisting on old YouTube
2019-12-19 01:06:48 -05:00
Ajay Ramachandran
7ee1cc911f Increase version number. 2019-12-19 01:05:11 -05:00
Ajay Ramachandran
36078acaee Fixed channel whitelisting on old YouTube. 2019-12-19 00:46:37 -05:00
2 changed files with 5 additions and 8 deletions

View File

@@ -500,14 +500,11 @@ function getChannelID() {
//get channel id
let channelNameContainer = document.getElementById("channel-name");
if (channelNameContainer === null) {
//try later
return false;
}
let channelURLContainer = null;
let channelURLContainer = channelNameContainer.querySelector("#container").querySelector("#text-container").querySelector("#text").firstElementChild;
if (channelURLContainer === null) {
if (channelNameContainer !== null) {
channelURLContainer = channelNameContainer.querySelector("#container").querySelector("#text-container").querySelector("#text").firstElementChild;
} else {
//old YouTube theme
let channelContainers = document.getElementsByClassName("yt-user-info");
if (channelContainers.length != 0) {

View File

@@ -1,7 +1,7 @@
{
"name": "__MSG_fullName__",
"short_name": "__MSG_Name__",
"version": "1.2.0",
"version": "1.2.1",
"default_locale": "en",
"description": "__MSG_Description__",
"content_scripts": [