Advertisement
dcomicboy

hook iFrame

Feb 26th, 2020
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. This could should work with TamperMonkey
  2.  
  3. function CodeEdit() {
  4. var x = document.querySelectorAll("screenshotMode_body");
  5. for (var i=0; i<x.length; i++) {
  6. x[i].setAttribute('style', 'display: block;');
  7. }
  8. }
  9. CodeEdit();
  10.  
  11. What that code would do is when it detects the div id="screenshotMode_body" it should add the style attribute of display: block;. You'll know it activated as pink text shows on screen "RUSH RACING 2"
  12.  
  13. The reason it fails is I have yet to figure out how to hook the iFrame its in
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement