- // ==UserScript==
- // @name feedback
- // @namespace http://tampermonkey.net/
- // @version 0.1
- // @description try to take over the world!
- // @author Stella
- // @match https://www.raterhub.com/evaluation/rater/task_results_portal/*
- // ==/UserScript==
- /* jshint esnext: true */
- /* jshint expr: true */ // Make JSHint shut up about short circuiting
- /* eslint no-undef: 0*/
- // Utility function to only run when the page has actually been loaded.
- const domReady = cb=>{
- (document.readyState === "interactive" || document.readyState === "complete") ? cb() : document.addEventListener("DOMContentLoaded", cb);
- };
- (function() {
- 'use strict';
- let puke = document.querySelectorAll('.feedback-portal-feedback-tooltip-content');
- for (let a = 0; a < puke.length; a++) {
- puke[a].classList.remove('feedback-portal-feedback-tooltip-content');
- puke[a].style.opacity = '1';
- puke[a].style.position = 'static';
- puke[a].style.visibility = 'visible';
- }
- })();
- // This script adds a button to the page.
- // The button will appear at the top center of the page.
- (function() {
- // Create the print button element.
- var printButton = document.createElement('button');
- printButton.textContent = 'PRINT';
- // Append the print button to the document body.
- document.body.appendChild(printButton);
- // create a color of the button
- printButton.style.backgroundColor = '#808080';
- // Position the print button at the bottom of the document body.
- printButton.style.position = 'absolute';
- printButton.style.bottom = '20px';
- printButton.style.left = '35%';
- printButton.style.transform = 'translate(-50%, 0)';
- // Attach an event handler to the print button.
- printButton.onclick = function() {
- window.print();
- };
- })();
[text] print
Viewer
*** This page was generated with the meta tag "noindex, nofollow". This happened because you selected this option before saving or the system detected it as spam. This means that this page will never get into the search engines and the search bot will not crawl it. There is nothing to worry about, you can still share it with anyone.
Editor
You can edit this paste and save as new:
File Description
- Paste Code
- 04 May-2024
- 1.82 Kb
You can Share it:
Latest Code Pastes