FileFactory HTTPS Fix

Forces all member area top-menu links to HTTPS.

目前为 2015-11-29 提交的版本。查看 最新版本

// ==UserScript==
// @name        FileFactory HTTPS Fix
// @namespace   [email protected]
// @description Forces all member area top-menu links to HTTPS.
// @include     http://www.filefactory.com/*
// @include     http://filefactory.com/*
// @include     https://filefactory.com/*
// @include     https://www.filefactory.com/*
// @version     1.1
// @grant       none

// ==/UserScript==
var url = window.location.href;
url = url.split("www")[1];
url = "https://www" + url;
$("a[href='/search/']").attr('href', 'https://www.filefactory.com/search/');
$("a[href='/account/']").attr('href', 'https://www.filefactory.com/account/');
$("a[href='/myfiles/']").attr('href', 'https://www.filefactory.com/myfiles/');
$("a[href='/upload/']").attr('href', 'https://www.filefactory.com/upload/');
$("a[href='/upload/remote.php']").attr('href', 'https://www.filefactory.com/upload/remote.php');
$("a[href='/upload/ftp.php']").attr('href', 'https://www.filefactory.com/upload/ftp.php');
$("a[href='/account/support/diagnostics.php']").attr('href', 'https://www.filefactory.com/account/support/diagnostics.php');
$("a[href='/services/premium/']").attr('href', 'https://www.filefactory.com/services/premium/');
$("a[href='/services/fileplanet/']").attr('href', 'https://www.filefactory.com/search/');
$("a[href='#']").attr('href', url);

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址