Skip to content
This repository has been archived by the owner on Aug 30, 2018. It is now read-only.

Commit

Permalink
Fixed #2200.
Browse files Browse the repository at this point in the history
  • Loading branch information
YePpHa committed Mar 24, 2016
1 parent 285d9bb commit dc3e931
Show file tree
Hide file tree
Showing 15 changed files with 26,814 additions and 10 deletions.
4 changes: 2 additions & 2 deletions devbuild.number
@@ -1,3 +1,3 @@
#Build Number for ANT. Do not edit!
#Sun Dec 13 13:12:31 CET 2015
build.number=537
#Thu Mar 24 23:23:59 CET 2016
build.number=538
Binary file modified dist/YouTubeCenter-webstore.zip
Binary file not shown.
Binary file modified dist/YouTubeCenter.crx
Binary file not shown.
26,783 changes: 26,783 additions & 0 deletions dist/YouTubeCenter.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/YouTubeCenter.meta.js
@@ -1,7 +1,7 @@
// ==UserScript==
// @name YouTube Center Developer Build
// @namespace http://www.facebook.com/YouTubeCenter
// @version 537
// @version 538
// @author Jeppe Rune Mortensen (YePpHa)
// @description YouTube Center contains all kind of different useful functions which makes your visit on YouTube much more entertaining.
// @icon https://raw.github.com/YePpHa/YouTubeCenter/master/assets/logo-48x48.png
Expand Down
Binary file modified dist/YouTubeCenter.mxaddon
Binary file not shown.
Binary file modified dist/YouTubeCenter.oex
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/YouTubeCenter.safariextension/Info.plist
Expand Up @@ -13,7 +13,7 @@
<key>CFBundleInfoDictionaryVersion</key>
<string>6.0</string>
<key>CFBundleShortVersionString</key>
<string>537</string>
<string>538</string>
<key>CFBundleVersion</key>
<string>116</string>
<key>Chrome</key>
Expand Down
11 changes: 9 additions & 2 deletions dist/YouTubeCenter.safariextension/YouTubeCenter.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/YouTubeCenter.safariextz
Binary file not shown.
11 changes: 9 additions & 2 deletions dist/YouTubeCenter.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/YouTubeCenter.xpi
Binary file not shown.
2 changes: 1 addition & 1 deletion dist/chrome-update.xml
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<gupdate xmlns="http://www.google.com/update2/response" protocol="2.0">
<app appid="ajijnmbjgaeekdpmpohgppkckmnagimk">
<updatecheck codebase="https://raw.github.com/YePpHa/YouTubeCenter/master/dist/YouTubeCenter.crx" version="537" />
<updatecheck codebase="https://raw.github.com/YePpHa/YouTubeCenter/master/dist/YouTubeCenter.crx" version="538" />
</app>
</gupdate>
2 changes: 1 addition & 1 deletion dist/firefox-update.rdf
Expand Up @@ -5,7 +5,7 @@
<rdf:Seq>
<rdf:li>
<rdf:Description>
<em:version>537</em:version>
<em:version>538</em:version>
<em:targetApplication>
<rdf:Description>
<em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id>
Expand Down
7 changes: 7 additions & 0 deletions src/YouTubeCenter.user.js
Expand Up @@ -4936,6 +4936,12 @@
} else {
var spflink = true,
url = "//www.youtube.com/watch?v=" + item.id + (spflink ? "&spf=navigate" : "");
var headers = {};
if (window.ytspf && window.ytspf.config && window.ytspf.config["experimental-request-headers"]) {
headers = window.ytspf.config["experimental-request-headers"];
}
headers["X-SPF-previous"] = window.location.href;
headers["X-SPF-referer"] = window.location.href;
if (loc.href.indexOf("https://") === 0) {
url = "https:" + url;
} else {
Expand All @@ -4944,6 +4950,7 @@
ytcenter.utils.xhr({
url: url,
method: "GET",
headers: headers,
onload: function(r){
var cfg = null;
var errorType = "unknown";
Expand Down

0 comments on commit dc3e931

Please sign in to comment.