Skip to content

Instantly share code, notes, and snippets.

@aikatsukamen
Created June 18, 2020 12:53
Show Gist options
  • Select an option

  • Save aikatsukamen/48c20781876a5511cd9447690f10a777 to your computer and use it in GitHub Desktop.

Select an option

Save aikatsukamen/48c20781876a5511cd9447690f10a777 to your computer and use it in GitHub Desktop.
17live
// ==UserScript==
// @name 17live
// @namespace http://tampermonkey.net/
// @version 0.1
// @description try to take over the world!
// @author You
// @match https://17.live/live/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
for(let i = 0; i < 10; i++){
setTimeout(()=> {
remove();
}, 1000 * i);
}
})();
const remove = ()=> {
var dom = document.querySelector('div[class*="Nav"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="Notifications"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="Header"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="VideoOverlay"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="VideoLoading"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="VideoPlayer__EventOverlay"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="Gift__Wrapper"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="Gift__Wrapper"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="Snackbars"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
dom = document.querySelector('div[class*="LinesEllipsis"]');
if(dom) dom.remove();
// 登録しましょうってやつ
dom = document.querySelector('form');
if(dom) dom.remove();
dom = document.querySelector('#ssIFrame_google');
if(dom) dom.remove();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment