您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Copies fxtwitter links into your clipboard. Will make you share TikTok videos easier on platforms like Telegram and Discord.
- // ==UserScript==
- // @name Copy Modified URL on Click Twitter
- // @match https://twitter.com/*
- // @description Copies fxtwitter links into your clipboard. Will make you share TikTok videos easier on platforms like Telegram and Discord.
- // @license MIT
- // @version 0.0.1.20230708182235
- // @namespace https://gf.qytechs.cn/users/1122038
- // ==/UserScript==
- (function() {
- 'use strict';
- // Function to handle the document click event
- function handleClick(event) {
- // Get the current URL
- var currentURL = window.location.href;
- // Modify the URL to use "vxtiktok.com"
- var modifiedURL = currentURL.replace(/^(https?:\/\/)(www\.)?([^\/]+)/i, "$1fxtwitter.com");
- // Copy the modified URL to the clipboard
- navigator.clipboard.writeText(modifiedURL)
- .then(function() {
- console.log('Modified URL copied to clipboard:', modifiedURL);
- })
- .catch(function(error) {
- console.error('Failed to copy the modified URL:', error);
- });
- }
- // Add a click event listener to the document
- document.addEventListener('click', handleClick);
- })();
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址