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 LinkedIn remove promoted | |
// @namespace Violentmonkey Scripts | |
// @match https://www.linkedin.com/jobs/search/* | |
// @run-at document-body | |
// @grant none | |
// @version 1.0 | |
// @author - | |
// @description 9/20/2022, 10:43:06 PM | |
// ==/UserScript== |
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
{ | |
const waitForContent = (job) => new Promise((resolve, reject) => { | |
let retries = 0; | |
(function loop() { | |
if (retries < 50) { | |
retries++; | |
setTimeout(() => { | |
if (job.innerText) { | |
resolve() | |
} else { |
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
#include <string.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <arpa/inet.h> | |
#include <sys/socket.h> | |
#include <netinet/in.h> | |
#include <sys/select.h> | |
#include <fcntl.h> // TEST ONLY |
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
#include <string.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <sys/wait.h> | |
enum { | |
READ, | |
WRITE | |
}; | |
enum { |
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
use framework "Foundation" | |
use scripting additions | |
-- https://forum.latenightsw.com/t/reading-json-data-with-nsjsonserialization/958/2 | |
on readJSON(strJSON) | |
set ca to current application | |
set {x, e} to ca's NSJSONSerialization's JSONObjectWithData:((ca's NSString's stringWithString:strJSON)'s dataUsingEncoding:(ca's NSUTF8StringEncoding)) options:0 |error|:(reference) | |
if x is missing value then | |
error e's localizedDescription() as text | |
else |