Goto website not waiting for Direct Website
目前為
// ==UserScript==
// @name Skip Direct Link
// @namespace https://www.facebook.com/dung.dev.gramer/
// @version 0.2
// @description Goto website not waiting for Direct Website
// @author DungGramer
// @include /((https|http)%)/
// @include /^(facebook|google|github|linkedin)/
// @grant none
// ==/UserScript==
(function() {
// 'use strict';
// window.open(decodeURIComponent(window.location.href.match(/((https|http)%)[^]+/)[0]));
let temp = document.createElement("temp");
temp.target = "_blank";
let newURL = window.location.href.split(/(http....)[^]+(http....)/);
temp.href = decodeURIComponent(newURL[2]) + decodeURIComponent(newURL[3].split(/.fbclid=\w+/).join(""));
temp.click();
window.open(temp.href);
})();