Last active
October 9, 2017 09:23
-
-
Save laughingman7743/ae06567f1ca43a709ff9 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 Tumblr Adblock | |
// @namespace com.tumblr.laughingman7743 | |
// @author laughingman7743 | |
// @version 0.0.4 | |
// @homepage http://laughingman7743.tumblr.com/ | |
// @description 広告は過去の遺物です! | |
// @run-at ducument-start | |
// @include http://www.tumblr.com/dashboard | |
// @include https://www.tumblr.com/dashboard | |
// ==/UserScript== | |
(function(){ | |
function addStyle(css) { | |
var link = document.createElement('link'); | |
link.rel = 'stylesheet'; | |
link.href = 'data:text/css,' + escape(css); | |
document.getElementsByTagName('head')[0].appendChild(link); | |
} | |
var css = [ | |
'li.yamplus-unit-container { display: none !important; }' | |
, 'li.remnant-unit-container { display: none !important; }' | |
, 'li.standalone-ad-container { display: none !important; }' | |
, 'li.dfp-ad-container { display: none !important; }' | |
].join(' '); | |
addStyle(css); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment