Skip to content

fix #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Oct 22, 2020
Merged

fix #129

Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions github-html-preview.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
"use strict";
// Example page: https://github.com/codrops/DecorativeLetterAnimations
// Source: https://github.com/htmlpreview/htmlpreview.github.com
const prefix = "http://htmlpreview.github.io/?";
const prefix = "https://htmlpreview.github.io/?";
// html & htm extensions
const regex = /\.html?$/;

Expand All @@ -33,7 +33,7 @@
</svg>`;

function addLink(el) {
const cell = el.closest(".js-navigation-item div[role='rowheader'] span");
const cell = el.closest(".js-navigation-item div[role='rowheader']");
if (cell && !$(".ghhp-btn", cell)) {
const preview = link.cloneNode(true);
preview.href = prefix + el.href;
Expand Down