Skip to content

Instantly share code, notes, and snippets.

@fqx
Created January 29, 2021 02:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fqx/63f4f2335578690afae7b274da91656c to your computer and use it in GitHub Desktop.
Save fqx/63f4f2335578690afae7b274da91656c to your computer and use it in GitHub Desktop.
fix Caixin same site cookie problem
// ==UserScript==
// @name Force Caixin to HTTPS
// @namespace r-a-y/https
// @version 1.0.0
// @match http://*.caixin.com/*
// @run-at document-start
// @description Force Caixin to use HTTPS.
// ==/UserScript==
document.location.replace(document.location.href.replace(/http\:/, 'https:'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment