facebook recent

Aggiungi pulsante per tornare su facebook

目前为 2022-06-28 提交的版本。查看 最新版本

// ==UserScript==
// @name           facebook recent
// @author         figuccio
// @namespace      https://greasyfork.org/users/237458
// @description    Aggiungi pulsante per tornare su facebook
// @version        2.5
// @match          *://*/*
// @require        http://code.jquery.com/jquery-latest.js
// @require        https://code.jquery.com/ui/1.12.1/jquery-ui.js
// @license                  MIT
// @grant          GM_registerMenuCommand
// @exclude        https://drive.google.com/*
// @noframes
// @grant       GM_addStyle
// ==/UserScript==
(function() {
    'use strict';
let $ = window.jQuery;
var j3 = $.noConflict();
const body=document.body
let btn_style=`position:fixed;top:0;left:0;text-align:center;line-height:14px;font-size:14px;width:71px;font-weight:bold; cursor:; color:red!important; background-color:green!important;border:2px solid blue; border-radius:12px; padding:6px 6px; z-index:500000; text-decoration:none;`;
let box=document.createElement("div");
box.innerText="FACEBOOK RECENT";
box.style=btn_style;
let box_state="btn";
j3(box).draggable();
body.append(box);
//--- Attiva il pulsante appena aggiunto.
 box.addEventListener("click",function(){window.location.href = "https://www.facebook.com/?sk=h_chr";});
   })();