您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
This puts the penny arcade comic on the news page.
// ==UserScript== // @name Penny Arcade Combine News and Comic // @namespace http://userscripts.org/users/Scuzzball // @include http://penny-arcade.com/2* // @version 1.0 // @description This puts the penny arcade comic on the news page. // ==/UserScript== var comicPage = document.location.protocol + "//" + document.location.hostname + "/comic" + document.location.pathname; GM_xmlhttpRequest({ method: "GET", url: comicPage, onload: function( response ) { var patt = /\<div class\=\"post comic\"\>\n(.*)/; var comicURL = patt.exec(response.responseText); comicURL = comicURL[1]; document.getElementById("heroFeature").innerHTML = comicURL; document.getElementById("heroFeature").style.background = ""; document.getElementById("heroFeature").style.width = '800px'; document.getElementById("heroFeature").style.height = '401px'; document.getElementById("heroFeature").style.overflow="visible" } }); document.getElementById("heroFeature").innerHTML = ""; document.getElementById("sidebar").style.display = 'none';