您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
進入首頁時如果可以簽到,將自動簽到
// ==UserScript== // @name 巴哈首頁簽到 // @namespace Bee10301 // @version 1.0 // @description 進入首頁時如果可以簽到,將自動簽到 // @author Bee10301 // @match https://www.gamer.com.tw/ // @homepage https://home.gamer.com.tw/home.php?owner=bee10301 // ==/UserScript== (function() { 'use strict'; // var script = document.createElement("script"); // create a script DOM node // script.src = "https://i2.bahamut.com.tw/js/signin.js"; // set its src to the provided URL // document.head.appendChild(script); // add it to the end of the head section of the page (could change 'head' to 'body' to add it to the end of the body section instead) window.onload=function(){ if(document.body.outerHTML.match(/ 巴幣/)!=null){ Signin.start(this);} //debug //console.log(document.body.outerHTML.match(/ 巴幣/)!=null); }; })();