您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
looking this page
- // ==UserScript==
- // @name miterunau_bottom
- // @namespace miterunau
- // @description looking this page
- // @include *
- // @version 1.1.1
- // @grant none
- // @require http://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
- // ==/UserScript==
- (function($){
- var cBox = $('<div>').attr('id', 'cBox').css({
- "height":"10px",
- "width" :"10px",
- "z-index":1000000000,
- "position":"fixed",
- "background":"blue",
- "top":2,
- "left":2
- });
- $('body').filter(function(index){
- return $('iframe').contents().find('body').parent().prop("tagName");
- }).append(cBox);
- function miterunau(){
- f = 'http://twitter.com/home?status=' + encodeURIComponent('みてるなう|' + document.title + ' - ' + location.href);
- a = function() {
- if (!window.open(f, '_blank', 'width=800,height=600')) location.href = f;
- };
- if (/Firefox/.test(navigator.userAgent)) {
- setTimeout(a, 0);
- } else {
- a();
- }
- }
- var p = document.getElementById('cBox');
- p.addEventListener('click', miterunau, false);
- })(jQuery);