您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Fernus tarafından yayınlanan video çözüm kategorilerini link olarak kaydetmenizi ve tek tıkla açmanızı sağlar
当前为
// ==UserScript== // @name Fernus URL // @description Fernus tarafından yayınlanan video çözüm kategorilerini link olarak kaydetmenizi ve tek tıkla açmanızı sağlar // @include *.frns.in* // @require https://code.jquery.com/jquery-2.2.4.min.js // @grant none // @version 0.0.1.20240225014718 // @namespace https://greasyfork.org/users/1266596 // ==/UserScript== const fernus_url_script_query = new URLSearchParams(window.location.search); if (fernus_url_script_query.has('fc')) { get_contents(fernus_url_script_query.get('fc')) } else if (fernus_url_script_query.has('fs')) { get_sources(fernus_url_script_query.get('fs')) } $("header").first().append(`<button id="frns-url-grab" class="pix-btn btn-outline m-0 mt-1 text-center p-2 float-left" style="color: white !important; width: 110px; height: calc(100% - 15px); position: absolute; top: 5px; left: 7px; z-index: 9999;">🔗 Kaydet</button>`) if (navigator["share"]) { $("header").first().append(`<button id="frns-url-share" class="pix-btn btn-outline m-0 mt-1 text-center p-2 float-left" style="color: white !important; width: 110px; height: calc(100% - 15px); position: absolute; top: 5px; left: 125px; z-index: 9999;">🌐 Paylaş</button>`) $("#frns-url-share").on("click", function () { const url = window["fernus_url_loc"] ? window.location.origin : window.location.origin + window["fernus_url_loc"] try { navigator.share({ url: url }) } catch (err) { } }) } const oldgc = get_contents const oldgs = get_sources window["get_contents"] = function (id) { window["fernus_url_loc"] = `/?fc=${id}` oldgc(id) } window["get_sources"] = function (id) { window["fernus_url_loc"] = `/?fs=${id}` oldgs(id) } $("#frns-url-grab").on("click", function () { if (window["fernus_url_loc"]) { const url = window.location.origin + window["fernus_url_loc"] try { navigator.clipboard.writeText(url); alert("URL panoya kopyalandı!\n") } catch (err) { console.error('Failed to copy: ', err); } } else { try { navigator.clipboard.writeText(window.location.origin); alert("URL panoya kopyalandı!\n") } catch (err) { } } })