Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2021
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         New Userscript
  3. // @namespace    http://tampermonkey.net/
  4. // @version      0.1
  5. // @description  try to take over the world!
  6. // @author       You
  7. // @match        https://www.baidu.com/*
  8. // @run-at       document-start
  9. // @grant        unsafeWindow
  10. // ==/UserScript==
  11.  
  12. (function() {
  13.     'use strict';
  14.     unsafeWindow.moref = unsafeWindow.MutationObserver;
  15.  
  16.     document.addEventListener('DOMContentLoaded', function(){
  17.         console.log("overridden mutation oberver:");
  18.         console.log(unsafeWindow.MutationObserver);
  19.  
  20.         console.log("original mutation oberver:");
  21.         console.log(unsafeWindow.moref);
  22.     });
  23. })();
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement