Stop execution of Javascript function (client side) or tweak it

前端 未结 5 2043
别跟我提以往
别跟我提以往 2020-11-22 08:48

I want to stop the execution of one single line from a site, so that the whole page is read by the browser except that single line. Or the browser may simply skip the execut

5条回答
  •  醉梦人生
    2020-11-22 09:29

    Using TamperMonkey? All you need to add below your // @grant in the TamperMonkey header is // @require http://urlofyoursite.com/myfile.js. For example, here is the very top of my TamperMonkey thingie:

    // ==UserScript==
    // @name         Project
    // @namespace    http://tampermonkey.net/
    // @version      0.1
    // @description  try to take over the world!
    // @author       You
    // @match        https://docs.google.com/presentation/*
    // @grant        none
    // @require http://cdnjs.cloudflare.com/ajax/libs/annyang/2.1.0/annyang.min.js
    // ==/UserScript==
    

提交回复
热议问题