luffier / the-pirate-calendar Goto Github PK
View Code? Open in Web Editor NEWAdds torrent links (RARBG, The Pirate Bay and more) to trakt.tv. Now with a settings menu!
License: MIT License
Adds torrent links (RARBG, The Pirate Bay and more) to trakt.tv. Now with a settings menu!
License: MIT License
First off, thanks for this script! Very useful, will save me some keypresses :)
I generally use my watchlist as the start point for searches. Would it be possible to add the button to all the items on a list page?
Hello,
Just wanted to show a possible migration path for this script for GMC (I left the whitespace changes in this diff).
--- /scripts/luffier/The_Pirate_Calendar_(for_trakt.tv)/[email protected]+0371fdc
+++ /scripts/luffier/The_Pirate_Calendar_(for_trakt.tv)/source
@@ -7,11 +7,13 @@
// @license MIT
// @match *://trakt.tv/
// @match *://trakt.tv/*
-// @require https://cdn.jsdelivr.net/gh/sizzlemctwizzle/GM_config@43fd0fe4de1166f343883511e53546e87840aeaf/gm_config.js
+// @require https://openuserjs.org/src/libs/sizzle/GM_config.js
// @grant GM_addStyle
// @grant GM_listValues
// @grant GM_getValue
// @grant GM_setValue
+// @grant GM.getValue
+// @grant GM.setValue
// @grant GM_deleteValue
// @grant GM_registerMenuCommand
// @grant unsafeWindow
@@ -216,7 +218,7 @@
}
`,
'events': {
- 'init': function() { } ,
+ 'init': myInit,
'open': function() {
// Set default URL and search path when the search engine changes
this.fields.torrentSearchEngine.node.addEventListener('change', function() {
@@ -505,13 +507,15 @@
}
}
- // Apply styles
- $('head').append(createElement(style));
+ function myInit() {
+ // Apply styles
+ $('head').append(createElement(style));
+
+ validateSettings();
+
+ processPage();
+
+ applySettings();
+ }
- validateSettings();
-
- processPage();
-
- applySettings();
-
})();
\ No newline at end of file
Your script is well written to adapt to the asynchronous change. Hope you consider the improvement since it's quite easily done.
Thanks for the look.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.