Skip to content

Instantly share code, notes, and snippets.

@cirippo
cirippo / vine 2 colors highlighter.js
Created February 23, 2024 12:59
Vine highlight new item 2 colors
// ==UserScript==
// @name Amazon Vine Highlight 2 Colors
// @namespace http://tampermonkey.net/
// @version 0.1
// @description Track seen recommendations on Amazon Vine page
// @match https://www.amazon.com/vine/vine-items*
// @grant GM_setValue
// @grant GM_getValue
// @grant GM_addStyle
// @run-at document-end
@cirippo
cirippo / ReadMe.md
Last active May 16, 2024 12:34
Download Google Drive protected PDF without TrustedScriptURL error at higher resolution

Easy step by step guide to download view only PDF from Google Drive - no TrustedScriptURL error and better quality


  1. Open the document in Google Docs
  2. Zoom in 2 times using Ctrl and + (VERY IMPORTANT!)
  3. Open Developer Tools
  4. Hit Ctrl + R to reload the document.
  5. Scroll to the bottom of the document to load all pages.
  6. To check if all pages are loaded, go to "Network" tab, type "img" in search bar. At the bottom bar you see "xx/yyy requests", "xx" must be equal to document's pages; if not scroll up to load missing pages
  7. Go to "Console" tab
  8. Paste the updated and improved script (download_pdf.js) that avoids TrustedScriptURL error and allows better file's quality