Browse Source

Updated link standardisation to remove everything after ampersand

shorten
benji7425 4 years ago
parent
commit
11715d0a3b
  1. 4
      feed-bot.js

4
feed-bot.js

@ -121,8 +121,8 @@ var YouTube = {
var Links = {
standardise: function (link) {
//cheaty way to get around http and https not matching
return link.replace("https://", "http://");
//cheaty way to get around http and https not matching, and quick way to chop off stuff like &feature=youtube etc
return link.replace("https://", "http://").split("&")[0];
},
messageContainsLink: function (message) {
var messageLower = message.toLowerCase();

Loading…
Cancel
Save