您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Adds a fixed header element for use by other scripts
当前为
此脚本不应直接安装。它是供其他脚本使用的外部库,要使用该库请加入元指令 // @require https://update.cn-greasyfork.org/scripts/18233/115269/Window%20floating%20container.js
- // ==UserScript==
- // @name Window floating container
- // @version 1.0.0
- // @description Adds a fixed header element for use by other scripts
- // @author @_jnblog
- // @require https://ajax.googleapis.com/ajax/libs/jquery/1.12.0/jquery.min.js
- // @grant GM_addStyle
- // ==/UserScript==
- /* jshint -W097 */
- /* global $ */
- /* jshint asi: true, multistr: true */
- 'use strict'
- var ijgFloater = $('#ijgWindowFloater')
- if (!ijgFloater.length) {
- GM_addStyle('#ijgWindowFloater {\
- position: fixed;\
- top: 0;\
- left: 0;\
- z-index: 2000;\
- color: white;\
- background-color: #EB6841;\
- }')
- GM_addStyle('#ijgWindowFloater a {\
- color: white !important;\
- padding: 5px;\
- display: inline-block;\
- }')
- GM_addStyle('#ijgWindowFloater a:hover {\
- color: #FAF667 !important;\
- }')
- GM_addStyle('.ijgWindowFloater-item + .ijgWindowFloater-item {\
- padding-left: 1em;\
- }')
- ijgFloater = $('<div id="ijgWindowFloater">')
- $('body').prepend(ijgFloater)
- }
- function getFloater() {
- return ijgFloater
- }