Skip to content

Instantly share code, notes, and snippets.

@suen427
Created July 31, 2016 06:54
Show Gist options
  • Select an option

  • Save suen427/1a07fc698c23986a56727864077f05cb to your computer and use it in GitHub Desktop.

Select an option

Save suen427/1a07fc698c23986a56727864077f05cb to your computer and use it in GitHub Desktop.
// ==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