115_https

enable_https_for_115_com

Stan na 30-08-2018. Zobacz najnowsza wersja.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Greasemonkey lub Violentmonkey.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, wymagana jest instalacje jednego z następujących rozszerzeń: Tampermonkey, Violentmonkey.

Aby zainstalować ten skrypt, wymagana będzie instalacja rozszerzenia Tampermonkey lub Userscripts.

You will need to install an extension such as Tampermonkey to install this script.

Aby zainstalować ten skrypt, musisz zainstalować rozszerzenie menedżera skryptów użytkownika.

(Mam już menedżera skryptów użytkownika, pozwól mi to zainstalować!)

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

You will need to install an extension such as Stylus to install this style.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Będziesz musiał zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

Musisz zainstalować rozszerzenie menedżera stylów użytkownika, aby zainstalować ten styl.

(Mam już menedżera stylów użytkownika, pozwól mi to zainstalować!)

// ==UserScript==
// @name 115_https
// @description enable_https_for_115_com
// @match *://115.com/*
// @grant none
// @version 0.0.1.20180830135456
// @namespace https://greasyfork.org/users/16337
// ==/UserScript==

(function(){
  var ajaxDetour = function(param) {
    var successDetour = function(param) {
      if (param.file_url != undefined)
        param.file_url = param.file_url.replace(/^http:\/\//i, 'https://');
      
      return successTrampoline(param);
    }
    
    var successTrampoline = param["success"];
    param["success"] = successDetour;
    return ajaxTrampoline(param);
  }
  
  var ajaxTrampoline = top.UA$.ajax;
  top.UA$.ajax = ajaxDetour;
})();