Greasemonkey отключить скрипт - PullRequest
0 голосов
/ 01 октября 2018

Мне нужно отключить эту строку на моей веб-странице с помощью расширения Chrome greasemonkey / 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
...