Created
July 31, 2016 06:54
-
-
Save suen427/1a07fc698c23986a56727864077f05cb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // ==UserScript== | |
| // @name New Userscript | |
| // @namespace http://tampermonkey.net/ | |
| // @version 0.1 | |
| // @description try to take over the world! | |
| // @author You | |
| // @match http://play.baidu.com/* | |
| // @grant none | |
| // ==/UserScript== | |
| (function() { | |
| 'use strict'; | |
| var ads = document.getElementsByClassName('column4'); | |
| for(var i = 0; i < ads.length; ++i) { | |
| ads[i].parentNode.removeChild(ads[i]); | |
| } | |
| ads = document.getElementsByClassName('pause-ad'); | |
| for(i = 0; i < ads.length; ++i) { | |
| ads[i].parentNode.removeChild(ads[i]); | |
| } | |
| var style = document.createElement('style'); | |
| style.innerHTML = '.column2 {right: 250px;}.column3{right: 0}.leftbar-outer{bottom:70px}.m-client-product{display:none;}.playlist-length-cloud{bottom:0}.pauseAd-con,.pause-ad{display:none;visibility:hidden;}'; | |
| document.getElementsByTagName('head')[0].appendChild(style); | |
| })(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment