我需要通过Chrome oilmonkey / tampermoney扩展程序在我的网页上禁用此行:
$.getScript("https://apis.google.com/js/client.js?onload=initgapi");
gtag('config', 'UA-4163888-28');
gtag('config', 'AW-1066657416');
var scopes = 'https://www.googleapis.com/auth/plus.profile.emails.read';
gapi.auth.authorize({ client_id: '660406747714.apps.googleusercontent.com', scope: scopes, state: appstate, response_type: 'code', redirect_uri: 'https://membri.mysite.com/bodies/oauth2.asp', immediate: false });return false;
每一行都在各个脚本行之内。
任何人都可以帮助实现这一目标吗?我已经尝试过自己做,但是失败了。
// ==UserScript==
// @name New Userscript
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://www.mysit.com/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
var adSidebar = document.getElementById('getScript');
if (adSidebar) {
adSidebar.parentNode.removeChild(adSidebar);
}
})();
$('.validation_ticker').remove();oauth2.asp