Skip to content
Closed
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion plugins/custom/domain-icon.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export default {
domain = m[2];
protocol = m[1];
} else {
// prevent self recursion for root domains like http://domain.com.
// prevent self recursion for root domains like https://domain.com.
return cb();
}

Expand Down
8 changes: 4 additions & 4 deletions plugins/domains/bandcamp.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,10 @@ export default {
"og-description"
]
},
"http://music.zackhemsey.com/album/ronin",
"http://music.zackhemsey.com/track/dont-get-in-my-way",
"https://music.zackhemsey.com/album/ronin",
"https://music.zackhemsey.com/track/dont-get-in-my-way",
"https://decembersongs.bandcamp.com/album/an-east-nashville-christmas",
"http://sonsofoflaherty.bandcamp.com/album/misc-songs",
"http://badsheeps.bandcamp.com/album/bad-sheeps" // doesn't have twitter player when not published
"https://sonsofoflaherty.bandcamp.com/album/misc-songs",
"https://badsheeps.bandcamp.com/album/bad-sheeps" // doesn't have twitter player when not published
]
};
30 changes: 14 additions & 16 deletions plugins/domains/bigthink.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,30 +4,28 @@ export default {
"*"
],

getData: function(ld, cheerio, cb) {
var $el = cheerio('head script[src*="cdn.jwplayer.com"]');
var player_re = /jwplayer.com\/libraries\/(\w+)\.js/i;
var media_re = /jwplayer.com\/v\d+\/media\/(\w+)\/poster\.jpg$/i;
getData: function(cheerio, cb) {
var $el = cheerio('mux-player[src*="cdn.jwplayer.com/manifests/"]');
var media_re = /cdn\.jwplayer\.com\/manifests\/(\w+)\.m3u8$/i;

if ($el.length > 0
&& player_re.test($el.attr('src'))
&& ld.article && ld.article.image
&& media_re.test(ld.article.image.url)) {
var src = $el.attr('src');
var match = src && src.match(media_re);

var player_id = $el.attr('src').match(player_re)[1];
var media_id = ld.article.image.url.match(media_re)[1];

cb (null, {
__promoUri: `https://content.jwplatform.com/players/${media_id}-${player_id}.html`
if (match) {
cb(null, {
__promoUri: `https://content.jwplatform.com/players/${match[1]}.html`
});
} else {
cb(null);
}
},

tests: [
"http://bigthink.com/videos/bre-pettis-on-makerbot-3-d-printing",
"http://bigthink.com/videos/vivek-wadhwa-every-industry-will-be-disrupted",
"https://bigthink.com/the-present/neil-degrasse-tyson-life-on-europa-jupiters-icy-moon/"
"https://bigthink.com/videos/bre-pettis-on-makerbot-3-d-printing",
"https://bigthink.com/videos/vivek-wadhwa-every-industry-will-be-disrupted",
"https://bigthink.com/the-present/neil-degrasse-tyson-life-on-europa-jupiters-icy-moon/",
"https://bigthink.com/the-present/how-can-cognitive-science-inform-the-future-of-education/",
"https://bigthink.com/the-present/systemic-racism-in-schools/",
"https://bigthink.com/series/the-big-think-interview/tiago-forte",
]
};
2 changes: 1 addition & 1 deletion plugins/domains/buzzfeed.com/buzzfeed.video.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ export default {
tests: [{
noFeeds: true
},
"http://www.buzzfeed.com/brentbennett/star-wars-cast-members-do-star-wars-impersonations#.idE4zm45aA"
"https://www.buzzfeed.com/brentbennett/star-wars-cast-members-do-star-wars-impersonations#.idE4zm45aA"
]
};
2 changes: 1 addition & 1 deletion plugins/domains/cnevids.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,6 @@ export default {

tests: [
"https://player.cnevids.com/embed/5670377e94c05f43e9000000/51097beb8ef9aff9f5000008",
"http://player-backend.cnevids.com/iframe/video/54c5640161646d294c080000"
"https://player-backend.cnevids.com/iframe/video/54c5640161646d294c080000"
]
};
6 changes: 3 additions & 3 deletions plugins/domains/codepen.io.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,9 @@ export default {
},

tests: [
"http://codepen.io/kevinjannis/pen/pyuix",
"http://codepen.io/nosecreek/details/sprDl",
"http://codepen.io/dudleystorey/pen/HrFBx",
"https://codepen.io/kevinjannis/pen/pyuix",
"https://codepen.io/nosecreek/details/sprDl",
"https://codepen.io/dudleystorey/pen/HrFBx",
"https://codepen.io/pen/vwOyvW"
]

Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/dailymotion.com/dailymotion.playlist.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export default {

// Canonical playlists are covered by oEmbed `http://www.dailymotion.com/services/oembed`
// Canonical playlists are covered by oEmbed `https://www.dailymotion.com/services/oembed`
re: [
/^https?:\/\/www\.dailymotion\.com\/embed\/playlist\/([a-zA-Z0-9]+)(?:\?.+)?$/i,
/^https?:\/\/geo\.dailymotion\.com\/player.html\?playlist=([a-zA-Z0-9]+)(?:&.+)?$/i,
Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/facebook.com/facebook.video.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export default {
},

tests: [
"http://www.facebook.com/video/video.php?v=4253262701205&set=vb.1574932468&type=2",
"https://www.facebook.com/video/video.php?v=4253262701205&set=vb.1574932468&type=2",
"https://business.facebook.com/KMPHFOX26/videos/10154356403004012/",
"https://www.facebook.com/sugarandsoulco/videos/1484037581637646/?pnref=story",
"https://www.facebook.com/watch/?v=235613163792499",
Expand Down
4 changes: 2 additions & 2 deletions plugins/domains/flickr.com/flickr.gallery.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ export default {
tests: [
{
// Flickr sets feed.
page: "http://www.flickr.com/photos/jup3nep/sets/",
page: "https://www.flickr.com/photos/jup3nep/sets/",
selector: "a.photo-list-album"
},
"http://www.flickr.com/photos/jup3nep/sets/72157603856136177/",
"https://www.flickr.com/photos/jup3nep/sets/72157603856136177/",
"https://www.flickr.com/photos/marshal-banana/albums/72157661935064149",
"https://www.flickr.com/photos/mediacult/albums/72157703180229901",
{
Expand Down
6 changes: 3 additions & 3 deletions plugins/domains/flickr.com/flickr.photo.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,11 @@ export default {
},

tests: [{
feed: "http://api.flickr.com/services/feeds/photos_public.gne"
feed: "https://api.flickr.com/services/feeds/photos_public.gne"
},
"http://www.flickr.com/photos/jup3nep/8243797061/?f=hp",
"https://www.flickr.com/photos/jup3nep/8243797061/?f=hp",
"https://www.flickr.com/photos/marshal-banana/23869537421",
"http://www.flickr.com/photos/gonzai/6027481335/in/photostream/",
"https://www.flickr.com/photos/gonzai/6027481335/in/photostream/",
{
skipMixins: [
"oembed-title",
Expand Down
4 changes: 2 additions & 2 deletions plugins/domains/google.com/maps.google.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ export default {
delete thumb_query.zoom;
}
links.push({
href: 'http://maps.googleapis.com/maps/api/staticmap?'+QueryString.stringify(thumb_query),
href: 'https://maps.googleapis.com/maps/api/staticmap?'+QueryString.stringify(thumb_query),
rel: CONFIG.R.thumbnail,
type: CONFIG.T.image
// And let's validate image = that API key allows static maps
Expand All @@ -165,7 +165,7 @@ export default {
/*
"https://maps.google.com/maps?saddr=Linz,+Austria&daddr=48.8674527,2.3531961+to:London,+United+Kingdom&hl=en&sll=49.843352,7.08885&sspn=5.930447,16.907959&geocode=Ffwa4QIdBvzZAClNhZn6lZVzRzHEdXlXLClTfA%3BFXyo6QIdLOgjACmptoaSEG7mRzHRA-RB5kIhIA%3BFa7_EQMd8Cv-_yl13iGvC6DYRzGZKtXdWjqWUg&oq=London&t=h&mra=dpe&mrsp=1&sz=7&via=1&z=7",
"https://maps.google.com.ua/maps?q=%D1%87%D0%BE%D1%80%D0%BD%D0%BE%D0%B1%D0%B8%D0%BB%D1%8C%D1%81%D0%BA%D0%B0+%D0%B0%D0%B5%D1%81&hl=uk&ie=UTF8&ll=51.376442,30.132086&spn=0.01539,0.022144&sll=48.33599,31.18287&sspn=16.793485,22.675781&t=h&hq=%D1%87%D0%BE%D1%80%D0%BD%D0%BE%D0%B1%D0%B8%D0%BB%D1%8C%D1%81%D0%BA%D0%B0+%D0%B0%D0%B5%D1%81&z=16",
"http://goo.gl/maps/WmfmA",
"https://goo.gl/maps/WmfmA",
"https://www.google.com/maps/preview#!q=hotel&data=!1m4!1m3!1d849587!2d29.1797946!3d47.0152013!2m1!1e3!4m10!1m9!4m8!1m3!1d849633!2d19.1797946!3d47.0152013!3m2!1i1920!2i937!4f13.1&fid=7"
*/
]
Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/hockeydb.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export default {
type: CONFIG.T.text_html,
rel: [CONFIG.R.app, CONFIG.R.ssl],
html:'<script type="text/javascript" src="https://www.hockeydb.com/em/?pid=' + urlMatch[1] + '"></script>',
// href: 'http://www.hockeydb.com/em/?pid=' + urlMatch[1],
// href: 'https://www.hockeydb.com/em/?pid=' + urlMatch[1],
'max-width': 604,
height: 414
}];
Expand Down
2 changes: 1 addition & 1 deletion plugins/domains/i.giphy.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ export default {
noFeeds: true,
skipMethods: ["getData"]
},
"http://i.giphy.com/10rNBP8yt1LUnm.gif",
"https://i.giphy.com/10rNBP8yt1LUnm.gif",
"https://media.giphy.com/media/3o6Zt09XtyqOJWVgRO/source.gif",
"https://media3.giphy.com/media/puOukoEvH4uAw/giphy.gif?cid=4bf119fc5b9ed43565707a736f134885",
"https://media.giphy.com/media/2tSodgDfwCjIMCBY8h/200w_d.gif",
Expand Down
4 changes: 2 additions & 2 deletions plugins/domains/knightlab.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export default {
tests: [{skipMethods: ["getMeta"]},
"https://s3.amazonaws.com/uploads.knightlab.com/storymapjs/86a5b5c6facef8e74eb685573b846f6b/civilian-deaths-evidence-of-war-crimes-in-yemen/index.html",
"https://cdn.knightlab.com/libs/juxtapose/latest/embed/index.html?uid=f9031656-dcc3-11e5-a524-0e7075bba956",
"http://cdn.knightlab.com/libs/juxtapose/dev/embed/index.html?uid=75ec66e0-204a-11e5-91b9-0e7075bba956",
"http://cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=0Atwxho6G5yhjdEdJNU1JMzhLdjdHUTFMNnc4bHNud3c&font=PTSerif-PTSans&maptype=toner&lang=en&hash_bookmark=true&start_zoom_adjust=2&height=650#13"
"https://cdn.knightlab.com/libs/juxtapose/dev/embed/index.html?uid=75ec66e0-204a-11e5-91b9-0e7075bba956",
"https://cdn.knightlab.com/libs/timeline/latest/embed/index.html?source=0Atwxho6G5yhjdEdJNU1JMzhLdjdHUTFMNnc4bHNud3c&font=PTSerif-PTSans&maptype=toner&lang=en&hash_bookmark=true&start_zoom_adjust=2&height=650#13"
]
};
3 changes: 2 additions & 1 deletion plugins/domains/loom.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,15 @@ export default {
href: iframe.replaceQuerystring(q),
type: CONFIG.T.text_html, // Validator fails because we receive x-frame-options. It actually works fine.
rel: CONFIG.R.player,
autoplay: "autoplay=1",
'aspect-ratio': width / height,
options: {
hideinfo: {
value: hideinfo,
label: "Hide player attribution info"
}
}
}
};

},

Expand Down
10 changes: 5 additions & 5 deletions plugins/domains/npr.org/npr.sections.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export default {
},

tests: [
"http://www.npr.org/sections/thetwo-way/2016/04/11/473874785/hundreds-protest-gerrymandering-campaign-finance-laws-on-capitols-steps",
"http://www.npr.org/sections/alltechconsidered/2015/04/29/401236656/libraries-make-space-for-3-d-printers-rules-are-sure-to-follow",
"http://www.npr.org/sections/itsallpolitics/2015/08/27/434872755/exactly-what-kind-of-socialist-is-bernie-sanders",
// "http://www.npr.org/2016/05/04/476793671/first-listen-mudcrutch-2"
"http://www.npr.org/2016/08/12/489769830/anderson-paak-the-free-nationals-tiny-desk-concert" // jw player
"https://www.npr.org/sections/thetwo-way/2016/04/11/473874785/hundreds-protest-gerrymandering-campaign-finance-laws-on-capitols-steps",
"https://www.npr.org/sections/alltechconsidered/2015/04/29/401236656/libraries-make-space-for-3-d-printers-rules-are-sure-to-follow",
"https://www.npr.org/sections/itsallpolitics/2015/08/27/434872755/exactly-what-kind-of-socialist-is-bernie-sanders",
// "https://www.npr.org/2016/05/04/476793671/first-listen-mudcrutch-2"
"https://www.npr.org/2016/08/12/489769830/anderson-paak-the-free-nationals-tiny-desk-concert" // jw player
]
};
12 changes: 6 additions & 6 deletions plugins/domains/nytimes.video.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@ export default {
},

tests: [
"http://www.nytimes.com/video/movies/100000002478606/anatomy-of-a-scene-gravity.html?smid=nytimesarts",
"http://www.nytimes.com/video/nyregion/100000003880254/a-complicated-love-story.html?playlistId=1194811622241",
"http://www.nytimes.com/video/realestate/100000003852081/block-by-block-hoboken.html?playlistId=1194811622241",
"http://www.nytimes.com/video/world/middleeast/100000004055530/turkey-footage-shows-plane-blast.html",
"http://www.nytimes.com/video/us/100000004255656/the-terminator-and-the-washing-machine.html?smid=tw-share",
"http://www.nytimes.com/video/t-magazine/100000004528545/on-set-natalie-portman.html?smid=pl-share"
"https://www.nytimes.com/video/movies/100000002478606/anatomy-of-a-scene-gravity.html?smid=nytimesarts",
"https://www.nytimes.com/video/nyregion/100000003880254/a-complicated-love-story.html?playlistId=1194811622241",
"https://www.nytimes.com/video/realestate/100000003852081/block-by-block-hoboken.html?playlistId=1194811622241",
"https://www.nytimes.com/video/world/middleeast/100000004055530/turkey-footage-shows-plane-blast.html",
"https://www.nytimes.com/video/us/100000004255656/the-terminator-and-the-washing-machine.html?smid=tw-share",
"https://www.nytimes.com/video/t-magazine/100000004528545/on-set-natalie-portman.html?smid=pl-share"
]
};
4 changes: 2 additions & 2 deletions plugins/domains/openstreetmap.org.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ function sinh(x) {
return (Math.exp(x) - Math.exp(-x)) / 2;
}

// See: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Lon..2Flat._to_bbox
// See: https://wiki.openstreetmap.org/wiki/Slippy_map_tilenames#Lon..2Flat._to_bbox
function getTileNumber(lat, lon, zoom) {
var n = Math.pow(2, zoom);
var xtile = Math.floor((lon + 180) / 360 * n);
Expand Down Expand Up @@ -208,7 +208,7 @@ export default {
// https://help.openstreetmap.org/questions/26293/error-on-image-stream-using-ojwdevopenstreetmaporg
/*
, {
href: "http://ojw.dev.openstreetmap.org/StaticMap/?"+QueryString.stringify(thumb_query),
href: "https://ojw.dev.openstreetmap.org/StaticMap/?"+QueryString.stringify(thumb_query),
rel: CONFIG.R.thumbnail,
type: CONFIG.T.image_png,
width: thumb_width,
Expand Down
4 changes: 2 additions & 2 deletions plugins/domains/pinterest.com/pinterest.board.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default {
// No Test Feed here not to violate "scrapping" restrictions of Pinterest
noFeeds: true
},
"http://pinterest.com/bcij/art-mosaics/",
"http://pinterest.com/bcij/aging-gracefully/",
"https://pinterest.com/bcij/art-mosaics/",
"https://pinterest.com/bcij/aging-gracefully/",
"https://www.pinterest.com/pinterest/official-news/",
"https://www.pinterest.com/mimimememe/office-humor-work-jokes/"
]
Expand Down
4 changes: 2 additions & 2 deletions plugins/domains/pinterest.com/pinterest.user.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export default {
noFeeds: true,
skipMixins: ["og-title", "og-description"]
},
"http://pinterest.com/bcij/",
"http://pinterest.com/franktofineart/",
"https://pinterest.com/bcij/",
"https://pinterest.com/franktofineart/",
"https://www.pinterest.com/pinterest/"
]
};
4 changes: 2 additions & 2 deletions plugins/domains/polldaddy.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ export default {
]
},
"https://polldaddy.com/poll/7451882/?s=twitter",
"http://polldaddy.com/poll/9113163/",
"https://polldaddy.com/poll/9113163/",
"https://poll.fm/15096510",
"http://poll.fm/15188921"
"https://poll.fm/15188921"
]
};
6 changes: 3 additions & 3 deletions plugins/domains/simplecast.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,10 @@ export default {
"https://the-smerconish-podcast.simplecast.com/episodes/todays-poll-question-should-joe-have-pardoned-hunter",

/*
http://bikeshed.fm/54
http://bikeshed.fm/57
https://bikeshed.fm/54
https://bikeshed.fm/57
https://podcast.emojiwrap.com/episodes/17-no-time-for-hands-openhands-with
http://podcast.thegadgetflow.com/mark-campbell-inventurex
https://podcast.thegadgetflow.com/mark-campbell-inventurex
*/
]
};
6 changes: 3 additions & 3 deletions plugins/domains/slid.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default {
getLink: function(urlMatch, query) {
if (urlMatch[1] !== 'blog.') {
return {
href: `${urlMatch[0].replace('http://', '//')}/embed` + (query.token ? `?token=${query.token}` : ''),
href: `${urlMatch[0].replace('https://', '//')}/embed` + (query.token ? `?token=${query.token}` : ''),
accept: CONFIG.T.text_html,
rel: [CONFIG.R.player, CONFIG.R.slideshow],
'aspect-ratio': 960/700,
Expand All @@ -37,11 +37,11 @@ export default {
},

tests: [{skipMethods: ["getData"]},
"http://slides.com/timkindberg/ui-router",
"https://slides.com/timkindberg/ui-router",
"https://slides.com/thedatacentral/the-data-central",
"https://slides.com/sunilos/javaio#/2",
"https://slides.com/webmax/angular-status-13"

// But exclude http://blog.slides.com/post/84828911898/slides-turns-one-year-old from Tumblr tests
// But exclude https://blog.slides.com/post/84828911898/slides-turns-one-year-old from Tumblr tests
]
};
6 changes: 3 additions & 3 deletions plugins/domains/spotify.com.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,13 @@ export default {

tests: [{noFeeds: true}, {skipMethods: ["getData"], skipMixins: ["oembed-iframe", "oembed-thumbnail", "og-image", "oembed-title"]},
"https://open.spotify.com/playlist/44CgBWWr6nlpy7bdZS8ZmN",
"http://open.spotify.com/track/6ol4ZSifr7r3Lb2a9L5ZAB",
"https://open.spotify.com/track/6ol4ZSifr7r3Lb2a9L5ZAB",
"https://open.spotify.com/playlist/4SsKyjaGlrHJbRCQwpeUsz",
"http://open.spotify.com/album/42jcZtPYrmZJhqTbUhLApi",
"https://open.spotify.com/album/42jcZtPYrmZJhqTbUhLApi",
"https://open.spotify.com/playlist/0OV99Ep2d1DCENJRPuEtXV",
"https://open.spotify.com/track/4by34YzNiEFRESAnBXo7x4",
"https://open.spotify.com/track/2qZ36jzyP1u29KaeuMmRZx",
"http://open.spotify.com/track/7ldU6Vh9bPCbKW2zHE65dg",
"https://open.spotify.com/track/7ldU6Vh9bPCbKW2zHE65dg",
"https://play.spotify.com/track/2vN0b6d2ogn72kL75EmN3v",
"https://play.spotify.com/track/34zWZOSpU2V1ab0PiZCcv4",
"https://open.spotify.com/show/7gozmLqbcbr6PScMjc0Zl4?si=nUubrGA2Sj-2pYPgkSWYrA",
Expand Down
16 changes: 0 additions & 16 deletions plugins/domains/test.com/test1.js

This file was deleted.

15 changes: 0 additions & 15 deletions plugins/domains/test.com/test2.js

This file was deleted.

Loading
Loading