您需要先安装一个扩展,例如 篡改猴、Greasemonkey 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 暴力猴,之后才能安装此脚本。
您需要先安装一个扩展,例如 篡改猴 或 Userscripts ,之后才能安装此脚本。
您需要先安装一款用户脚本管理器扩展,例如 Tampermonkey,才能安装此脚本。
您需要先安装用户脚本管理器扩展后才能安装此脚本。
Tosses a link to your AMP in the header.
- // ==UserScript==
- // @name GameFAQs Quick AMP
- // @description Tosses a link to your AMP in the header.
- // @author King of Cats
- // @namespace Cats
- // @version 1
- // @grant none
- // @include http://www.gamefaqs.com/*
- // ==/UserScript==
- var userMast = document.getElementsByClassName("masthead_user");
- if (userMast[0] != null) {
- var ampLink = document.createElement('a');
- ampLink.setAttribute("href","/boards/myposts.php");
- ampLink.textContent = "AMP";
- userMast[0].insertBefore(ampLink,userMast[0].childNodes[2]);
- }