1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | // ==UserScript==
// @name 噗首按鈕蓋子
// @namespace http://tampermonkey.net/
// @version 0.1
// @description 避免不小心點到喜歡或轉噗,這個語法讓按鈕變成滑鼠需要先停留在上面兩秒後才可以按
// @author You
// @match https://www.plurk.com/*
// @icon https://www.google.com/s2/favicons?domain=plurk.com
// @grant none
// ==/UserScript==
(function() {
let 顏色 = "#000A";
let 停留多久打開 = "2s";
let 打開速度 = "0.6s";
let 圓角大小 = "5px";
$('#噗首按鈕蓋子css').remove();
$('head').append('<style id="噗首按鈕蓋子css">.manager { position:relative; } .manager:after { content:""; width:100%; height:100%; display:block; position:absolute; top:0; left:0; transition:height ' + 打開速度 + '; border-radius:' + 圓角大小 + '; background:' + 顏色 + '; } .manager:hover:after { height:0; transition:height ' + 打開速度 + ' ' + 停留多久打開 + '; }</style>');
})();
|
Direct link: https://paste.plurk.com/show/yLhixb9gCjzB36B3TdSJ