Created
February 18, 2017 17:24
-
-
Save friendlyanon/a727b3818a51ecdbe87216a5d95e9995 to your computer and use it in GitHub Desktop.
Clean DownloadGamePS3
This file contains 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 Clean DownloadGamePS3 | |
// @namespace intermission | |
// @include http://downloadgameps3.com/* | |
// @version 1 | |
// @run-at document-start | |
// @grant none | |
// ==/UserScript== | |
(function(){ | |
"use strict"; | |
var d = document; | |
function inject(head) { | |
var style = d.createElement("style"), script = d.createElement("script"); | |
style.insertAdjacentHTML("beforeend", `html{background-color:#111!important;} | |
body, #main_menu, #main_menu *,#Label7 li,#Blog1 .status-msg-wrap, .phantrang > .wp-pagenavi > [class], .post blockquote{background:none!important;background-color:transparent!important;} | |
.sidebar, div, .bar a, .waves-button {text-shadow:none!important;} | |
#outer-wrapper {background:none!important;width:95%!important;} | |
#wrap2 > footer, div.sharedaddy + div, #HTML2, #HTML6, #header > div:first-of-type, #header > div:last-of-type {display:none!important;} | |
#main-wrapper{width:1310px!important;} | |
table{width:90%!important;} | |
#related-posts > a{background:none!important;} | |
#related-posts > a > div, .bar h1 a, .bar h2 a{color:#eee!important;height:57px!important;} | |
.bar {background:none!important;} | |
.bar h1, .bar h2{height:20%!important} | |
.waves-button, #Label7 li a{color:#eee!important;} | |
#Label7 li{border-bottom:none!important;border-top:1px solid #ffffff!important;} | |
#block-search-form{display:table!important;position:absolute!important;top:-18px!important;left:0!important;z-index:9999!important;overflow:visible!important;} | |
#header{height:40px!important;margin:0!important;padding:0!important;} | |
[style*="color: red"], [style*="color:red"] {color:#66d!important;} | |
#block-search-form #s{background-color:#333!important;color:#eee!important;} | |
#block-search-form button{background:none!important;background-color:#555!important;} | |
td[bgcolor*="#98F5FF"]{background-color:rgba(152,245,255,.5)!important;} | |
td[bgcolor*="#00FA9A"]{background-color:rgba(0,220,154,.75)!important;} | |
td[bgcolor*="#FFF68F"]{background-color:rgba(255,246,159,.75)!important;} | |
.post blockquote,.phantrang > .wp-pagenavi > [class], #Blog1 .status-msg-wrap, span[style*="color: #073763"]{color:#ddd!important;} | |
.phantrang > .wp-pagenavi > .extend{border-color:black!important;} | |
.post blockquote{outline:1px solid #bfbfc2!important;} | |
div.post-body > div.separator{display:table!important;margin:30px auto!important;} | |
div.post-body > div.separator > a{margin:0!important;}`); | |
script.insertAdjacentHTML("beforeend", `for(let a of [ | |
[window.navigator, "plugins"], | |
[window, "doNotTrack", 1], | |
[window, "_pop"] | |
]) Object.defineProperty(a[0], a[1], {value: a[2]});`); | |
for(let a of [script, style]) head.appendChild(a); | |
} | |
d.addEventListener("DOMContentLoaded", _ => { | |
for (let a of d.querySelectorAll("a[href*='downloadgameps3.com'][href*='/check-link-before-download-on-site/']")) | |
a.href = decodeURIComponent(a.href.match(/\?(.*)/i)[1]); | |
}); | |
(function applyCSS(){var h=d.getElementsByTagName("head");h&&h[0]?inject(h[0]):setTimeout(applyCSS,10)}()); | |
}()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment