您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Shows Post URL Information on Facebook Posts
当前为
// ==UserScript== // @name Facebook (Show URLS on Posts) // @match https://www.facebook.com/* // @match https://*.facebook.com/* // @match http://www.facebook.com/* // @match http://*.facebook.com/* // @run-at document-start // @grant GM_addStyle // @author JZersche // @require https://greasyfork.org/scripts/12228/code/setMutationHandler.js // @version 1.00 // @namespace https://greasyfork.org/users/95175 // @description Shows Post URL Information on Facebook Posts // ==/UserScript== let event = new MouseEvent('pointerover', {'bubbles': true}); setMutationHandler({ target: document.querySelector('.qzhwtbm6.knvmm38'), selector: '.oajrlxb2.gpro0wi8.b1v8xokw', handler: nodes => nodes.forEach(node => { setTimeout(function(){ node.dispatchEvent(event); setTimeout(function(){ if(node.href.length>100 && !node.outerHTML.match('tm_injection') && window.location.href.match(/facebook\.com\/\w+/)) { //node.parentNode.parentNode.nextSibling.innerText = ' · '; console.log('node'); try{node.parentNode.parentNode.nextSibling.innerText = ' ';}catch(e){} node.href = node.href.replace(node.search,''); node.href;node.insertAdjacentHTML('beforeend','<br /><span class="tm_injection"> '+node.href.match(/\.com\/.+/)[0].replace('.com/','')+'</span>'); //node.children[0].setAttribute('style','background-image: linear-gradient(to left, white 50%, green 60%, white 60%, blue 70%, violet 80%);-webkit-background-clip: text;'); //node.children[2].setAttribute('style','background-image: linear-gradient(to left, violet, blue, green, red, white);-webkit-background-clip: text;'); } },250) },3000); return false}) })