您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Add a frame with next-episode.net to SABnzbd
// ==UserScript== // @name SABnzb and frame // @namespace armeagle.nl // @include http://192.168.18.26:8006/ // @version 1 // @description Add a frame with next-episode.net to SABnzbd // ==/UserScript== //try { var style = document.createElement('style'); style.setAttribute('type', 'text/css'); style.textContent = ''+ '#master-width {'+ ' width: 70% !important;'+ ' margin: 0;'+ '}' + '#side-frame {'+ ' position: absolute;'+ ' right: 0px;'+ ' top: 0px;'+ ' overflow: scroll'+ '}'; document.head.appendChild(style); var masterDiv = document.querySelector('#master-width'); masterDiv.setAttribute('style', 'width: 70%; margin: 0;'); var sideFrame = document.createElement('object'); sideFrame.setAttribute('type', 'text/html'); sideFrame.setAttribute('width', '30%'); sideFrame.setAttribute('height', '100%'); sideFrame.setAttribute('data', 'http://next-episode.net'); sideFrame.setAttribute('id', 'side-frame'); masterDiv.parentNode.insertBefore(sideFrame, masterDiv); //} catch (e) { // alert(e); //}