Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name Headphone Actor Theme
- // @namespace http://twisted.cat/
- // @version 0.1
- // @description Fix and add stuff to the Headphone Actor Chrome theme.
- // @author Ani ( https://github.com/LuaTenshi )
- // @require http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js
- // @include http://www.google.*
- // @include https://www.google.*
- // @grant none
- // ==/UserScript==
- const REGEXP = /^https?:\/\/www.google.[a-z.]+\/\_\/chrome\/newtab.*/;
- var isDefaultNewTab = REGEXP.test(top.location.href);
- if(isDefaultNewTab){
- setTimeout(function(){ $("body").css("background-size", "cover"); },500)
- }else{
- function main(){
- $("body").css("background-color", "#fff");
- $("body").css("background-image", "url(https://i.imgur.com/TNeJetL.jpg)");
- $("body").css("background-attachment", "fixed");
- $("body").append("<div class='what' style=\"position:fixed;top: 0px;width:100%;height: 100%;background-color: rgba(255, 255, 255, 0.92);z-index: -1;\">");
- } window.addEventListener("load",function(e){main()});
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement