Skip to content

Commit

Permalink
If the user has the "grid" layout bail out for now
Browse files Browse the repository at this point in the history
Works around but doesn't fix #49 yet. Can't progress until Google roll
it out to everyone (or me, at least)
  • Loading branch information
DanSmith70 committed Jul 20, 2015
1 parent 72c84b1 commit 15be71b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions data/app/grid.js
Original file line number Diff line number Diff line change
Expand Up @@ -234,6 +234,13 @@ YTG.grid = (function (YTG, grid) {
{
var gridablePages = ['/feed/subscriptions', '/feed/SC']; // '/feed/watch_later', '/feed/history',

// Are we seeing YT's grid layout? Bail out and don't touch the page for now
// need to see what we can do.
if ($('.yt-shelf-grid-item').length > 0)
{
return false;
}

// First off, we never ever (yet) want to
// gridify an activity page.
if (url.indexOf('/activity') !== -1)
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Subscriptions Grid For YouTube™",
"version": "1.12",
"version": "1.12.1",
"manifest_version": 2,
"minimum_chrome_version" : "17",
"description": "Transforms Youtube's broken feed subscription page and restore it to it's former grid glory.",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"description": "Transforms Youtube's broken feed subscription page and restore it to it's former grid glory.",
"author": "Bulk70",
"license": "MPL 2.0",
"version": "1.12",
"version": "1.12.1",
"main": "firefox.js",
"icon": "data/assets/icon-48.png",
"icon64": "data/assets/icon-64.png"
Expand Down

0 comments on commit 15be71b

Please sign in to comment.