Skip to content

Instantly share code, notes, and snippets.

@YoshiTheChinchilla
Last active October 5, 2024 15:31
Show Gist options
  • Save YoshiTheChinchilla/d46126e33c36bdc98bb9dc26e1b29a98 to your computer and use it in GitHub Desktop.
Save YoshiTheChinchilla/d46126e33c36bdc98bb9dc26e1b29a98 to your computer and use it in GitHub Desktop.
Removing the ads on www.itpassportsiken.com
// ==UserScript==
// @name IT passport Ads Remover
// @namespace https://gist.github.com/YoshiTheChinchilla/
// @version 1.0.0
// @description Removing the ads on www.itpassportsiken.com
// @author Takashi Yoshimura
// @encoding utf-8
// @homepage https://gist.github.com/YoshiTheChinchilla/
// @match https://www.itpassportsiken.com/*
// @license MIT
// @run-at document-end
// @grant none
// @updateURL https://gist.github.com/YoshiTheChinchilla/d46126e33c36bdc98bb9dc26e1b29a98/raw/itpassport-ads-remover.user.js
// @downloadURL https://gist.github.com/YoshiTheChinchilla/d46126e33c36bdc98bb9dc26e1b29a98/raw/itpassport-ads-remover.user.js
// @supportURL https://gist.github.com/YoshiTheChinchilla/d46126e33c36bdc98bb9dc26e1b29a98#new_comment_field
// @iconURL https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
// @icon64URL https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png
// ==/UserScript==
// Version History:
//
// 1.0.0 (2024-10-05): Create this script and upload it on https://gist.github.com/YoshiTheChinchilla/cf71a8679368ee0e8d860b1bccd96fa2
//
const main = () => {
const btn = document.querySelector('#showAnswerBtn')
if(btn) {
btn.addEventListener('click', (e) => {
console.group(`itpassport-ads-remover logs on ${window.location.href}`)
const c = document.querySelector('#kaisetsu').children
c[1].classList.add('displayNone')
c[2].classList.add('displayNone')
const filter = document.querySelector('.ansbg.R3tfxFm5')
filter.style = ''
console.log('filter removed')
console.groupEnd()
})
}
}
main()
/**
The MIT License (MIT)
Copyright (c) 2019 Takashi Yoshimura
Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
**/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment