Skip Direct Link

Goto website not waiting for Direct Website

2022/04/01のページです。最新版はこちら

スクリプトをインストールするには、Tampermonkey, GreasemonkeyViolentmonkey のような拡張機能のインストールが必要です。

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

スクリプトをインストールするには、TampermonkeyViolentmonkey のような拡張機能のインストールが必要です。

スクリプトをインストールするには、TampermonkeyUserscripts のような拡張機能のインストールが必要です。

このスクリプトをインストールするには、Tampermonkeyなどの拡張機能をインストールする必要があります。

このスクリプトをインストールするには、ユーザースクリプト管理ツールの拡張機能をインストールする必要があります。

(ユーザースクリプト管理ツールは設定済みなのでインストール!)

このスタイルをインストールするには、Stylusなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus などの拡張機能をインストールする必要があります。

このスタイルをインストールするには、Stylus tなどの拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

このスタイルをインストールするには、ユーザースタイル管理用の拡張機能をインストールする必要があります。

(ユーザースタイル管理ツールは設定済みなのでインストール!)

このスクリプトの質問や評価の投稿はこちら通報はこちらへお寄せください
// ==UserScript==
// @name         Skip Direct Link
// @namespace    https://www.facebook.com/dung.dev.gramer/
// @version      0.4
// @description  Goto website not waiting for Direct Website
// @author       DungGramer
// @include      /((https|http)%)/
// @include      /^(facebook|google|github|linkedin)/
// @grant        none
// @license      MIT
// ==/UserScript==

(function() {
	try {
		var newURL = window.location.href.match(/(url|href)\=http?s.+/)[0].match(/http?s.+/)[0];
		var directLink = decodeURIComponent(newURL.split(/.fbclid=\w+/).join(""));
		directLink = new URL(directLink);
		var question = window.confirm("Do you want go to: \n" + directLink); 
		if (question) window.location.href = directLink;
	} catch(e) {}
})();