您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Aggiungi pulsante per tornare su facebook
当前为
// ==UserScript== // @name facebook recent // @author figuccio // @namespace https://gf.qytechs.cn/users/237458 // @description Aggiungi pulsante per tornare su facebook // @version 1.6 // @include * // @grant GM_registerMenuCommand // @exclude https://drive.google.com/* // @noframes // @grant GM_addStyle // ==/UserScript== /*(stringa30 !important evita il cambio di colore su alcuni siti stringa29 line-height il testo del pulsante resta centrato stringa29font-size8pt per evitare fuoriuscita della scritta fuori dal box su alcuni siti) */ var zNode = document.createElement ('div'); zNode.innerHTML = '<button id="myButton" type="button">' + 'FACEREC</button>' ; zNode.setAttribute ('id', 'myContainer'); document.body.appendChild (zNode); //--- Attiva il pulsante appena aggiunto. document.getElementById ("myButton").addEventListener ( "click",function(){window.location.href = "https://www.facebook.com/?sk=h_chr"; (0,0); }, false); //--- Dai uno stile ai nostri nuovi elementi aggiunti usando i CSS.GM_addStyle (` `); GM_addStyle (multilineStr (function() {/* #myButton { position:fixed; top:0; left:0;text-align:center;line-height:14px;font-size:8pt;width:71px;\\(evita pulsante troppo lungo su alcuni siti) font-weight:bold; cursor:pointer; color:red!important; background-color:green!important; border:2px solid blue; border-radius:12px; padding:6px 6px; z-index:500000; text-decoration:none; } */})); //questo ha sistemato il problema (` `);le personalizazioni dei colori del pulsante #myButton anche se apparentemente disattivati funzionano regolarmente function multilineStr (dummyFunc) { var str = dummyFunc.toString(); str = str.replace (/^[^\/]+\/\*!?/, '') //Funzione strip () { /*! .replace (/\s*\*\/\s*\}\s*$/, '') // Strip */ } .replace (/\/\/.+$/gm, '') // I commenti a doppia barra rovinano i CSS. ; return str; } //mostra nascondi pulsante function myFunction() { var zNode= document.getElementById('myButton'); if (zNode.style.display === 'none') { zNode.style.display = 'block'; } else { zNode.style.display = 'none'; } } GM_registerMenuCommand("mostra/nascondi",myFunction); //posizione function myFunction6() { var zNode= document.getElementById('myButton'); if (zNode.style.margin === '0px 1280px') { zNode.style.margin = ' 0px'; } else { zNode.style.margin = '0px 1280px '; } } GM_registerMenuCommand("sopra right ►left◄",myFunction6); function myFunction8() { var zNode= document.getElementById('myButton'); if (zNode.style.margin === '445pt 1280px') { zNode.style.margin = ' 445pt 0px'; } else { zNode.style.margin = '445pt 1280px'; } } GM_registerMenuCommand("sotto ►left-right◄",myFunction8);
QingJ © 2025
镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址